Skip to content

Commit

Permalink
EFI: Purge grub-pc after install grub-efi
Browse files Browse the repository at this point in the history
grub-efi-amd64 removes grub-pc, but grub-pc leaves residual config files
When the user purges it, debconf asks if /boot/grub should be wiped. If the user says yes (which is not the default option)
the system becomes unbootable.
  • Loading branch information
clefebvre committed Feb 15, 2022
1 parent b978e21 commit 83644fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/lib/live-installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def start_installation(self):
os.system("cp /run/live/medium/pool/main/g/grub-efi-amd64-signed/* /target/debs/")
os.system("cp /run/live/medium/pool/main/s/shim*/* /target/debs/")
self.do_run_in_chroot("dpkg -i /debs/*")
self.do_run_in_chroot("DEBIAN_FRONTEND=noninteractive apt-get remove --purge --yes grub-pc")
os.system("rm -rf /target/debs")

print(" --> Installing microcode packages")
Expand Down

0 comments on commit 83644fd

Please sign in to comment.