Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134628 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 mtab is updated correctly when no root entry
checkroot-mtab.patch (text/plain), 790 bytes, created by
Roy Marples (RETIRED)
on 2007-10-29 12:06:52 UTC
(
hide
)
Description:
Ensure mtab is updated correctly when no root entry
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-10-29 12:06:52 UTC
Size:
790 bytes
patch
obsolete
>Index: init.d/checkroot >=================================================================== >--- init.d/checkroot (revision 3062) >+++ init.d/checkroot (working copy) >@@ -14,19 +14,14 @@ > ebegin "Updating /etc/mtab" > > # Add the entry for / to mtab >- mount -f / >+ if fstabinfo --quiet /; then >+ mount -f / >+ # Don't list root more than once >+ grep -v "^[^ ]* / " /proc/mounts >> /etc/mtab >+ else >+ cat /proc/mounts > /etc/mtab >+ fi > >- # 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