aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rwxr-xr-xinit8
1 files changed, 4 insertions, 4 deletions
diff --git a/init b/init
index a0edb50..bc1452c 100755
--- a/init
+++ b/init
@@ -22,7 +22,7 @@ function error ()
#
info "type Ctrl-D to exit shell and reboot"
setsid /bin/bash -c "exec /bin/bash -i <>/dev/tty1 1>&0 2>&1"
- reboot
+ reboot -f
}
# Some pre-systemd utilities (like reboot) come from klibc-utils.
@@ -40,7 +40,7 @@ mount -t proc -o nodev,noexec,nosuid proc /proc
info "init starting up..."
-mount -t devtmpfs -o nosuid,mode=0755 udev /dev
+mount -t devtmpfs -o noexec,nosuid,mode=0755 udev /dev
mkdir -p /dev/pts
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
@@ -49,10 +49,10 @@ mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
# toolchain.
#
mkdir -p /run
-mount -t tmpfs -o "noexec,nosuid,size=512M,mode=0755" tmpfs /run
+mount -t tmpfs -o nodev,noexec,nosuid,size=512M,mode=0755 tmpfs /run
mkdir -p /tmp
-mount -t tmpfs -o "nodev,nosuid,size=2G,mode=1777" tmpfs /tmp
+mount -t tmpfs -o nodev,nosuid,size=2G,mode=1777 tmpfs /tmp
# Start udev.
#