From: Harald Hoyer Date: Wed, 20 Jun 2012 23:03:22 +0000 (+0200) Subject: systemd: do not flock for console X-Git-Tag: 020~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d3ddf082b6b61ae559520ff039f7592a58e88b2;p=thirdparty%2Fdracut.git systemd: do not flock for console --- diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh index 830dbee2b..03f1c9bb7 100755 --- a/modules.d/98systemd/dracut-initqueue.sh +++ b/modules.d/98systemd/dracut-initqueue.sh @@ -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 {