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
parent
cb6d49bc9d
commit
556ff7c76a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue