diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 20:15:52 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 20:15:52 +0100 |
commit | 8785cfa9ce642d8b4cde64ea0e4c497aa55a5780 (patch) | |
tree | c498391b7aca5aff5bc29ce7a61a42e5a7363bb2 /initramfs-init.in | |
parent | 7b0d4ebf03f408e9199c3aa9e0fb8056cff17d11 (diff) | |
download | mkinitfs-8785cfa9ce642d8b4cde64ea0e4c497aa55a5780.tar.bz2 mkinitfs-8785cfa9ce642d8b4cde64ea0e4c497aa55a5780.tar.xz |
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.
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 4 |
1 files 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 |