DEVELOPMENT ENVIRONMENT

~liljamo/src.quest-anemos

1b204846bed46cd865f212be1a3534c568db2967 — Jonni Liljamo 8 days ago 819e190
fix(sqmeta): only format if custom
1 files changed, 14 insertions(+), 6 deletions(-)

M sqmeta/IMGBUILD
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
}