[PATCH 2/4] Add /dev/stdin, /dev/stdout, /dev/stderr to initrd.img (#684220)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scripts/mk-images |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index a52fc65..069bd4c 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -604,6 +604,12 @@ makeinitrd() {
     mkdir -p $MBD_DIR/var/run
     mkdir -p $MBD_DIR/var/lock/rpm
 
+    ( cd $MBD_DIR/dev
+      ln -sf /proc/self/fd/0 stdin
+      ln -sf /proc/self/fd/1 stdout
+      ln -sf /proc/self/fd/2 stderr
+    )
+
     if [ "$BUILDARCH" = "ppc" -o "$BUILDARCH" = "ppc64" ]; then
 	mkdir -p $MBD_DIR/dev/iseries
     fi
-- 
1.7.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux