Skip to content

Commit

Permalink
Grub: Purge grub-pc before installing grub-efi-amd64
Browse files Browse the repository at this point in the history
Purging grub-pc removes /etc/default/grub
Installing grub-efi-amd64 recreates it..

if we purge after, we end up with no default grub :(
  • Loading branch information
clefebvre committed Feb 16, 2022
1 parent c023ebe commit 16a771e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/lib/live-installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def start_installation(self):
os.system("cp /run/live/medium/pool/main/g/grub2/grub-efi* /target/debs/")
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")
self.do_run_in_chroot("dpkg -i /debs/*")
os.system("rm -rf /target/debs")

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

0 comments on commit 16a771e

Please sign in to comment.