Commit a18d3b73 authored by David Johnson's avatar David Johnson

If the aarch64 node uses MBR 103, try to create part 2 and mkextrafs.

parent b2634d01
......@@ -52,9 +52,23 @@ if [ -z "$LVM" ] ; then
VGNAME="openstack-volumes"
MKEXTRAFS_ARGS="-l -v ${VGNAME} -m util -z 1G"
# On Cloudlab ARM machines, there is no second disk nor extra disk space
# Well, now there's a new partition layout; try it.
if [ "$ARCH" = "aarch64" ]; then
MKEXTRAFS_ARGS=""
LVM=0
sgdisk -i 1 /dev/sda
if [ $? -eq 0 ] ; then
sgdisk -N 2 /dev/sda
if [ $? -eq 0 ] ; then
partprobe
# Add the second partition specifically
MKEXTRAFS_ARGS="${MKEXTRAFS_ARGS} -s 2"
else
MKEXTRAFS_ARGS=""
LVM=0
fi
else
MKEXTRAFS_ARGS=""
LVM=0
fi
fi
/usr/local/etc/emulab/mkextrafs.pl ${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