mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
stage-2: shellsheck recommendations
This commit is contained in:
parent
e3f031b200
commit
62c79a1de8
@ -6,7 +6,7 @@ export HOME=/root PATH="@path@"
|
|||||||
|
|
||||||
|
|
||||||
# Process the kernel command line.
|
# Process the kernel command line.
|
||||||
for o in $(cat /proc/cmdline); do
|
for o in $(</proc/cmdline); do
|
||||||
case $o in
|
case $o in
|
||||||
boot.debugtrace)
|
boot.debugtrace)
|
||||||
# Show each command.
|
# Show each command.
|
||||||
@ -107,8 +107,8 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Use /etc/resolv.conf supplied by systemd-nspawn, if applicable.
|
# Use /etc/resolv.conf supplied by systemd-nspawn, if applicable.
|
||||||
if [ -n "@useHostResolvConf@" -a -e /etc/resolv.conf ]; then
|
if [ -n "@useHostResolvConf@" ] && [ -e /etc/resolv.conf ]; then
|
||||||
cat /etc/resolv.conf | resolvconf -m 1000 -a host
|
resolvconf -m 1000 -a host </etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Log the script output to /dev/kmsg or /run/log/stage-2-init.log.
|
# Log the script output to /dev/kmsg or /run/log/stage-2-init.log.
|
||||||
|
Loading…
Reference in New Issue
Block a user