CD의 el torito에서 부팅할 때 grub2가 커널 옵션을 무시하는 이유는 무엇입니까?

CD의 el torito에서 부팅할 때 grub2가 커널 옵션을 무시하는 이유는 무엇입니까?

iso9660 iso의 el torito 이미지를 grub.cfg로드 한 다음 빌드하는 간단한 수동 생성 파일이 있습니다 .grub-mkimage

실제로 모든 것이 부팅되지만 커널 옵션은 완전히 무시됩니다.

내 거 grub.cfg:

set default=0
set timeout=10

set gfxmode=auto
insmod efi_gop
insmod efi_uda

menuentry "MyOS" {
    search.fs_label SOMELABEL root
    set gfxpayload=keep
    linux /boot/vmlinuz quiet
    initrd /boot/initrd
}

위는 grub 부팅 메뉴의 항목을 보여주며, 이를 사용하여 편집하면 e올바른 구성이 표시됩니다. 그러나 그것은 확실히 quiet커널로 전달되지 않았습니다.

그림:

grub-mkimage -O x86_64-efi -o EFI/BOOT/BOOTX64.EFI --config=boot/grub/grub.cfg --compression=xz disk part_msdos part_gpt linux loopback normal configfile search search_label true iso9660 efi_uga efi_gop gfxterm gfxmenu gfxterm_menu fat ls cat tar

EFI 부팅:

dd if=/dev/zero of=efiboot.img bs=4k count=1000
mkfs.vfat efiboot.img
mount efiboot.img /mnt
cp -r EFI/ /mnt
unmount /mnt

및 iso(MBR 라인 무시):

xorriso -as mkisofs -l -J -R -V SOMELABEL \
  -no-emul-boot -boot-load-size 4 -boot-info-table \
  -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
  -ishybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
  -eltorito-alt-boot -e efiboot.img -no-emul-boot -isohybrid-gpt-basdat \
  -o some_output.iso .

위의 모든 내용을 중요 항목으로 표시합니다.https://gist.github.com/deitch/260bb94ecf7932cb83bdf7024099fdb5

편집: 예, grub shell을 입력 c하고 수동으로 속성을 입력해 보았습니다. 불운.

관련 정보