From: Chapman Flack Date: Thu, 3 Apr 2014 01:57:00 +0000 (-0400) Subject: Break at switch_root only for bare rd.break X-Git-Tag: 038~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddfea6b54cfa8f8f6c970d970318568c8a8a4c78;p=thirdparty%2Fdracut.git Break at switch_root only for bare rd.break Previously, any rd.break=breakpoint would cause a break at the given breakpoint and also at switch_root. --- diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh index 2364f4fcc..a1232eb5a 100755 --- a/modules.d/99base/init.sh +++ b/modules.d/99base/init.sh @@ -353,7 +353,9 @@ wait_for_loginit # remove helper symlink [ -h /dev/root ] && rm -f -- /dev/root -getarg rd.break -d rdbreak && emergency_shell -n switch_root "Break before switch_root" +bv=$(getarg rd.break -d rdbreak) && [ -z "$bv" ] && + emergency_shell -n switch_root "Break before switch_root" +unset bv info "Switching root"