# Distributed under the GPL v2
# $Id$
+ 23 Jul 2011; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
+ netboot/linuxrc.x:
+ Fix permissions of /dev/pts (bug #375947)
+
20 Jul 2011; Fabio Erculiani <lxnay@sabayon.org> defaults/config.sh,
doc/genkernel.8.txt, gen_cmdline.sh, gen_compile.sh:
Make possible to compile XEN based kernels providing --kernel-target= and
|| bad_msg "Failed to mount /dev as ${devfs}"
# http://git.busybox.net/busybox/plain/docs/mdev.txt
- mkdir /dev/pts
- mount -t devpts devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
+ mkdir -m 0755 /dev/pts
+ mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
mdev -s || bad_msg "Failed to receive dynamic updates from mdev"
}
#!/bin/ash
-# Copyright 2001-2007 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
/bin/busybox --install -s
#// Create additional mount points
- mkdir /dev/pts
+ mkdir -m 0755 /dev/pts
mkdir /dev/shm
mkdir -p /mnt/cdrom
mkdir /mnt/floppy
#// Mount remaining filesystems
mount tmp /tmp -t tmpfs # /tmp
- mount devpts /dev/pts -t devpts # /dev/pts
+ mount devpts /dev/pts -t devpts -o gid=5,mode=0620 # /dev/pts
mount shm /dev/shm -t tmpfs -o size=512k # /dev/shm
#// Create mtab