Commit 7e7c6470 authored by David Johnson's avatar David Johnson

Bugfix.

parent 7c65cd2d
...@@ -95,7 +95,8 @@ elif [ "$COMPUTE_EXTRA_NOVA_DISK_SPACE" = "1" ]; then ...@@ -95,7 +95,8 @@ elif [ "$COMPUTE_EXTRA_NOVA_DISK_SPACE" = "1" ]; then
# #
# See if we can try to use an LVM instead of just the 4th partition. # See if we can try to use an LVM instead of just the 4th partition.
# #
DEVS=`lsblk -n -P -o NAME,FSTYPE,MOUNTPOINT,PARTTYPE,PARTUUID | perl -e 'my %devs = (); while (<STDIN>) { $_ =~ s/([A-Z0-9a-z]+=)/;\$$1/g; print "line = $_"; eval "$_"; if ($NAME ne "sda" && $NAME ne "/dev/nvme0n1" && $NAME ne "sda2" && $FSTYPE eq "" && $FSTYPE eq "" && $MOUNTPOINT eq "" && ($PARTTYPE eq "" || $PARTTYPE eq "0x0")) { push(@devs,"/dev/$NAME"); } }; print join(" ",@devs)."\n"'` lsblk -n -P -o NAME,FSTYPE,MOUNTPOINT,PARTTYPE,PARTUUID | perl -e 'my %devs = (); while (<STDIN>) { $_ =~ s/([A-Z0-9a-z]+=)/;\$$1/g; print "line = $_"; eval "$_"; if ($NAME ne "sda" && $NAME ne "/dev/nvme0n1" && $NAME ne "sda2" && $FSTYPE eq "" && $FSTYPE eq "" && $MOUNTPOINT eq "" && ($PARTTYPE eq "" || $PARTTYPE eq "0x0")) { push(@devs,"/dev/$NAME"); } }; print join(" ",@devs)."\n"' > /tmp/devs
DEVS=`cat /tmp/devs`
if [ -n "$DEVS" ]; then if [ -n "$DEVS" ]; then
VGNAME="openstack-volumes" VGNAME="openstack-volumes"
pvcreate $DEVS pvcreate $DEVS
......
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