]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix 98dracut-systemd/dracut-emergency.sh
authorBöszörményi Zoltán <zboszor@pr.hu>
Tue, 12 Feb 2019 11:55:32 +0000 (12:55 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 12 Feb 2019 13:56:12 +0000 (14:56 +0100)
/dev/consoles does not exist. It's /proc/consoles.

Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
modules.d/98dracut-systemd/dracut-emergency.sh

index 1a11220b8c08d970a8357adf8af2346451d3926e..864f13ba4f4d213ababea017f2e3e8b0190b6058 100755 (executable)
@@ -31,7 +31,7 @@ if getargbool 1 rd.shell -d -y rdshell || getarg rd.break -d rdbreak; then
             echo
             [ -f "$FSTXT" ] && cat "$FSTXT"
         ) > /dev/$_tty
-    done < /dev/consoles
+    done < /proc/consoles
     [ -f /etc/profile ] && . /etc/profile
     [ -z "$PS1" ] && export PS1="$_name:\${PWD}# "
     exec sulogin -e