Skip to content

Instantly share code, notes, and snippets.

View tpgxyz's full-sized avatar
🏠
Working from home

Tomasz Paweł Gajc tpgxyz

🏠
Working from home
View GitHub Profile
@Neurognostic
Neurognostic / create-uefi-unified-image.sh
Last active May 31, 2024 11:22
Dracut UEFI Unified Kernel Image with Secure Boot Signing
esp=/efi
distro=archlinux
mkdir -p $esp/EFI/$distro
# Generate UEFI Unified Image
dracut --force --verbose --kver $(uname -r) $esp/EFI/$distro/linux+initramfs.efi.signed
# Create UEFI boot manager entry
efibootmgr --quiet --create --disk /dev/disk/by-label/EFI --label 'Arch Linux' --loader /EFI/$distro/linux+initramfs.efi.signed