summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2010-03-26 14:33:13 +0000
committermaximilian attems <maks@debian.org>2010-03-27 16:35:15 +0100
commit261811b5d0524c7fe579bf4ca22915c2dc4b636f (patch)
treedee756db084ee69588ac25d2f96bdc2c0eda6905 /init
parent72f9d99901161b02513153eb3e587553fb21165e (diff)
downloadinitramfs-tools-261811b5d0524c7fe579bf4ca22915c2dc4b636f.tar.gz
initramfs-tools-261811b5d0524c7fe579bf4ca22915c2dc4b636f.zip
init: mount /dev/pts as well as /dev
Allows to redirect the console early. [ merge from 0.92bubuntu71 ] Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/init b/init
index f5b0646..0c9719d 100755
--- a/init
+++ b/init
@@ -22,6 +22,8 @@ if ! mount -t devtmpfs -o mode=0755 none /dev; then
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
[ -e /dev/null ] || mknod /dev/null c 1 3
fi
+mkdir /dev/pts
+mount -t devpts -o noexec,nosuid,gid=5,mode=0620 none /dev/pts || true
> /dev/.initramfs-tools
mkdir /dev/.initramfs