From: Harald Hoyer Date: Wed, 27 May 2009 12:56:20 +0000 (+0200) Subject: prefixed more internal command line options with "rd" X-Git-Tag: 0.1~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=412713048077e58720f01ad2e470defd70bcb208;p=thirdparty%2Fdracut.git prefixed more internal command line options with "rd" break -> rdbreak netdebug -> rdnetdebug --- diff --git a/README b/README index c8a648db0..cd25d3b4c 100644 --- a/README +++ b/README @@ -39,9 +39,9 @@ Some general rules for writing modules: 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 diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index ca3a2fb36..fab61a2a7 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -8,7 +8,7 @@ PATH=$PATH:/sbin:/usr/sbin . /lib/dracut-lib -getarg netdebug && { +getarg rdnetdebug && { exec >/dhclient.$interface.$$.out exec 2>>/dhclient.$interface.$$.out set -x diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index d60ff1978..f56362039 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -4,7 +4,7 @@ PATH=$PATH:/sbin:/usr/sbin . /lib/dracut-lib -getarg netdebug && { +getarg rdnetdebug && { exec >/ifup.$1.$$.out exec 2>>/ifup.$1.$$.out set -x diff --git a/modules.d/40nfsroot/nfsroot b/modules.d/40nfsroot/nfsroot index f5b6ec168..516c8227a 100644 --- a/modules.d/40nfsroot/nfsroot +++ b/modules.d/40nfsroot/nfsroot @@ -8,7 +8,7 @@ PATH=$PATH:/sbin:/usr/sbin # XXX need to lock our attempts if we're doing the mount here -getarg netdebug && { +getarg rdnetdebug && { exec > /nfsroot.$1.$$.out exec 2>> /nfsroot.$1.$$.out set -x diff --git a/modules.d/99base/init b/modules.d/99base/init index 192e92ace..9a0181493 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -44,7 +44,7 @@ mkdir /dev/pts 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 @@ -56,9 +56,9 @@ udevadm settle --timeout=30 >/dev/null 2>&1 # 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. @@ -77,7 +77,7 @@ while :; do 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. @@ -91,7 +91,7 @@ done emergency_shell } -getarg break && emergency_shell +getarg rdbreak && emergency_shell kill $(pidof udevd) # Clean up the environment @@ -106,7 +106,7 @@ initargs="" 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