fix fs expansion

This commit is contained in:
Hal Emmerich 2019-10-21 00:23:52 -05:00
parent d12c6b88e1
commit b10e68c1c5

View File

@ -248,8 +248,8 @@ expand() {
#Reload the partition mapping #Reload the partition mapping
partprobe $BOOT_DEVICE partprobe $BOOT_DEVICE
#Force the filesystem to fill the new partition #Force the filesystem to fill the new partition
resize2fs -f ${BOOT_DEVICE}p2 resize2fs -f ${BOOT_DEVICE}2
echo "/dev/${BOOT_DEVICE}p2 / ext4 defaults,noatime 0 1" > /etc/fstab echo "/dev/${BOOT_DEVICE}2 / ext4 defaults,noatime 0 1" > /etc/fstab
} }