From: Harald Hoyer Date: Fri, 8 Feb 2013 13:54:38 +0000 (+0100) Subject: systemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell X-Git-Tag: 026~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a04f3077cd2356b162bac8fd4bfb4be2aaa765ee;p=thirdparty%2Fdracut.git systemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell --- diff --git a/modules.d/98systemd/dracut-pre-pivot.sh b/modules.d/98systemd/dracut-pre-pivot.sh index 2eed4bb8e..f27d2204a 100755 --- a/modules.d/98systemd/dracut-pre-pivot.sh +++ b/modules.d/98systemd/dracut-pre-pivot.sh @@ -36,9 +36,9 @@ done echo "NEWROOT=\"$NEWROOT\"" >> /run/initramfs/switch-root.conf +getarg rd.break -d rdbreak && emergency_shell -n switch_root "Break before switch_root" + # remove helper symlink [ -h /dev/root ] && rm -f /dev/root -getarg rd.break -d rdbreak && emergency_shell -n switch_root "Break before switch_root" - exit 0