* Additional debug options for stage 1 (can be passed on the kernel
command line): - debug1devices: drop into a shell after modules have been load and device nodes have been created. - debug1mounts: drop into a shell after file systems have been mounted. svn path=/nixos/trunk/; revision=8804
This commit is contained in:
parent
6b627a9ca7
commit
15e3ec8dec
@ -45,9 +45,15 @@ for o in $(cat /proc/cmdline); do
|
|||||||
# Show each command.
|
# Show each command.
|
||||||
set -x
|
set -x
|
||||||
;;
|
;;
|
||||||
debug1)
|
debug1) # stop right away
|
||||||
fail
|
fail
|
||||||
;;
|
;;
|
||||||
|
debug1devices) # stop after loading modules and creating device nodes
|
||||||
|
debug1devices=1
|
||||||
|
;;
|
||||||
|
debug1mounts) # stop after mounting file systems
|
||||||
|
debug1mounts=1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -67,6 +73,8 @@ udevd --daemon
|
|||||||
udevtrigger
|
udevtrigger
|
||||||
udevsettle
|
udevsettle
|
||||||
|
|
||||||
|
if test -n "$debug1devices"; then fail; fi
|
||||||
|
|
||||||
|
|
||||||
# Function for mounting a file system.
|
# Function for mounting a file system.
|
||||||
mountFS() {
|
mountFS() {
|
||||||
@ -189,6 +197,8 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$debug1mounts"; then fail; fi
|
||||||
|
|
||||||
|
|
||||||
# Start stage 2.
|
# Start stage 2.
|
||||||
# !!! Note: we can't use pivot_root here (the kernel gods have
|
# !!! Note: we can't use pivot_root here (the kernel gods have
|
||||||
|
Loading…
x
Reference in New Issue
Block a user