Jump to: navigation, search

Linux Mint 19: Secure Boot

104 bytes added, 12:04, 23 September 2018
/* Prepare signed grub.cfg kernel and initrd on the EFI partition */
cp /boot/initrd.img-$KERNEL_VERSION /boot/efi/
* Add Create a secure boot "menuentry to " for the grub.cfg on the EFI partition
KERNEL_CMDLINE=$(cat /proc/cmdline | awk '{ $1=""; print $0 }')
DIST_NAME=$(grep 'PRETTY_NAME' /etc/os-release | cut -d'"' -f 2)
cat > secure_menuentry << EOF
menuentry 'Linux Mint 19 Cinnamon $DIST_NAME (secure boot)' --unrestricted --class ubuntu --class gnu-linux --class gnu {
### as result secure_menuentry will be created, please review it
* Add the content of secure_menuentry secure boot "menuentry" to grub.cfg on the EFI partition right before the first sed -i '/^menuentry/{e cat secure_menuentry :a;n;ba}' /boot/efi/grub.cfg
* Sign grub.cfg, kernel and initrd with your GPG key