From 68f549a7b4468dd1f1f810042fb293c503cb90ca Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 22 May 2017 14:43:18 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/agetty | 1 + init.d/binfmt | 2 +- init.d/bootmisc | 3 ++- init.d/fsck | 1 + init.d/hostname | 1 + init.d/hwclock | 3 --- init.d/keymaps | 2 +- init.d/localmount | 2 +- init.d/loopback | 1 + init.d/mount-ro | 2 +- init.d/procfs | 1 + init.d/root | 1 + init.d/swap | 1 + init.d/swclock | 4 ---- init.d/sysctl | 1 + init.d/termencoding | 2 +- init.d/urandom | 1 + rc.conf | 5 +++++ 18 files changed, 21 insertions(+), 13 deletions(-) diff --git a/init.d/agetty b/init.d/agetty index c45459e..bad0218 100755 --- a/init.d/agetty +++ b/init.d/agetty @@ -19,6 +19,7 @@ pidfile="/run/${RC_SVCNAME}.pid" depend() { after local + keyword -prefix } start_pre() { diff --git a/init.d/binfmt b/init.d/binfmt index e3b1a33..8b8b19f 100755 --- a/init.d/binfmt +++ b/init.d/binfmt @@ -13,7 +13,7 @@ description="Register misc binary format handlers" depend() { - after procfs + after clock procfs use modules devfs keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver } diff --git a/init.d/bootmisc b/init.d/bootmisc index f14793d..b42c14f 100755 --- a/init.d/bootmisc +++ b/init.d/bootmisc @@ -71,7 +71,8 @@ cleanup_var_run_dir() ebegin "Cleaning /var/run" for x in $(find /var/run ! -type d ! -name utmp \ ! -name random-seed ! -name dev.db \ - ! -name ld-elf.so.hints ! -name ld.so.hints); + ! -name ld-elf.so.hints ! -name ld-elf32.so.hints \ + ! -name ld.so.hints); do # Clean stale sockets if [ -S "$x" ]; then diff --git a/init.d/fsck b/init.d/fsck index fc892c0..d4b8da7 100755 --- a/init.d/fsck +++ b/init.d/fsck @@ -15,6 +15,7 @@ _IFS=" depend() { + after clock use dev clock modules keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -timeout -vserver -uml } diff --git a/init.d/hostname b/init.d/hostname index 474d75a..81969f8 100755 --- a/init.d/hostname +++ b/init.d/hostname @@ -12,6 +12,7 @@ description="Sets the hostname of the machine." depend() { + after clock keyword -docker -lxc -prefix -systemd-nspawn } diff --git a/init.d/hwclock b/init.d/hwclock index ebe821b..944b6aa 100755 --- a/init.d/hwclock +++ b/init.d/hwclock @@ -33,9 +33,6 @@ depend() want modules if yesno $clock_adjfile; then use root - else - before binfmt bootmisc fsck hostname keymaps localmount loopback mtab - before procfs root swap sysctl termencoding urandom fi keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu } diff --git a/init.d/keymaps b/init.d/keymaps index 49e41b0..149428a 100755 --- a/init.d/keymaps +++ b/init.d/keymaps @@ -14,7 +14,7 @@ description="Applies a keymap for the consoles." depend() { need localmount termencoding - after bootmisc + after bootmisc clock keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu } diff --git a/init.d/localmount b/init.d/localmount index 7b9271f..30a1173 100755 --- a/init.d/localmount +++ b/init.d/localmount @@ -15,7 +15,7 @@ depend() { need fsck use lvm modules mtab root - after lvm modules root + after clock lvm modules root keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver } diff --git a/init.d/loopback b/init.d/loopback index fa7ea03..35f69a3 100755 --- a/init.d/loopback +++ b/init.d/loopback @@ -13,6 +13,7 @@ description="Configures the loopback interface." depend() { + after clock keyword -jail -prefix -systemd-nspawn -vserver } diff --git a/init.d/mount-ro b/init.d/mount-ro index 3badeac..5bc0e13 100755 --- a/init.d/mount-ro +++ b/init.d/mount-ro @@ -13,7 +13,7 @@ description="Re-mount filesytems read-only for a clean reboot." depend() { - need killprocs savecache + after killprocs savecache keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver } diff --git a/init.d/procfs b/init.d/procfs index 91be45a..cd51874 100755 --- a/init.d/procfs +++ b/init.d/procfs @@ -13,6 +13,7 @@ description="Mounts misc filesystems in /proc." depend() { + after clock use devfs want modules need localmount diff --git a/init.d/root b/init.d/root index 36437a0..19e6c73 100755 --- a/init.d/root +++ b/init.d/root @@ -13,6 +13,7 @@ description="Mount the root fs read/write" depend() { + after clock need fsck keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver } diff --git a/init.d/swap b/init.d/swap index 0b0de87..5de405b 100755 --- a/init.d/swap +++ b/init.d/swap @@ -11,6 +11,7 @@ depend() { + after clock before localmount keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver } diff --git a/init.d/swclock b/init.d/swclock index 2a93d1f..9ce6c38 100755 --- a/init.d/swclock +++ b/init.d/swclock @@ -13,10 +13,6 @@ description="Sets the local clock to the mtime of a given file." depend() { - before adjkerntz binfmt bootmisc devdb dumpon fsck hostid hostname keymaps - before localmount loopback modules mtab network newsyslog procfs root - before savecore staticroute swap swap-blk syscons sysctl syslogd - before termencoding ttys urandom wscons provide clock keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu } diff --git a/init.d/sysctl b/init.d/sysctl index c27248d..34073b0 100755 --- a/init.d/sysctl +++ b/init.d/sysctl @@ -11,6 +11,7 @@ depend() { + after clock before bootmisc logger keyword -prefix -systemd-nspawn -vserver } diff --git a/init.d/termencoding b/init.d/termencoding index b238d8d..687b3f7 100755 --- a/init.d/termencoding +++ b/init.d/termencoding @@ -18,7 +18,7 @@ depend() { keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu use root - after bootmisc + after bootmisc clock } start() diff --git a/init.d/urandom b/init.d/urandom index 499feea..c1a8883 100755 --- a/init.d/urandom +++ b/init.d/urandom @@ -14,6 +14,7 @@ description="Initializes the random number generator." depend() { + after clock need localmount keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn } diff --git a/rc.conf b/rc.conf index c0467e0..beafd91 100644 --- a/rc.conf +++ b/rc.conf @@ -178,6 +178,11 @@ unicode="YES" # "xenU" - XenU Domain (Linux and NetBSD) #rc_sys="" +# if you use openrc-init, which is currently only available on Linux, +# this is the default runlevel to activate after "sysinit" and "boot" +# when booting. +#rc_default_runlevel="default" + # on Linux and Hurd, this is the number of ttys allocated for logins # It is used in the consolefont, keymaps, numlock and termencoding # service scripts. -- 2.39.5