[arch-projects] [initscripts] [PATCH] rc.sysinit: Move 'run_hook sysinit_start' after mount root read-only
Rationale Currently we have to duplicate at least the mount /proc code line into a custom sysinit_start hook to be able to start a splash daemon or something in case no initcpio is used. Moreover we want to make sure nothing can open files read/write on root which would block the read-only remount. So running the sysinit_start hook a bit later appears to be more save. --- rc.sysinit | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index fe1b7e6..45e64b6 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -11,8 +11,6 @@ printhl "Arch Linux\n" printhl "${C_H2}http://www.archlinux.org" printsep -run_hook sysinit_start - # mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems) mountpoint -q /proc || mount -n -t proc proc /proc -o nosuid,noexec,nodev mountpoint -q /sys || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev @@ -31,6 +29,8 @@ mountpoint -q /dev/shm || mount -n /dev/shm &>/dev/null \ findmnt / --options ro &>/dev/null || status "Mounting Root Read-Only" mount -n -o remount,ro / +run_hook sysinit_start + # start up our mini logger until syslog takes over minilogd bootlogd -p /run/bootlogd.pid -- 1.7.1
participants (1)
-
Kurt J. Bosch