stage-2: process options as first action
this way `set -x` is set early
This commit is contained in:
parent
b42af25223
commit
a17344c2ad
@ -5,6 +5,21 @@ systemConfig=@systemConfig@
|
|||||||
export HOME=/root PATH="@path@"
|
export HOME=/root PATH="@path@"
|
||||||
|
|
||||||
|
|
||||||
|
# Process the kernel command line.
|
||||||
|
for o in $(cat /proc/cmdline); do
|
||||||
|
case $o in
|
||||||
|
boot.debugtrace)
|
||||||
|
# Show each command.
|
||||||
|
set -x
|
||||||
|
;;
|
||||||
|
resume=*)
|
||||||
|
set -- $(IFS==; echo $o)
|
||||||
|
resumeDevice=$2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
# Print a greeting.
|
# Print a greeting.
|
||||||
echo
|
echo
|
||||||
echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
|
echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
|
||||||
@ -62,21 +77,6 @@ rm -f /etc/mtab* # not that we care about stale locks
|
|||||||
ln -s /proc/mounts /etc/mtab
|
ln -s /proc/mounts /etc/mtab
|
||||||
|
|
||||||
|
|
||||||
# Process the kernel command line.
|
|
||||||
for o in $(cat /proc/cmdline); do
|
|
||||||
case $o in
|
|
||||||
boot.debugtrace)
|
|
||||||
# Show each command.
|
|
||||||
set -x
|
|
||||||
;;
|
|
||||||
resume=*)
|
|
||||||
set -- $(IFS==; echo $o)
|
|
||||||
resumeDevice=$2
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
# More special file systems, initialise required directories.
|
# More special file systems, initialise required directories.
|
||||||
[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
|
[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
|
||||||
mkdir -m 01777 -p /tmp
|
mkdir -m 01777 -p /tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user