From 81691ef89550ba08b55501c0cbba19e956e59e72 Mon Sep 17 00:00:00 2001 From: Piotr Karbowski Date: Mon, 30 Jan 2012 21:37:11 +0100 Subject: [PATCH] If /usr is mount and is read-only, remount it into into read-write. --- init.d/localmount.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/init.d/localmount.in b/init.d/localmount.in index 3fbc071..d66ccd8 100644 --- a/init.d/localmount.in +++ b/init.d/localmount.in @@ -24,6 +24,12 @@ start() no_netdev="-O no_netdev" fi ebegin "Mounting local filesystems" + + # if /usr is mountpoint and is mounted read-only, remount it read-write. + if mountpoint -q /usr && mountinfo -q -o ro /usr; then + mount -o remount,rw /usr + fi + mount -at "$types" $no_netdev eend $? "Some local filesystem failed to mount" -- 1.7.8.4