Browse Source

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.
master
Chapman Flack 11 years ago committed by Harald Hoyer
parent
commit
ddfea6b54c
  1. 4
      modules.d/99base/init.sh

4
modules.d/99base/init.sh

@ -353,7 +353,9 @@ wait_for_loginit
# remove helper symlink # remove helper symlink
[ -h /dev/root ] && rm -f -- /dev/root [ -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" info "Switching root"





Loading…
Cancel
Save