From 1b204846bed46cd865f212be1a3534c568db2967 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 26 Nov 2025 21:11:03 +0200 Subject: [PATCH] fix(sqmeta): only format if custom --- sqmeta/IMGBUILD | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/sqmeta/IMGBUILD b/sqmeta/IMGBUILD index a343c53..4cab919 100644 --- a/sqmeta/IMGBUILD +++ b/sqmeta/IMGBUILD @@ -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 } -- 2.44.1