Enabling Secure Boot in MX Linux
Posted: Fri Jun 05, 2020 5:34 am
Now that Debian buster fully supports Secure Boot it is possible to also enable MX-19. Unfortunately Secure Boot does not allow for custom kernel modules so this guide should not be followed if the proprietary NVIDIA, Broadcom or VirtualBox drivers are needed, it also removes the ability to load ndiswrapper-derived drivers.
To enable Secure Boot first remove the various DKMS-related packages, as explained above:
Now install the required Secure Boot packages:
You will be asked if you want to replace the maintainer script at /etc/grub.d/10_linux, say "no" (which is the default) to keep MX's modified GRUB script.
Also copy the old 30_os-prober script back if dual-booting with Manjaro:
And finally pin the grub{,2}-common & grub-efi-amd64-bin packages so that the Debian versions are preferred over the MX versions:
Secure Boot should now work in MX.
EDIT: corrected purge command and simplified procedure.
EDIT2: added fehlix's fix.
To enable Secure Boot first remove the various DKMS-related packages, as explained above:
Code: Select all
sudo apt purge dkms broadcom-sta-dkms ndiswrapper{,-dkms,-utils-1.9} virtualbox-guest-{dkms,utils{,-modified-init},x11}
Code: Select all
sudo apt install shim-signed grub-efi-amd64-{signed,bin=2.02+dfsg1-20} grub{,2}-common=2.02+dfsg1-20 linux-image-amd64
Also copy the old 30_os-prober script back if dual-booting with Manjaro:
Code: Select all
sudo cp /usr/local/share/live-files/files/etc/grub.d/30_os-prober /etc/grub.d/30_os-prober
Code: Select all
sudo tee /etc/apt/preferences.d/secure-boot <<END
Package: grub-common grub2-common grub-efi-amd64-bin
Pin: release o=Debian
Pin-Priority: 1001
END
EDIT: corrected purge command and simplified procedure.
EDIT2: added fehlix's fix.