Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131001

Summary: "/etc/init.d/halt.sh" from "baselayout-1.12.0_pre18" does not unmount/ro-remount properly
Product: Gentoo Linux Reporter: Axel Dyks <XL>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Axel Dyks 2006-04-23 11:26:27 UTC
SVN version 1989 did introduce an invalid fix for (an invalid?) bug #130219.
The awk command that greps the lines from /proc/mount already restricts
output to the second column (print $2), i. e. the mount point.
Therefore adding "-k2" AND "-u" to the "sort" options is fatal!
It results in unmounting/ro-remounting only "/", but none of the other
file systems.

# cat /proc/mounts:
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw,noatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda5 /boot ext2 rw,noatime,nogrpid 0 0
/dev/hda9 /var reiserfs rw,noatime 0 0
/dev/hda11 /home reiserfs rw,noatime 0 0
none /proc/bus/usb usbfs rw 0 0
none /dev/shm tmpfs rw 0 0
# awk '$1 != "none" { print $2 }' /proc/mounts
/
/
/proc
/sys
/dev
/dev/pts
/boot
/var
/home
# awk '$1 != "none" { print $2 }' /proc/mounts | sort -k2 -ur
/
#
#

-- Axel
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-04-24 06:09:01 UTC
Fixed in pre18-r1. Thanks