剛好今天有修改install的功能,有新增這部份。
就是先mount windows 的開機用的Partition,再執行 os-prober。For Windows installed in UEFI mode, make sure the EFI system partition containing the Windows Boot Manager (bootmgfw.efi) is mounted. Run os-prober as root to detect and generate an entry for it.
記得要先su,可用lsblk 查看所有的partition,再用mount /dev/sdb? /mnt,來掛載,之後再os-prober。
最後要 grub-mkconfig -o /boot/grub/grub.cfg,產生新的開機檔。
可以先備份 cp /boot/grub/grub.cfg /boot/grub/grub.cfg.bak ,以防萬一。
我還沒測試過,成功後講一下,或許未來可以在config 加上這個功能。
補充:https://zhuanlan.zhihu.com/p/471374126