EFI Stub Antec

 root@archiso ~ # efibootmgr -c -d /dev/sda -p 1 -l /EFI/arch/vmlinuz-arch.efi -L "Arch Linux" -u "root=PARTUUID=49af276b-cf22-47a4-bf1e-b30e2fac6655 rootfstype=xfs add_efi_memmap initrd=/EFI/arch/initramfs-arch.img"

root@archiso ~ # blkid
/dev/sda1: SEC_TYPE="msdos" UUID="EFF9-6B1A" TYPE="vfat" PARTLABEL="EFI" PARTUUID="c30b18b3-030f-481a-a8f5-b827936ca260"
/dev/sda2: UUID="228c8155-39b9-4c1e-a2a0-7dbc68d5dba5" TYPE="xfs" PARTLABEL="Linux filesystem" PARTUUID="49af276b-cf22-47a4-bf1e-b30e2fac6655"

root@archiso ~ # cat /mnt/etc/systemd/system/efistub-update.service
[Unit]
Description=Copy EFISTUB Kernel to UEFISYS Partition

[Service]
Type=oneshot
ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-arch.efi
ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/efi/EFI/arch/initramfs-arch.img
ExecStart=/usr/bin/cp -f /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch/initramfs-arch-fallback.img

root@archiso ~ # cat /mnt/etc/systemd/system/efistub-update.path
[Unit]
Description=Copy EFISTUB Kernel to UEFISYS Partition

[Path]
PathChanged=/boot/initramfs-linux-fallback.img

[Install]
WantedBy=multi-user.target

Comments

Popular posts from this blog

Uploading Firmware to "bricked" Netgear WNDR3800 from Linux with atftp after botched DD-WRT Firmware Upgrade.

VMware Remote Console detected; unable to proceed with VMware Workstation installation.

zabbix agent on gentoo