Fix permissions of /dev/pts (bug #375947)

cleanup-cruft
Sebastian Pipping 14 years ago
parent fdcea9095d
commit 4c0b4b18f8

@ -5,6 +5,10 @@
# 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

@ -319,8 +319,8 @@ runmdev() {
|| 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"
}

@ -1,6 +1,6 @@
#!/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"
@ -37,7 +37,7 @@ StartUp() {
/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
@ -46,7 +46,7 @@ StartUp() {
#// 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

Loading…
Cancel
Save