From f8839e018061631dbdeb429c369ff6e16572576c Mon Sep 17 00:00:00 2001 From: Paul Whalen Date: Jun 25 2018 21:01:48 +0000 Subject: Fix hardcoded variable. --- diff --git a/arm-image-installer b/arm-image-installer index 7ea0dee..793815e 100755 --- a/arm-image-installer +++ b/arm-image-installer @@ -337,7 +337,7 @@ if [ "$RESIZEFS" != "" ]; then if [ "x$LVM_NAME" = "xfedora" ]; then #VGs with the name 'fedora' are problematic to be used #on Fedora systems. We rename them to 'image'. - LVM_UUID=$(pvs -o +vguuid | grep /dev/sdb | awk '{print $7}') + LVM_UUID=$(pvs -o +vguuid | grep $MEDIA | awk '{print $7}') vgrename $LVM_UUID image LVM_NAME=image LVM_RENAMED=yes