Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134634 Details for
Bug 194615
baselayout-2.0.0_rc4-r1 and initramfs root: during shutdown localmount freezes system
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Ensure that mtab matches /proc/mounts, but punt a tmpfs root
checkroot-mtab.patch (text/plain), 916 bytes, created by
Roy Marples (RETIRED)
on 2007-10-29 13:50:58 UTC
(
hide
)
Description:
Ensure that mtab matches /proc/mounts, but punt a tmpfs root
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-10-29 13:50:58 UTC
Size:
916 bytes
patch
obsolete
>Index: init.d/checkroot >=================================================================== >--- init.d/checkroot (revision 3062) >+++ init.d/checkroot (working copy) >@@ -13,20 +13,12 @@ > fi > ebegin "Updating /etc/mtab" > >- # Add the entry for / to mtab >- mount -f / >+ # With / as tmpfs we cannot umount -at tmpfs in localmount as that >+ # makes / readonly and dismounts all tmpfs even if in use which is >+ # not good. Luckily, umount uses /etc/mtab instead of /proc/mounts >+ # which allows this hack to work. >+ grep -v "^[^ ]* / tmpfs" /proc/mounts > /etc/mtab > >- # Don't list root more than once >- grep -v "^[^ ]* / " /proc/mounts >> /etc/mtab >- >- # Now make sure /etc/mtab have additional info (gid, etc) in there >- local mnt= >- mountinfo | while read mnt; do >- if fstabinfo --quiet "${mnt}"; then >- mount -f -o remount "${mnt}" >- fi >- done >- > # Remove stale backups > rm -f /etc/mtab~ /etc/mtab~~ > eend 0
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 194615
:
132526
|
134173
|
134628
| 134634