2.4 KiB
2.4 KiB
Links: Arch
Secure Boot
If setting up secure boot with EndeavourOS, don't use the preset grub. do it from scratch. The wiki is wrong and your ${GRUB_MODULES} needs to be in ""
Steps
- Install grub following the shim-lock info
- If you do not have any drives with a ZFS filesystem, you should exclude the zfs* modules (As they require the ZFS DKMS Module)
- Move
grubx64.efiinto theesp/EFI/BOOTdirectory and ensure is has that name. - Follow the steps to setup shim (shim with key), including the mkinicpio hook to automatically sign the kernel on update.
- If you are using EndeavourOS, you will need to install
mkinitcpioand uninstalldracutandeos-dracut
- If you are using EndeavourOS, you will need to install
- Generate the GRUB config file
- If you are wanting to dual boot, install
os-proberand uncommentGRUB_DISABLE_OS_PROBER=falsein/etc/default/grubthen regenerate the config
- If you are wanting to dual boot, install
- Enable Secure Boot and import your MOK.cer into shim's MOK list.
Note: If you ever re-install the GRUB grubx64.efi file (to get a newer version of GRUB for example), make sure to do so with the modules as described above, and you will need to re-sign the file with sbsign.
Bootable System Snapshots
Setup
Note: For the below to work Arch must be installed on a btrfs filesystem with seperate root (@) and home (@home) subvolumes. (This is the default for EndeavourOS when you select btrfs.) And you must be using GRUB as your bootloader.
- Install the following packages:
btrfs-progs- Utilies for btrfsgrub-btrfs- automatically adds Snapshots to the GRUB menutimeshift- creates and manages snapshotsinotify-tools- used by grub-btrfs to spot new snapshots
- Open timeshift and go through the setup, I recommend not including @home in snapshots.
- Run
sudo systemctl edit --full grub-btrfsdand adjust theExecStart=line to beExecStart=/usr/bin/grub-btrfsd --syslog --timeshift-auto - Enable grub-btrfs with
sudo systemctl enable --now grub-btrfsd - Install
timeshift-autosnapfrom the AUR - Edit the timeshift-autosnap config as desired, but be sure to disable it updating GRUB and that will conflict with
grub-btrfs
Usage
See Snapshot Usage