relies on, so try not to break those hooks.
* Hooks must have a .sh extension.
* Generator modules are described in more detail in README.modules.
- * We have some breakpoints for debugging your hooks. If you pass 'break'
+ * We have some breakpoints for debugging your hooks. If you pass 'rdbreak'
as a kernel parameter, the initramfs will drop to a shell just before
- switching to a new root. You can pass 'break=hookpoint', and the initramfs
+ switching to a new root. You can pass 'rdbreak=hookpoint', and the initramfs
will break just before hooks in that hookpoint run.
Also, there is an attempt to keep things as distribution-agnostic as
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts >/dev/null 2>&1
# pre-udev scripts run before udev starts, and are run only once.
-getarg 'break=pre-udev' && emergency_shell
+getarg 'rdbreak=pre-udev' && emergency_shell
source_all pre-udev
# start up udev and trigger cold plugs
# pre-mount happens before we try to mount the root filesystem,
# and happens once.
-getarg 'break=pre-mount' && emergency_shell
+getarg 'rdbreak=pre-mount' && emergency_shell
source_all pre-mount
-getarg 'break=mount' && emergency_shell
+getarg 'rdbreak=mount' && emergency_shell
# mount scripts actually try to mount the root filesystem, and may
# be sourced any number of times. As soon as one suceeds, no more are sourced.
done
# pre pivot scripts are sourced just before we switch over to the new root.
-getarg 'break=pre-pivot' && emergency_shell
+getarg 'rdbreak=pre-pivot' && emergency_shell
source_all pre-pivot
# by the time we get here, the root filesystem should be mounted.
emergency_shell
}
-getarg break && emergency_shell
+getarg rdbreak && emergency_shell
kill $(pidof udevd)
# Clean up the environment
for x in "$@"; do
[ "${x%%=*}" = "console" ] && continue
[ "${x%%=*}" = "BOOT_IMAGE" ] && continue
- [ "${x%%=*}" = "break" ] && continue
+ [ "${x%%=*}" = "rdbreak" ] && continue
[ "${x%%=*}" = "rdinitdebug" ] && continue
[ "${x%%=*}" = "rdudevinfo" ] && continue
[ "${x%%=*}" = "rdudevdebug" ] && continue