]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: do not flock for console
authorHarald Hoyer <harald@redhat.com>
Wed, 20 Jun 2012 23:03:22 +0000 (01:03 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 Jun 2012 23:11:44 +0000 (01:11 +0200)
modules.d/98systemd/dracut-initqueue.sh

index 830dbee2b540189d403086ee615298ed8c1f3f0e..03f1c9bb7112bf6cafaee3a7423b980ffb6942c3 100755 (executable)
@@ -59,8 +59,7 @@ while :; do
     fi
 
     main_loop=$(($main_loop+1))
-    [ $main_loop -gt $RDRETRY ] \
-        && { flock -s 9 ; emergency_shell "Could not boot."; } 9>/.console_lock
+    [ $main_loop -gt $RDRETRY ] && emergency_shell "Could not boot."
 done
 
 unset job
@@ -95,8 +94,7 @@ while :; do
     done
 
     i=$(($i+1))
-    [ $i -gt 20 ] \
-        && { flock -s 9 ; emergency_shell "Can't mount root filesystem"; } 9>/.console_lock
+    [ $i -gt 20 ] && emergency_shell "Can't mount root filesystem"
 done
 
 {