Making /dev/pts files have group owner 'tty', so 'mesg y' will work.

svn path=/nixos/trunk/; revision=19317
This commit is contained in:
Lluís Batlle i Rossell 2010-01-09 14:23:20 +00:00
parent 6f8a3ba7c7
commit b59cfde311
2 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ mount -t tmpfs -o "mode=0755" none /dev
mkdir -m 0777 /dev/shm mkdir -m 0777 /dev/shm
mount -t tmpfs -o "rw,nosuid,nodev" tmpfs /dev/shm mount -t tmpfs -o "rw,nosuid,nodev" tmpfs /dev/shm
mkdir -m 0755 -p /dev/pts mkdir -m 0755 -p /dev/pts
mount -t devpts -o mode=0600 none /dev/pts mount -t devpts -o mode=0600,gid=@ttyGid@ none /dev/pts
[ -e /proc/bus/usb ] && mount -t usbfs none /proc/bus/usb # uml doesn't have usb by default [ -e /proc/bus/usb ] && mount -t usbfs none /proc/bus/usb # uml doesn't have usb by default
mkdir -m 01777 -p /tmp mkdir -m 01777 -p /tmp
mkdir -m 0755 -p /var mkdir -m 0755 -p /var

View File

@ -23,6 +23,7 @@ let
src = ./stage-2-init.sh; src = ./stage-2-init.sh;
isExecutable = true; isExecutable = true;
inherit kernel activateConfiguration; inherit kernel activateConfiguration;
ttyGid = config.ids.gids.tty;
upstart = config.system.build.upstart; upstart = config.system.build.upstart;
path = path =
[ coreutils [ coreutils