lorax-templates-qubes: break the build if efiboot.img is too big
Break the build instead of producing broken boot image.
(cherry picked from commit 2f3063da20
)
This commit is contained in:
parent
4e74523491
commit
688010eed8
@ -82,5 +82,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…
Reference in New Issue
Block a user