B #116: Use parted in non-interactive mode

pull/166/head
Vlastimil Holer 6 years ago
parent 61901fd66e
commit 337b52c08a
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -38,9 +38,9 @@ if [ "${LVM}" != "no" ]; then
# when PV is on MSDOS logical partition, detect the umbrella
# extended partition and grow it first
TABLE=$(parted ${DISK} print 2>/dev/null | grep 'Partition Table:' | awk '{print $3}')
TABLE=$(parted -s ${DISK} print 2>/dev/null | grep 'Partition Table:' | awk '{print $3}')
if [ "${TABLE}" = 'msdos' ] && [ ${PARTITION} -gt 4 ]; then
PARTITION="$(parted ${DISK} print | grep 'extended' | awk '{print $1}') $PARTITION"
PARTITION="$(parted -s ${DISK} print | grep 'extended' | awk '{print $1}') $PARTITION"
fi
fi

Loading…
Cancel
Save