Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 84818 Details for
Bug 130219
patch: halt.sh does not unmount in nesting order
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
context diff against halt.sh
halt.sh.patch (text/plain), 1.09 KB, created by
Mark McKenna
on 2006-04-17 00:10:17 UTC
(
hide
)
Description:
context diff against halt.sh
Filename:
MIME Type:
Creator:
Mark McKenna
Created:
2006-04-17 00:10:17 UTC
Size:
1.09 KB
patch
obsolete
>*** halt.sh Sun Apr 16 12:07:24 2006 >--- /etc/init.d/halt.sh Sun Apr 16 12:00:07 2006 >*************** >*** 75,80 **** >--- 75,83 ---- > # Try to unmount all filesystems (no /proc,tmpfs,devfs,etc). > # This is needed to make sure we dont have a mounted filesystem > # on a LVM volume when shutting LVM down ... >+ # Mark (14/04/2006): Added '-k2' to the sort options, so sorting happens >+ # by mount target instead of mount source. Fixes problems with nested >+ # mounts. > ebegin "Unmounting filesystems" > unmounts=$( \ > awk '{ \ >*************** >*** 82,88 **** > ($1 != "none") && \ > ($1 !~ /^(rootfs|\/dev\/root)$/) && \ > ($2 != "/")) \ >! print $2 }' /proc/mounts | sort -ur) > for x in ${unmounts}; do > # Do not umount these if we are booting off a livecd > if [[ -n ${CDBOOT} ]] && \ >--- 85,91 ---- > ($1 != "none") && \ > ($1 !~ /^(rootfs|\/dev\/root)$/) && \ > ($2 != "/")) \ >! print $2 }' /proc/mounts | sort -k2 -ur) > for x in ${unmounts}; do > # Do not umount these if we are booting off a livecd > if [[ -n ${CDBOOT} ]] && \
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 130219
: 84818