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

Bug 214194

Summary: sys-fs/lvm2-2.02.28-r2 should handle /etc/mtab symlink to /proc/mount
Product: Gentoo Linux Reporter: Robert A. <r.a>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: cardoe, robbat2, thoward1120
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to lvm-stop.sh which makes it ignore the rootfs entry

Description Robert A. 2008-03-22 00:00:38 UTC
whan shutting down logical volumes the lvm-stop.sh script gets confused by the rootfs entry of /proc/mounts (mount reads from it if /etc/mtab is a symlink to /proc/mounts)
Comment 1 Robert A. 2008-03-22 00:01:39 UTC
Created attachment 146811 [details, diff]
patch to lvm-stop.sh which makes it ignore the rootfs entry
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-03-22 05:44:29 UTC
robert: can you please test this version instead?
mount | awk '{if($3 == "/" && $1 != "rootfs"){print $1}}'
Comment 3 Robert A. 2008-03-22 12:11:55 UTC
(In reply to comment #2)
> robert: can you please test this version instead?
> mount | awk '{if($3 == "/" && $1 != "rootfs"){print $1}}'

Works for me - and it looks prettier to me. (:


Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-08 19:35:35 UTC
Fixed for .37.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-08 19:39:19 UTC
*** Bug 202058 has been marked as a duplicate of this bug. ***