diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-07-13 11:08:59 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-07-17 21:38:01 +0200 |
commit | 1f358f911a0237f4224169c4d225a9ae306e0853 (patch) | |
tree | 6dda48e7611849539d3f0e14a025a68cd49868a0 /rc.sysinit | |
parent | 1ff5031122b1d16fbeb9c5e00ef366e4527c00ef (diff) | |
download | initscripts-1f358f911a0237f4224169c4d225a9ae306e0853.tar.xz |
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.
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |