Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131001 - "/etc/init.d/halt.sh" from "baselayout-1.12.0_pre18" does not unmount/ro-remount properly
Summary: "/etc/init.d/halt.sh" from "baselayout-1.12.0_pre18" does not unmount/ro-remo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 11:26 UTC by Axel Dyks
Modified: 2006-04-24 06:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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