aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch')
-rw-r--r--main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch b/main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
new file mode 100644
index 0000000000..92e53a3838
--- /dev/null
+++ b/main/mkinitfs/0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
@@ -0,0 +1,32 @@
+From 8785cfa9ce642d8b4cde64ea0e4c497aa55a5780 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 17 Nov 2014 20:15:52 +0100
+Subject: [PATCH] init: lvm: run vgchange even if vgscan does not return
+ success
+
+It seems like vgscan does not return success in initramfs, even if
+the needed devices noded are created.
+
+Ignore errors and try run vgchange in any case.
+---
+ initramfs-init.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/initramfs-init.in b/initramfs-init.in
+index 0ff8b6b..7831995 100755
+--- a/initramfs-init.in
++++ b/initramfs-init.in
+@@ -258,8 +258,8 @@ start_cryptsetup() {
+ start_lvm() {
+ [ -x /sbin/lvm ] || return
+ modprobe dm-mod
+- lvm vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 &&\
+- lvm vgchange --ignorelockingfailure -a y >/dev/null 2>&1
++ lvm vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1
++ lvm vgchange --ignorelockingfailure -a y >/dev/null 2>&1
+ }
+
+ # determine the default interface to use if ip=dhcp is set
+--
+2.1.3
+