Add /dev/stdin, /dev/stdout, /dev/stderr to initrd.img (#684220)
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|