Skip to content

Instantly share code, notes, and snippets.

@niksingh710
Created April 11, 2023 05:08
Show Gist options
  • Save niksingh710/500b18ca7c0041ce0c180844768bfbe3 to your computer and use it in GitHub Desktop.
Save niksingh710/500b18ca7c0041ce0c180844768bfbe3 to your computer and use it in GitHub Desktop.
Grub modules list to be used when installing grub bootloader with sbct (Secure boot)
CD_MODULES="
all_video
boot
btrfs
cat
chain
configfile
echo
efifwsetup
efinet
ext2
fat
font
gettext
gfxmenu
gfxterm
gfxterm_background
gzio
halt
help
hfsplus
iso9660
jpeg
keystatus
loadenv
loopback
linux
ls
lsefi
lsefimmap
lsefisystab
lssal
memdisk
minicmd
normal
ntfs
part_apple
part_msdos
part_gpt
password_pbkdf2
png
probe
reboot
regexp
search
search_fs_uuid
search_fs_file
search_label
sleep
smbios
squash4
test
true
video
xfs
zfs
zfscrypt
zfsinfo
"
# Platform-specific modules
CD_MODULES="$CD_MODULES
cpuid
play
tpm
"
GRUB_MODULES="$CD_MODULES
cryptodisk
gcry_arcfour
gcry_blowfish
gcry_camellia
gcry_cast5
gcry_crc
gcry_des
gcry_dsa
gcry_idea
gcry_md4
gcry_md5
gcry_rfc2268
gcry_rijndael
gcry_rmd160
gcry_rsa
gcry_seed
gcry_serpent
gcry_sha1
gcry_sha256
gcry_sha512
gcry_tiger
gcry_twofish
gcry_whirlpool
luks
lvm
mdraid09
mdraid1x
raid5rec
raid6rec
http
tftp
"
# vim: ft=sh
@niksingh710
Copy link
Author

Make sure to source this file in your shell env.

source ./grub-modules

echo $GRUB_MODULES   # Should list all variables

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="$GRUB_MODULES" --disable-shim-lock

Make sure to edit if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment