GRUB2: grub.cfg に insmod xxxx モジュールを正しく追加してください。

GRUB2: grub.cfg に insmod xxxx モジュールを正しく追加してください。

たとえば、独自のカスタム grub2 モジュールを追加したいと思います。 xxxx.mod を grub.cfg に変換します。どうすればいいですか?たとえば、ここでは次のようにinsmod xxxx.modを追加したいと思います。

### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux, with Linux 3.10.0-123.el7.x86_64' --class centos     --class gnu-linux --class gnu --class os --unrestricted     $menuentry_id_option 'gnulinux-3.10.0-123.el7.x86_64-advanced-de1018ee-c601-4d48-9e1b-042a7ec8d6c1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos 
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  de1018ee-c601-4d48-9e1b-042a7ec8d6c1
else

ベストアンサー1

おすすめ記事