From 828c2687cc2e5b6f11394f4497eb0396d2863723 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Nov 2019 08:57:43 +0200 Subject: Update to latest Debian testing systemd/udev 243-8 qemu-system-x86 4.1-1+b4 linux-image-amd64 5.2.17 g++ 9.2.1-19 initramfs-tools 0.135 debootstrap 1.0.116 --- init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init') 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. # -- cgit v1.1