diff --git a/setup.sh b/setup.sh index bbcd8b9..a31bd1a 100644 --- a/setup.sh +++ b/setup.sh @@ -40,7 +40,14 @@ for disk in `echo $disks`; do # remove echo for testing echo "Partitioning disk $disk..." # collect the return values, check them for errors and display them - errors=`sgdisk --zap-all /dev/disk/by-id/$disk >/dev/null 2>&1 && sgdisk -n2:1M:+512M -t2:EF00 /dev/disk/by-id/$disk >/dev/null 2>&1 && sgdisk -n3:0:+512M -t3:BF01 /dev/disk/by-id/$disk >/dev/null 2>&1 && sgdisk -n4:0:0 -t4:BF01 /dev/disk/by-id/$disk >/dev/null 2>&1` + sgdisk --zap-all /dev/disk/by-id/$disk + #2>&1 1>/dev/null && + sgdisk -n2:1M:+512M -t2:EF00 /dev/disk/by-id/$disk + #2>&1 1>/dev/null && + sgdisk -n3:0:+512M -t3:BF01 /dev/disk/by-id/$disk + #2>&1 1>/dev/null && + sgdisk -n4:0:0 -t4:BF01 /dev/disk/by-id/$disk + #2>&1 1>/dev/null` if ! [ "$?" = "0" ]; then echo "Failed to partition disk $disk - $errors" exit 3