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

Break the build instead of producing broken boot image.
This commit is contained in:
Marek Marczykowski-Górecki 2018-09-15 20:17:09 +02:00
parent 938578c2b2
commit 2f3063da20
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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>