]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base/init: remove /dev/root helper symlink
authorHarald Hoyer <harald@redhat.com>
Mon, 19 Sep 2011 10:20:55 +0000 (12:20 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 19 Sep 2011 10:20:55 +0000 (12:20 +0200)
Any tool relying on /dev/root has to be fixed.

modules.d/99base/init

index fe7694a7e7b9533b5604b7cc2bda86dccece078c..4f5981871bd68570576691252954b3f96fe24573 100755 (executable)
@@ -434,6 +434,9 @@ fi
 
 wait_for_loginit
 
+# remove helper symlink
+[ -h /dev/root ] && rm -f /dev/root
+
 getarg rd.break rdbreak && emergency_shell -n switch_root "Break before switch_root"
 info "Switching root"