Commit bf5cbd06 authored by Natanael Copa's avatar Natanael Copa

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.
parent 21a2a17a
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment