Commit 687d4e28 authored by David Johnson's avatar David Johnson

Extend aarch64 extra disk space hack to ppc64le.

parent 01d80748
...@@ -60,20 +60,24 @@ elif [ -z "$LVM" ] ; then ...@@ -60,20 +60,24 @@ elif [ -z "$LVM" ] ; then
MKEXTRAFS_ARGS="-l -v ${VGNAME} -m util -z 1024" MKEXTRAFS_ARGS="-l -v ${VGNAME} -m util -z 1024"
# On Cloudlab ARM machines, there is no second disk nor extra disk space # On Cloudlab ARM machines, there is no second disk nor extra disk space
# Well, now there's a new partition layout; try it. # Well, now there's a new partition layout; try it.
if [ "$ARCH" = "aarch64" ]; then if [ "$ARCH" = "aarch64" -o "$ARCH" = "ppc64le" ]; then
maybe_install_packages gdisk maybe_install_packages gdisk
sgdisk -i 1 /dev/sda sgdisk -i 1 /dev/sda
if [ $? -eq 0 ] ; then if [ $? -eq 0 ] ; then
sgdisk -N 2 /dev/sda nparts=`sgdisk -p /dev/sda | grep -E '^ +[0-9]+ +.*$' | wc -l`
partprobe /dev/sda if [ $nparts -lt 4 ]; then
if [ $? -eq 0 ] ; then newpart=`expr $nparts + 1`
sgdisk -N $newpart /dev/sda
partprobe /dev/sda partprobe /dev/sda
# Add the second partition specifically if [ $? -eq 0 ] ; then
MKEXTRAFS_ARGS="${MKEXTRAFS_ARGS} -s 2" partprobe /dev/sda
else # Add the new partition specifically
MKEXTRAFS_ARGS="" MKEXTRAFS_ARGS="${MKEXTRAFS_ARGS} -s $newpart"
VGNAME= else
LVM=0 MKEXTRAFS_ARGS=""
VGNAME=
LVM=0
fi
fi fi
else else
MKEXTRAFS_ARGS="" MKEXTRAFS_ARGS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment