Combine parted script into one command
It looks like we may be encountering issues running the second or third of these commands; combine them into one to reduce system raciness. Change-Id: Iacb93868c678161d84bb5c06a8180b8eb12b5fe7
This commit is contained in:
parent
47b2b4d31c
commit
101e0fbbc5
|
@ -38,9 +38,10 @@
|
|||
echo "*** ${DEV} unmounting and reformating"
|
||||
umount ${DEV}
|
||||
fi
|
||||
parted ${DEV} --script -- mklabel msdos
|
||||
parted ${DEV} --script -- mkpart primary linux-swap 1 ${SWAPSIZE}
|
||||
parted ${DEV} --script -- mkpart primary ext2 8192 -1
|
||||
parted ${DEV} --script -- \
|
||||
mklabel msdos \
|
||||
mkpart primary linux-swap 1 ${SWAPSIZE} \
|
||||
mkpart primary ext2 8192 -1
|
||||
sync
|
||||
# We are only interested in scanning $DEV, not all block devices
|
||||
sudo partprobe ${DEV}
|
||||
|
|
Loading…
Reference in New Issue