]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/init: make link /dev/fd, mount devpts,tmpfs with correct dev parm
authorHarald Hoyer <harald@redhat.com>
Thu, 8 Oct 2009 12:13:08 +0000 (14:13 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Oct 2009 12:21:31 +0000 (14:21 +0200)
modules.d/99base/init

index 24832abdce220bb938ecb24d356c9bc0128a0b0e..d5f78320b35f55f16695ad2a85881929a4b4f0f2 100755 (executable)
@@ -78,6 +78,8 @@ if [ ! -c /dev/ptmx ]; then
     fi
 fi
 
+ln -s /proc/self/fd /dev/fd >/dev/null 2>&1
+
 if getarg rdinitdebug; then
     getarg quiet && DRACUT_QUIET="yes"
     mkfifo /dev/initlog.pipe
@@ -91,8 +93,8 @@ setdebug
 
 mkdir /dev/shm
 mkdir /dev/pts
-mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts >/dev/null 2>&1
-mount -t tmpfs /dev/shm /dev/shm >/dev/null 2>&1
+mount -t devpts -o gid=5,mode=620 devpts /dev/pts >/dev/null 2>&1
+mount -t tmpfs tmpfs /dev/shm >/dev/null 2>&1
 
 UDEVVERSION=$(udevadm --version)