diff options
author | ncopa <ncopa@f176ef85-8d20-0410-844a-e957b5a1c371> | 2007-03-26 15:51:04 +0000 |
---|---|---|
committer | ncopa <ncopa@f176ef85-8d20-0410-844a-e957b5a1c371> | 2007-03-26 15:51:04 +0000 |
commit | f3bf41bba7d32f88dece419efd5d5a806ee68b7b (patch) | |
tree | 0bd9557123f5ce9d4642fb71d1b241b7a28b8ea4 /init.d | |
parent | 0a40ac61d56d4bb3c62b51e40d8216abcf2737dd (diff) | |
download | alpine-baselayout-f3bf41bba7d32f88dece419efd5d5a806ee68b7b.tar.bz2 alpine-baselayout-f3bf41bba7d32f88dece419efd5d5a806ee68b7b.tar.xz |
support for serial login using cttyhack. remove the needed mountoints from /etc/fstab. rc_delete should remove links even if target is missing
Diffstat (limited to 'init.d')
-rwxr-xr-x | init.d/mdev | 6 | ||||
-rw-r--r-- | init.d/mountall | 7 | ||||
-rwxr-xr-x | init.d/rcS | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/init.d/mdev b/init.d/mdev index c474175..3fba3ba 100755 --- a/init.d/mdev +++ b/init.d/mdev @@ -10,7 +10,7 @@ start() { mkdir -p /dev # start mdev - mount /dev + mount -t tmpfs -o exec,nosuid,mode=0755 mdev /dev mknod -m 666 /dev/null c 1 3 # use mdev for hotplug @@ -23,9 +23,9 @@ start() { # create pts file system [ -d /dev/pts ] || mkdir -m 755 /dev/pts [ -c /dev/ptmx ] || mknod -m 666 /dev/ptmx c 5 2 - mount /dev/pts + mount -t devpts -o gid=5,mode=0620,noexec,nosuid devpts /dev/pts [ -d /dev/shm ] || mkdir /dev/shm - mount /dev/shm + mount -t tmpfs -o nodev,nosuid,noexec shm /dev/shm eend $RC } diff --git a/init.d/mountall b/init.d/mountall index 8d0f306..d574eb2 100644 --- a/init.d/mountall +++ b/init.d/mountall @@ -2,7 +2,12 @@ start() { ebegin "Mounting local filesystems" - mount -a -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda,noocfs2,nogfs 2>&1 >/tmp/mountdebug + mount -a -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda,noocfs2,nogfsi 2>&1 >/tmp/mountdebug eend $? } +stop() { + ebegin "Unmounting local filesystems" + umount -a + eend $? +} @@ -2,8 +2,8 @@ # we need the proc to be able to install busybox /bin/busybox mkdir -p /proc /usr/sbin /sys -/bin/busybox mount -t proc proc /proc -/bin/busybox mount -t sysfs none /sys +/bin/busybox mount -t proc -o noexec,nosuid,nodev proc /proc +/bin/busybox mount -t sysfs -o noexec,nosuid,nodev sysfs /sys # install busybox links /bin/busybox --install -s |