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

Bug 255125

Summary: sys-fs/lvm2 - lvm init script attempts to auto-mount the lvms -- bad
Product: Gentoo Linux Reporter: Paul <PLRCA2>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED INVALID    
Severity: normal CC: agk, cardoe
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixed init script

Description Paul 2009-01-16 03:37:25 UTC
The lvm init script contains "before checkfs fsck" and "for i in `ls /dev/mapper/*|grep vg`; do mount $i; done". This is bad. Any volumes that were improperly shut down will not have a chance to be fsck'd. A better solution might be to get rid of that line, have lvm run before localmount, and let localmount take care of mounting the lvm volumes.

Reproducible: Always

Steps to Reproduce:
Comment 1 Paul 2009-01-16 03:39:48 UTC
Created attachment 178663 [details]
fixed init script
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-16 08:40:47 UTC
Umm, you're smoking something. The script does NOT do any mounting.
Look here:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm.rc-2.02.28-r2?rev=1.2&view=markup