binary_grub-efi: Allow removal of protected packages

This commit is contained in:
David Hewitt 2021-08-04 16:02:06 +01:00
parent 1cd901cfa2
commit bd2a0e971b
No known key found for this signature in database
GPG Key ID: DF8BD0CF898CA8BA
1 changed files with 5 additions and 1 deletions

View File

@ -280,8 +280,12 @@ case "${LB_BUILD_WITH_CHROOT}" in
# Saving cache
Save_package_cache binary
# Removing depends
# Removing depends. Some bootloader packages are marked as Protected/Important
# in Ubuntu, so temporarily add an apt flag to allow them to be removed
PRE_APT_OPTIONS="${APT_OPTIONS}"
APT_OPTIONS="${APT_OPTIONS} --allow-remove-essential"
Remove_packages
APT_OPTIONS="${PRE_APT_OPTIONS}"
;;
false)