summaryrefslogtreecommitdiff
path: root/main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch')
-rw-r--r--main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch b/main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch
new file mode 100644
index 00000000000..d352e9372a5
--- /dev/null
+++ b/main/alpine-conf/0001-setup-disk-fix-detection-of-volume-group.patch
@@ -0,0 +1,27 @@
+From bf5cbd06213b6fdd6dd24fb0c5dd2fe4ca3950f0 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 22 Sep 2015 14:55:54 +0200
+Subject: [PATCH] setup-disk: fix detection of volume group
+
+when we have a device like /dev/mapper/vg0-lv_root, then will the LV
+name not match with lvs' first column.
+---
+ setup-disk.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup-disk.in b/setup-disk.in
+index 55b6dcb..6d021f7 100644
+--- a/setup-disk.in
++++ b/setup-disk.in
+@@ -152,7 +152,7 @@ supported_boot_fs() {
+
+ find_volume_group() {
+ local lv=${1##*/}
+- lvs --noheadings "$1" | awk "\$1 == \"$lv\" {print \$2}"
++ lvs --noheadings "$1" | awk '{print $2}'
+ }
+
+ find_pvs_in_vg() {
+--
+2.5.3
+