lorax-templates-qubes: break the build if efiboot.img is too big

Break the build instead of producing broken boot image.
pull/24/merge
Marek Marczykowski-Górecki 6 years ago
parent 938578c2b2
commit 2f3063da20
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -63,5 +63,7 @@ install boot/efi/EFI/*/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/
mkdir "${EFIBOOTDIR}/System Volume Information"
install "${configdir}/System Volume Information/*" "${EFIBOOTDIR}/System Volume Information/"
runcmd umount ${outroot}/${img}
# verify if the image is under 32MB (max size of boot image on iso9660)
runcmd sh -x -c '[ $(stat -c %s ${outroot}/${img}) -le 33554432 ]'
</%def>

Loading…
Cancel
Save