aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-08-02 21:43:40 +0200
committerTom Gundersen <teg@jklm.no>2011-08-02 21:43:40 +0200
commit880e68141f27ea3295509bc51fee5179cdfa7695 (patch)
treedea1b80098e39deeefaa770d1dac36fe158520d1 /rc.sysinit
parent92ef85ff23d548f6dc9be3fb9b73a050f596941f (diff)
downloadinitscripts-880e68141f27ea3295509bc51fee5179cdfa7695.tar.xz
/usr: warn on separate usr
We check for /usr/lib being present. If it is not, we assume /usr is not yet mounted and warn. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 45e64b6..a7daad9 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -35,6 +35,10 @@ run_hook sysinit_start
minilogd
bootlogd -p /run/bootlogd.pid
+if [[ ! -a /usr/lib ]] ; then
+ printf "${C_FAIL}/usr is on a separate partition. This is not supported.${C_OTHER}\n"
+fi
+
HWCLOCK_PARAMS="--systz"
case $HARDWARECLOCK in
"") ;;