From 60191a3cdf4923fea04ae1fb383b9367db9227a0 Mon Sep 17 00:00:00 2001 From: jofko Date: Tue, 14 Jun 2011 20:49:05 +0200 Subject: Adding hook sysinit_postmount In some cases is good to know when rc.sysinit is going to use /usr See FS#24712 Signed-off-by: jofko [tomegun: added comment to 'functions' and changed name of hook] Signed-off-by: Tom Gundersen --- functions | 1 + rc.sysinit | 1 + 2 files changed, 2 insertions(+) diff --git a/functions b/functions index 2ee56b4..d94a9ef 100644 --- a/functions +++ b/functions @@ -338,6 +338,7 @@ read_crypttab() { # sysinit_udevsettled: after uevents have settled in rc.sysinit # single_udevsettled: after uevents have settled in rc.single # sysinit_premount: before local filesystems are mounted, but after root is mounted read-write in rc.sysinit +# sysinit_postmount: after local filesystems are mounted # shutdown_prekillall: before all processes are being killed in rc.shutdown # single_prekillall: before all processes are being killed in rc.single # shutdown_postkillall: after all processes have been killed in rc.shutdown diff --git a/rc.sysinit b/rc.sysinit index 8158f78..2158f4a 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -277,6 +277,7 @@ stat_busy "Mounting Local Filesystems" run_hook sysinit_premount # now mount all the local filesystems mount -a -t $NETFS -O no_netdev + run_hook sysinit_postmount stat_done # enable monitoring of lvm2 groups, now that the filesystems are mounted rw -- cgit v1.2.3