[linux-lvm] '/etc/init.d/lvm' script in debian package

Gergely Tamas dice at mfa.kfki.hu
Thu Dec 21 09:43:33 UTC 2000


Hi!

> On Thu, Dec 21, 2000 at 09:37:58AM +0100, Gergely Tamas wrote:
> >
> > A few ideas ...
> > 1) if LVM is compiled into the kernel and /boot/System.map is reachable,
> > than it could be detected using e.g. 'grep lvm System.map'
> >
> > 2) if /usr/src/kernel/.config is reachable, than it could be detected
> > using e.g. 'grep -i lvm .config'
> >
> > 3) maybe doing a check for directories countaining 'group' in /dev would
> > be a usable idea...
>
> How about looking in /proc/devices for the lvm block & char devices ?

This is a good idea too.

But I noticed, that looking in /etc for lvmtab is usable too.

But your idea seems to be the most usable. It would be good to change the
init.d/lvm script to something using this.

Gergely




More information about the linux-lvm mailing list