Buildsystem: default bootloader is not my custom one

You can set BANAN_BOOTLOADER=GRUB to use grub instead. Image creation
does not convert disk image now automatically between bootloaders and
calling ./bos image-full is now required.
This commit is contained in:
2023-11-18 17:18:03 +02:00
parent cadb56d8ba
commit 9e44e8be75
4 changed files with 41 additions and 61 deletions

View File

@@ -12,14 +12,6 @@ fi
if [[ "$1" == "full" ]] || [[ ! -f $BANAN_DISK_IMAGE_PATH ]]; then
$BANAN_SCRIPT_DIR/image-create.sh
else
fdisk -l $BANAN_DISK_IMAGE_PATH | grep -q 'EFI System'; IMAGE_IS_UEFI=$?
[[ $BANAN_UEFI_BOOT == 1 ]]; CREATE_IS_UEFI=$?
if [[ $IMAGE_IS_UEFI -ne $CREATE_IS_UEFI ]]; then
echo Converting disk image to/from UEFI
$BANAN_SCRIPT_DIR/image-create.sh
fi
fi
LOOP_DEV=$(sudo losetup --show -f "$BANAN_DISK_IMAGE_PATH")