]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
init: symlink /dev/stdin /dev/stdout /dev/stderr
authorHarald Hoyer <harald@redhat.com>
Thu, 7 Oct 2010 17:11:11 +0000 (19:11 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 7 Oct 2010 17:11:11 +0000 (19:11 +0200)
modules.d/99base/init

index dc0a0df78aeac0fd1036b26bd62fdb079760f32a..1a58daf2c78b78cfe65732c2e9e58436c7366157 100755 (executable)
@@ -94,6 +94,9 @@ if [ ! -c /dev/ptmx ]; then
 fi
 
 ln -s /proc/self/fd /dev/fd >/dev/null 2>&1
+ln -s /proc/self/fd/0 /dev/stdin >/dev/null 2>&1
+ln -s /proc/self/fd/1 /dev/stdout >/dev/null 2>&1
+ln -s /proc/self/fd/2 /dev/stderr >/dev/null 2>&1
 
 if getarg rdinitdebug; then
     getarg quiet && DRACUT_QUIET="yes"