Mar 24, 2024
Systemd Boot windows
- Install edk2-shell:
sudo pacman -S edk2-shell - Copy edk2-shell to the EFI
sudo cp /usr/share/edk2-shell/x64/Shell.efi ESP/shellx64.efi - Write the “PARTUUID” of windows partition
blkid | grep vfat - Reboot and open the shell entry on the bootloader menu
- Find the “FS ALIAS” of windows partition using the command
mapand write it down, it should look like “HD0g65535a2:” then reboot to your linux system - Create a file in your boot partition called windows.nsh with this content :
# /boot/windows.nsh
<replace with your FS ALIAS>:EFI\Microsoft\Boot\Bootmgfw.efi
- Create a menu entry for windows in your bootloader
# /boot/loader/entries/windows.conf
title Windows
efi /shellx64.efi
options -nointerrupt -noconsolein -noconsoleout windows.nsh