From: Harald Hoyer Date: Mon, 11 Nov 2013 15:57:32 +0000 (+0100) Subject: systemd: do not exit the initqueue, if systemd asks a password X-Git-Tag: 035~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4f74f5040fc3f4e7646695b54c5c11b0b95c62;p=thirdparty%2Fdracut.git systemd: do not exit the initqueue, if systemd asks a password this prevents bailing out the initqueue, while passwords are still to be asked --- diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh index d7ebf2b2a..64e815410 100755 --- a/modules.d/98systemd/dracut-initqueue.sh +++ b/modules.d/98systemd/dracut-initqueue.sh @@ -52,6 +52,10 @@ while :; do # no more udev jobs and queues empty. sleep 0.5 + for i in /run/systemd/ask-password/ask.*; do + [ -e "$i" ] && continue + done + if [ $main_loop -gt $((2*$RDRETRY/3)) ]; then for job in $hookdir/initqueue/timeout/*.sh; do [ -e "$job" ] || break