* 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:
Eelco Dolstra 2007-05-30 10:32:42 +00:00
parent 6b627a9ca7
commit 15e3ec8dec

View File

@ -45,9 +45,15 @@ for o in $(cat /proc/cmdline); do
# Show each command.
set -x
;;
debug1)
debug1) # stop right away
fail
;;
debug1devices) # stop after loading modules and creating device nodes
debug1devices=1
;;
debug1mounts) # stop after mounting file systems
debug1mounts=1
;;
esac
done
@ -67,6 +73,8 @@ udevd --daemon
udevtrigger
udevsettle
if test -n "$debug1devices"; then fail; fi
# Function for mounting a file system.
mountFS() {
@ -189,6 +197,8 @@ else
fi
if test -n "$debug1mounts"; then fail; fi
# Start stage 2.
# !!! Note: we can't use pivot_root here (the kernel gods have