]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell
authorHarald Hoyer <harald@redhat.com>
Fri, 8 Feb 2013 13:54:38 +0000 (14:54 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Feb 2013 10:49:19 +0000 (11:49 +0100)
modules.d/98systemd/dracut-pre-pivot.sh

index 2eed4bb8ea30ce36c28ba52be394bb1bb4eb664c..f27d2204a21b7242faa464d05cccaf8f9dcaa5fa 100755 (executable)
@@ -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