sunhaiyong1978 / CLFS-for-LoongArch

如何交叉编译一个基于LoongArch架构的LFS(Linux From Scratch)系统。
180 stars 59 forks source link

grub生成efi文件参数缺少fat模块 #4

Open phorcys opened 3 years ago

phorcys commented 3 years ago
${CROSS_TARGET}-grub-mkimage \
          --directory "${SYSDIR}/sysroot/usr/lib64/grub/loongarch64-efi" \
          --prefix '(,gpt2)/boot/grub' \
          --output "${SYSDIR}/sysroot/boot/efi/EFI/BOOT/BOOTLOONGARCH.EFI" \
          --format 'loongarch64-efi' \
          --compression 'auto' \
          'ext2' 'part_gpt'

只默认打入了 ext2 和part_gpt 没有efi分区的fat,会导致grub 启动以后无法载入efi分区(fat格式)的各个mod 进入rescue模式

sunhaiyong1978 commented 3 years ago

fat是UEFI BIOS需要支持的,Grub支不支持无所谓,grub的模块放在ext2的boot分区中。