# use a list of classes for our demo machine
case $HOSTNAME in
demohost)
- echo "FAIBASE DEBIAN DESKTOP MANY_DISK STABLE" ;;
+ echo "FAIBASE DEBIAN DESKTOP ONE_DISK STABLE" ;;
x2)
echo "FAIBASE DEBIAN DESKTOP ONE_DISK" ;;
tp)
crypt_devs=(${letters[@]/#//dev/mapper/crypt_dev_${d}})
first_boot_dev=${devs[0]}$bootn
-partition=false
+partition=true
# somewhat crude detection of whether to partition
for dev in ${devs[@]}; do
parted -s $dev mklabel gpt
# gpt ubuntu cloud image uses ~4. fai uses 1 MiB. ehh, i'll do 4.
# also, using MB instead of MiB causes complains about alignment.
- parted -s $dev mkpart primary "ext3" 4MB ${boot_end}MiB
- parted -s $dev mkpart primary "linux-swap" ${boot_end}MiB ${swap_end}MiB
- parted -s -- $dev mkpart primary "" ${swap_end}MiB -0
- parted -s $dev mkpart primary "" 1MiB 4MiB
- parted -s $dev set $bios_grubn bios_grub on
- parted -s $dev set $bootn boot on # generally not needed on modern systems
+ pcmd="parted -a optimal -s -- $dev"
+ $pcmd mkpart primary "ext3" 4MB ${boot_end}MiB
+ $pcmd mkpart primary "linux-swap" ${boot_end}MiB ${swap_end}MiB
+ $pcmd mkpart primary "" ${swap_end}MiB -0
+ $pcmd mkpart primary "" 1MiB 4MiB
+ $pcmd set $bios_grubn bios_grub on
+ $pcmd set $bootn boot on # generally not needed on modern systems
# the mkfs failed randomly on a vm, so I threw a sleep in here.
sleep .1