From 6ee45e1a302f066591fd555dc8391a6b2630a9d0 Mon Sep 17 00:00:00 2001 From: Piotr Karbowski Date: Mon, 30 Jan 2012 22:13:14 +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..a2bf167 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 mountinfo -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