Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Add /dev/stdin, /dev/stdout, /dev/stderr to initrd.img (#684220) (http://www.linux-archive.org/ubuntu-kernel-team/571114-add-dev-stdin-dev-stdout-dev-stderr-initrd-img-684220-a.html)

David Cantrell 09-01-2011 04:56 PM

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


All times are GMT. The time now is 02:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.