From 1f358f911a0237f4224169c4d225a9ae306e0853 Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Wed, 13 Jul 2011 11:08:59 +0200 Subject: 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 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.sysinit') 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 -- cgit v1.2.3