aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-22 14:55:54 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-22 14:59:54 +0200
commitbf5cbd06213b6fdd6dd24fb0c5dd2fe4ca3950f0 (patch)
tree6ca25e3c552f53640c75cdb1bbb7b4f183007fa8
parent21a2a17a6365f1d0c6ab2ba5826896e9b1491e99 (diff)
downloadalpine-conf-bf5cbd06213b6fdd6dd24fb0c5dd2fe4ca3950f0.tar.bz2
alpine-conf-bf5cbd06213b6fdd6dd24fb0c5dd2fe4ca3950f0.tar.xz
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.
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
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() {