lunar-init: Added mount support for LVM volumes

rpyne@kinfolk.org rpyne at kinfolk.org
Sat Oct 4 14:52:49 CEST 2008


I tried submitting this from work, but got an error:

From: Richard Pyne <rpyne at shopsite.com>

---
module: lunar-init
id: 52a30f24da704763f158c146dc733ae2
lvu submit: lunar-init
lvu: 41d0769d8e06ad7650af26bc6cb1dfef  -
uname -r: 2.6.26.5
kernel headers:
gcc: 4.2.4
glibc: 2.7

---
 utils/lunar-init/mount |    6 ++++++
 1 file changed, 6 insertions(+)

---
diff a/utils/lunar-init b/utils/lunar-init
--- a/utils/lunar-init/mount    2008-10-03 18:02:32.000000000 +0000
+++ b/utils/lunar-init/mount    2008-10-04 12:41:50.000000000 +0000
@@ -262,6 +262,12 @@

        echo "Mounting remaining filesystems: "

+       # Enable LVM or LVM2 if configured
+       if [ -e /etc/config.d/lvm -a -x /sbin/vgscan -a -x 
/sbin/vgchange ]; then
+               /sbin/vgscan
+               /sbin/vgchange -a y
+       fi
+
        # hack to get it into /etc/mtab
        if [ "$DEVNODES" == "devfs" ]; then
                run_without_msg "mount -f -t devfs devfs /dev"
lunar-init: Submit this module now? [y]
Error: not authorized



More information about the Lunar mailing list