Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255125 - sys-fs/lvm2 - lvm init script attempts to auto-mount the lvms -- bad
Summary: sys-fs/lvm2 - lvm init script attempts to auto-mount the lvms -- bad
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-16 03:37 UTC by Paul
Modified: 2009-01-16 08:40 UTC (History)
2 users (show)

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


Attachments
fixed init script (lvm,884 bytes, text/plain)
2009-01-16 03:39 UTC, Paul
Details

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