home: hub: mkinitfs

Download patch

ref: 2c335e71a08dfe3e6d444882b3e75b2a375f97f7
parent: 13cfce8f525fcb656044da419e03747892abd174
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu Dec 23 07:31:44 CST 2010

init: support for lvm

--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@
 		modules.d/ext3 \
 		modules.d/ext4 \
 		modules.d/floppy \
+		modules.d/lvm \
 		modules.d/raid \
 		modules.d/reiserfs \
 		modules.d/scsi \
@@ -23,7 +24,8 @@
 		modules.d/usb \
 		modules.d/xfs \
 		files.d/bootchart \
-		files.d/base
+		files.d/base \
+		files.d/lvm
 
 SCRIPTS		:= $(SBIN_FILES) initramfs-init 
 IN_FILES	:= $(addsuffix .in,$(SCRIPTS))
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -260,6 +260,12 @@
 scan_drivers
 eend 0
 
+# start lvm if exists
+if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ]; then
+	vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 &&\
+		vgchange --ignorelockingfailure -a y >/dev/null 2>&1
+fi
+
 # check if root=... was set
 if [ -n "$KOPT_root" ]; then
 	if [ "$SINGLEMODE" = "yes" ]; then