M sqmeta/IMGBUILD => sqmeta/IMGBUILD +14 -6
@@ 57,10 57,18 @@ cleanup() {
}
provision() {
- # Bootloader
- uuid=$(lsblk -rno UUID /dev/vda2)
- sed -e "s|^root=|root=/dev/disk/by-uuid/${uuid}|" -i /etc/update-extlinux.conf
- dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of="${BLKDEV}"
- extlinux --install /boot
- update-extlinux -v
+ case "$format" in
+ "custom")
+ # Bootloader
+ echo "Setting up bootloader"
+ uuid=$(lsblk -rno UUID /dev/vda2)
+ sed -e "s|^root=|root=/dev/disk/by-uuid/${uuid}|" -i /etc/update-extlinux.conf
+ dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of="${BLKDEV}"
+ extlinux --install /boot
+ update-extlinux -v
+ ;;
+ *)
+ echo "Not setting up bootloader"
+ ;;
+ esac
}