From 8f9b87af344183d2e71b440a509a9b4965f9c854 Mon Sep 17 00:00:00 2001 From: Michael Trip Date: Tue, 18 Feb 2020 14:37:21 +0100 Subject: [PATCH] changed script --- vm-firstrun.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm-firstrun.sh b/vm-firstrun.sh index d02d7a4..fac470f 100644 --- a/vm-firstrun.sh +++ b/vm-firstrun.sh @@ -49,9 +49,9 @@ if [ -b "${CFG_ROOTFS_DISK}" ]; then # partprobe "${CFG_ROOTFS_DISK}" # expand the partition log "Expanding rootfs partition" - #growpart "${CFG_ROOTFS_DISK}""${CFG_ROOTFS_PARTITION}" + growpart "${CFG_ROOTFS_DISK}" "${CFG_ROOTFS_PARTITION}" pvresize "${CFG_ROOTFS_DISK}""${CFG_ROOTFS_PARTITION}" - lvextend -l+100%FREE /dev/mapper/centos-root + lvextend -l +100%FREE /dev/mapper/centos-root # # reload partition table log "Reloading partition table" partprobe "${CFG_ROOTFS_DISK}"