dracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break

similar to commit ddfea6b54c

Previously, any rd.break=breakpoint would cause a break at the
given breakpoint and also at switch_root.
master
Harald Hoyer 2016-03-07 12:38:23 +01:00
parent cb6d49bc9d
commit 556ff7c76a
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ source_hook pre-pivot
getarg 'rd.break=cleanup' 'rdbreak=cleanup' && emergency_shell -n cleanup "Break cleanup"
source_hook cleanup

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

# remove helper symlink
[ -h /dev/root ] && rm -f -- /dev/root