如何用systemd-boot引导加上window11?或者用clover引导来引导win11和arch?
i think you don't install the systemd-boot
i used it
Becaus i installed the Blissos
then it broken my PC ![]()
so please install the grub2 (only my thinking)
Hello
I think i find the anwser(cpu 64bits)
first use pacman to install the package "edk2-shell"
and copy the shellx64.efi
command "sudo pacman -S edk2-shell && cp /usr/share/edk2-shell/x64/Shell.efi /boot/shellx64.efi"
then reboot computer and select UEFI Shell
run "map" command
you can see the fs alias
third reboot to your ArchLinux
cd /boot
Create a UEFI Shell script "windows.nsh"
if you fs alias is"HD0b"
you write "HD0b:EFI\Microsoft\Boot\Bootmgfw.efi" to "windows.nsh"
go to /boot/loader/entries/
create "windows.conf"
write "title Windows
efi /shellx64.efi
options -nointerrupt -noconsolein -noconsoleout windows.nsh" to "windows.conf"
but if you update your kernel
the /boot/loader/entries/ will be reset!
so do it.
you can mkdir ~/systemd-windows_boot-backup
cd /etc/systemd/system
create "update-windows-boot.service"
write "[Unit]
Description=Update Windows boot entry
[Service]
ExecStart=/usr/bin/update-windows-entry.sh"
cd /usr/bin
create "update-windows-entry.sh"
write "#!/bin/bash
cp ~/systemd-windwos_boot-backup/conf/windows.nsh /boot/
cp ~/systemd-windows_boot-backup/windows.conf /boot/loader/entries/ "
then chmod 777 update-windows-entry.sh
go to /etc/pacman.d/hooks
create "update-windows-entry.hooks"
write " [Trigger]
Operation = Upgrade
Type = Package
Target = linux-cachyos
Target = linux-cachyos-lts
Target = linux-lts
Target = linux
[Action]
Description = Updating Windows boot entry...
When = PostTransaction
Exec = /usr/bin/systemctl start update-windows-boot.service"
all is OK
虽然但是,为啥不用grub
i think i have some wrong
it is " Create an UEFI Shell script "
who can translator it?
将windows的efi分区挂载到/mnt,并将Microsoftk拷贝到/boot/EFI目录下,然后重启
sudo cp -ax /mnt/EFI/Microsoft/ /boot/EFI/
会自动增加一个windows的启动选项.
这个取决于主板,标准没有这种自动发现。
请勿转发由机器生成的奇怪内容。
https://wiki.archlinuxcn.org/zh-sg/Systemd-boot
这个wiki里面的 "3.2 增加启动选项" 部分说是会搜索这个目录的.
systemd-boot 会自动扫描 /EFI/Microsoft/Boot/Bootmgfw.efi,应该是不需要配置的。但是 systemd-boot 只扫描 UEFI 固件中配置的默认启动硬盘上的 EFI,如果有多 EFI 的需求,建议使用 rEFInd,它会自动扫描所有硬盘的 EFI.