Avoid EFI image overflow when syncing GRUB theme
This commit is contained in:
@@ -888,14 +888,9 @@ sync_efi_grub_theme_assets() {
|
|||||||
echo "bootloader sync: patching EFI GRUB image $img"
|
echo "bootloader sync: patching EFI GRUB image $img"
|
||||||
mmd -i "$img" "::/boot" >/dev/null 2>&1 || true
|
mmd -i "$img" "::/boot" >/dev/null 2>&1 || true
|
||||||
mmd -i "$img" "::/boot/grub" >/dev/null 2>&1 || true
|
mmd -i "$img" "::/boot/grub" >/dev/null 2>&1 || true
|
||||||
mmd -i "$img" "::/boot/grub/live-theme" >/dev/null 2>&1 || true
|
|
||||||
|
|
||||||
copy_file_to_fat_image "$img" "${BUILDER_DIR}/config/bootloaders/grub-efi/config.cfg" "::/boot/grub/config.cfg"
|
copy_file_to_fat_image "$img" "${BUILDER_DIR}/config/bootloaders/grub-efi/config.cfg" "::/boot/grub/config.cfg"
|
||||||
copy_file_to_fat_image "$img" "${BUILDER_DIR}/config/bootloaders/grub-efi/theme.cfg" "::/boot/grub/theme.cfg"
|
copy_file_to_fat_image "$img" "${BUILDER_DIR}/config/bootloaders/grub-efi/theme.cfg" "::/boot/grub/theme.cfg"
|
||||||
for asset in "${BUILDER_DIR}"/config/bootloaders/grub-efi/live-theme/*; do
|
|
||||||
[ -f "$asset" ] || continue
|
|
||||||
copy_file_to_fat_image "$img" "$asset" "::/boot/grub/live-theme/"
|
|
||||||
done
|
|
||||||
|
|
||||||
fat_image_has_file "$img" "::/boot/grub/config.cfg" || {
|
fat_image_has_file "$img" "::/boot/grub/config.cfg" || {
|
||||||
echo "ERROR: EFI GRUB image missing /boot/grub/config.cfg after sync: $img" >&2
|
echo "ERROR: EFI GRUB image missing /boot/grub/config.cfg after sync: $img" >&2
|
||||||
@@ -905,14 +900,6 @@ sync_efi_grub_theme_assets() {
|
|||||||
echo "ERROR: EFI GRUB image missing /boot/grub/theme.cfg after sync: $img" >&2
|
echo "ERROR: EFI GRUB image missing /boot/grub/theme.cfg after sync: $img" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
fat_image_has_file "$img" "::/boot/grub/live-theme/theme.txt" || {
|
|
||||||
echo "ERROR: EFI GRUB image missing /boot/grub/live-theme/theme.txt after sync: $img" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
fat_image_has_file "$img" "::/boot/grub/live-theme/bee-logo.tga" || {
|
|
||||||
echo "ERROR: EFI GRUB image missing /boot/grub/live-theme/bee-logo.tga after sync: $img" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$found" != "1" ]; then
|
if [ "$found" != "1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user