Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
B #116: Use parted in non-interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlastimil Holer committed May 21, 2019
1 parent 61901fd commit 337b52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/one-context.d/loc-05-grow-rootfs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 337b52c

Please sign in to comment.