Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 300879 Details for
Bug 401573
sys-apps/openrc: If /usr is mount and is read-only, remount it into into read-write
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make root initscript remount all mounted filesystems.
remount.patch (text/plain), 1.60 KB, created by
Piotr Karbowski (RETIRED)
on 2012-02-03 20:36:46 UTC
(
hide
)
Description:
make root initscript remount all mounted filesystems.
Filename:
MIME Type:
Creator:
Piotr Karbowski (RETIRED)
Created:
2012-02-03 20:36:46 UTC
Size:
1.60 KB
patch
obsolete
>From 95ad765942185c673fcb933a6a0374098b4d4cd2 Mon Sep 17 00:00:00 2001 >From: Piotr Karbowski <piotr.karbowski@gmail.com> >Date: Fri, 3 Feb 2012 21:17:18 +0100 >Subject: [PATCH] Remount already mounted filesystems. > >--- > init.d/root.in | 47 +++++++++++++++++++++++++++++++++-------------- > 1 files changed, 33 insertions(+), 14 deletions(-) > >diff --git a/init.d/root.in b/init.d/root.in >index 1c93771..294f833 100644 >--- a/init.d/root.in >+++ b/init.d/root.in >@@ -13,20 +13,39 @@ depend() > start() > { > case ",$(fstabinfo -o /)," in >- *,ro,*) return 0;; >+ *,ro,*) >+ ;; >+ *) >+ # Check if the rootfs isn't already writable. >+ if echo 2>/dev/null >/.test.$$; then >+ rm -f /.test.$$ /fastboot /forcefsck >+ else >+ ebegin "Remounting root filesystem read/write" >+ case "$RC_UNAME" in >+ Linux) >+ mount -n -o remount,rw / >+ ;; >+ *) >+ mount -u -o rw / >+ ;; >+ esac >+ if eend $? "Root filesystem could not be mounted read/write"; then >+ rm -f /fastboot /forcefsck >+ fi >+ fi >+ ;; > esac > >- if echo 2>/dev/null >/.test.$$; then >- rm -f /.test.$$ /fastboot /forcefsck >- return 0 >- fi >- >- ebegin "Remounting root filesystem read/write" >- case "$RC_UNAME" in >- Linux) mount -n -o remount,rw /;; >- *) mount -u -o rw /;; >- esac >- if eend $? "Root filesystem could not be mounted read/write"; then >- rm -f /fastboot /forcefsck >- fi >+ ebegin "Remounting filesystems" >+ local mountpoint >+ for mountpoint in $(fstabinfo); do >+ case "${mountpoint}" in >+ /) >+ ;; >+ /*) >+ mountinfo -q "${mountpoint}" && fstabinfo --remount "${mountpoint}" >+ ;; >+ esac >+ done >+ eend 0 > } >-- >1.7.8.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 401573
:
300467
|
300471
|
300485
|
300487
|
300489
|
300553
| 300879 |
301041