You are not logged in.

#1 2018-05-02 22:08:06

linuxlover91
Member
Registered: 2018-04-29
Posts: 5

[Sovled] Failure to load modules with grub-mkconfig (solution in post)

I'm trying to rebuild grub but running into some module errors:

[b]~$ sudo grub-mkconfig -o /boot/grub/grub.cfg [/b]
Generating grub configuration file ...
Found theme: /boot/grub/themes/fallout-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
[b]insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module part_msdos: No such file or directory
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory [/b]
/etc/grub.d/40_custom.new: line 69: search: command not found
/etc/grub.d/40_custom.new: line 74: loadfont: command not found
/etc/grub.d/40_custom.new: line 82: terminal_input: command not found
/etc/grub.d/40_custom.new: line 83: terminal_output: command not found
[b] insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module fat: No such file or directory [/b]
/etc/grub.d/40_custom.new: line 90: search: command not found
insmod: ERROR: could not load module gfxmenu: No such file or directory
/etc/grub.d/40_custom.new: line 93: syntax error near unexpected token `$root'
/etc/grub.d/40_custom.new: line 93: `loadfont ($root)/grub/themes/Vimix/unifont-regular-16.pf2'

It was working fine just yesterday. The last thing I did was install the lts-kernel, lts-headers, and grub-customizer. I tried uninstalling them and rebooting to no avail. The current grub configuration is working just fine and a quick search of /boot/grub/x86_64 shows the modules are present. I believe the errors in /etc/grub.d/40_custom are due to inability to load the modules because I have not changed the file since the last succesful build.

/boot/grub/grub.cfg

  #
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  86eea18a-5f20-47c0-ac00-ffcee074dcbd
else
  search --no-floppy --fs-uuid --set=root 86eea18a-5f20-47c0-ac00-ffcee074dcbd
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=English
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
else
  search --no-floppy --fs-uuid --set=root 4DCC-8E2A
fi
insmod gfxmenu
loadfont ($root)/grub/themes/fallout-grub-theme/fixedsys-regular-32.pf2
insmod png
set theme=($root)/grub/themes/fallout-grub-theme/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
        else
          search --no-floppy --fs-uuid --set=root 4DCC-8E2A
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
        echo    'Loading initial ramdisk ...'
        initrd  /intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
                else
                  search --no-floppy --fs-uuid --set=root 4DCC-8E2A
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
                echo    'Loading initial ramdisk ...'
                initrd  /intel-ucode.img /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
                else
                  search --no-floppy --fs-uuid --set=root 4DCC-8E2A
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "Android-x86 7.1 (nougat)" {
set root='(hd0,gpt6)'
linux /android-7.1-r1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86_64 SRC=/android-7.1-r1 buildvariant=userdebug DATA=/android-7.1-rs video=1920x1080 dpi=100
#acpi_sleep=s3_bios,s3_mode
initrd /android-7.1-r1/initrd.img
}

menuentry 'Phoenix OS v2.6.3 (based on Android Nougat 7.1)' --class android-x86 {
search --set=root --file /Phoenix/system.sfs
linux /Phoenix/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86_64  androidboot.selinux=permissive SRC=/Phoenix vga=ask buildvariant=userdebug DATA=/Phoenix/data
#nomodeset
#video=1920x1080 dpi=100  #vga=788
#initrd /Phoenix/intel-ucode.img /Phoenix/initramfs-linux.img
initrd /Phoenix/initrd.img
}


menuentry "Phoenix OS" {
search --set=root --file /EFI/PhoenixOS/kernel
linux /EFI/PhoenixOS/kernel quiet nomodeset root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=ask
initrd /EFI/PhoenixOS/initrd.img

}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Feeling Very stumped could really use some help.
p.s. running insmod /boot/grub/x86_64-efi/part_gpt.mod fails due to 'Invalid module format'



######Solution########
For anyone coming accross this post in the future, here is how I solved the problem:
1). uninstall grub

 sudo pacman -S grub  

2). delete /etc/grub.d/

 sudo rm -rf /etc/grub.d/ 

3). reinstall and rebuild as outlined in the wiki: https://wiki.archlinux.org/index.php/GR … allation_2

Last edited by linuxlover91 (2018-05-03 18:18:00)

Offline

#2 2018-05-02 22:43:21

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [Sovled] Failure to load modules with grub-mkconfig (solution in post)

What are the bold BBCode tags doing? Did you attempt to make that text bold? Or did you tyoe that in the terminal?


-- SealsRock12

Offline

#3 2018-05-03 00:27:04

linuxlover91
Member
Registered: 2018-04-29
Posts: 5

Re: [Sovled] Failure to load modules with grub-mkconfig (solution in post)

The BBcodes are an attempt to make the text bold. BBcodes can't be nested inside  'code' blocks. I should have read the documentation more closely: https://bbs.archlinux.org/help.php

Last edited by linuxlover91 (2018-05-03 00:28:39)

Offline

#4 2018-05-03 08:14:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,904

Re: [Sovled] Failure to load modules with grub-mkconfig (solution in post)

Where's 40_custom.new from and what does it look like?
Do you also get those error is you move it away?

Also

ls /etc/grub.d

Online

#5 2018-05-03 17:50:25

linuxlover91
Member
Registered: 2018-04-29
Posts: 5

Re: [Sovled] Failure to load modules with grub-mkconfig (solution in post)

I believe /etc/grub.d/40_custom.new appears when grub unsuccessfully tries to build grub.cfg from parts including 40_custom

~$ ls /etc/grub.d

00_header  10_linux  20_linux_xen  30_os-prober  40_custom  40_custom.new  41_custom  README 

~$ cat -n 40_custom

    1  #!/bin/sh
     2  exec tail -n +3 $0
     3  # This file provides an easy way to add custom menu entries.  Simply type the
     4  # menu entries you want to add after this comment.  Be careful not to change
     5  # the 'exec tail' line above.
     6
     7  menuentry "Android-x86 7.1 (nougat)" {
     8  set root='(hd0,gpt6)'
     9  linux /android-7.1-r1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86_64 SRC=/android-7.1-r1 buildvariant=userdebug DATA=/android-7.1-rs video=1920x1080 dpi=100
    10  #acpi_sleep=s3_bios,s3_mode
    11  initrd /android-7.1-r1/initrd.img
    12  }
    13
    14
    15  #menuentry 'Phoenix OS v2.6.3 (based on Android Nougat 7.1)' --class android-x86 {
    16  #search --set=root --file /Phoenix/system.sfs
    17  #linux /Phoenix/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86_64  androidboot.selinux=permissive SRC=/Phoenix vga=ask buildvariant=userdebug DATA=/Phoenix/data
    18  #nomodeset
    19  #video=1920x1080 dpi=100  #vga=788
    20  #initrd /Phoenix/intel-ucode.img /Phoenix/initramfs-linux.img
    21  #initrd /Phoenix/initrd.img
    22  #}
    23
    24
    25  #menuentry "Phoenix OS" {
    26  #search --set=root --file /EFI/PhoenixOS/kernel
    27  #linux /EFI/PhoenixOS/kernel quiet nomodeset root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=ask
    28  #initrd /EFI/PhoenixOS/initrd.img
    29
    30  #}

The commented out boot entries are one's I'm not currently using but want to save.

~$ cat -n 40_custom.new

1  #
     2  # DO NOT EDIT THIS FILE
     3  #
     4  # It is automatically generated by grub-mkconfig using templates
     5  # from /etc/grub.d and settings from /etc/default/grub
     6  #
     7
     8  ### BEGIN /etc/grub.d/00_header ###
     9  insmod part_gpt
    10  insmod part_msdos
    11  if [ -s $prefix/grubenv ]; then
    12    load_env
    13  fi
    14  if [ "${next_entry}" ] ; then
    15     set default="${next_entry}"
    16     set next_entry=
    17     save_env next_entry
    18     set boot_once=true
    19  else
    20     set default="0"
    21  fi
    22
    23  if [ x"${feature_menuentry_id}" = xy ]; then
    24    menuentry_id_option="--id"
    25  else
    26    menuentry_id_option=""
    27  fi
    28
    29  export menuentry_id_option
    30
    31  if [ "${prev_saved_entry}" ]; then
    32    set saved_entry="${prev_saved_entry}"
    33    save_env saved_entry
    34    set prev_saved_entry=
    35    save_env prev_saved_entry
    36    set boot_once=true
    37  fi
    38
    39  function savedefault {
    40    if [ -z "${boot_once}" ]; then
    41      saved_entry="${chosen}"
    42      save_env saved_entry
    43    fi
    44  }
    45
    46  function load_video {
    47    if [ x$feature_all_video_module = xy ]; then
    48      insmod all_video
    49    else
    50      insmod efi_gop
    51      insmod efi_uga
    52      insmod ieee1275_fb
    53      insmod vbe
    54      insmod vga
    55      insmod video_bochs
    56      insmod video_cirrus
    57    fi
    58  }
    59
    60  if [ x$feature_default_font_path = xy ] ; then
    61     font=unicode
    62  else
    63  insmod part_gpt
    64  insmod ext2
    65  set root='hd0,gpt3'
    66  if [ x$feature_platform_search_hint = xy ]; then
    67    search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  86eea18a-5f20-47c0-ac00-ffcee074dcbd
    68  else
    69    search --no-floppy --fs-uuid --set=root 86eea18a-5f20-47c0-ac00-ffcee074dcbd
    70  fi
    71      font="/usr/share/grub/unicode.pf2"
    72  fi
    73
    74  if loadfont $font ; then
    75    set gfxmode=auto
    76    load_video
    77    insmod gfxterm
    78    set locale_dir=$prefix/locale
    79    set lang=en_US
    80    insmod gettext
    81  fi
    82  terminal_input console
    83  terminal_output gfxterm
    84  insmod part_gpt
    85  insmod fat
    86  set root='hd0,gpt1'
    87  if [ x$feature_platform_search_hint = xy ]; then
    88    search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
    89  else
    90    search --no-floppy --fs-uuid --set=root 4DCC-8E2A
    91  fi
    92  insmod gfxmenu
    93  loadfont ($root)/grub/themes/Vimix/unifont-regular-16.pf2
    94  insmod jpeg
    95  insmod png
    96  set theme=($root)/grub/themes/Vimix/theme.txt
    97  export theme
    98  if [ x$feature_timeout_style = xy ] ; then
    99    set timeout_style=menu
   100    set timeout=5
   101  # Fallback normal timeout code in case the timeout_style feature is
   102  # unavailable.
   103  else
   104    set timeout=5
   105  fi
   106  ### END /etc/grub.d/00_header ###
   107
   108  ### BEGIN /etc/grub.d/10_linux ###
   109  menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
   110          load_video
   111          set gfxpayload=keep
   112          insmod gzio
   113          insmod part_gpt
   114          insmod fat
   115          set root='hd0,gpt1'
   116          if [ x$feature_platform_search_hint = xy ]; then
   117            search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
   118          else
   119            search --no-floppy --fs-uuid --set=root 4DCC-8E2A
   120          fi
   121          echo    'Loading Linux linux ...'
   122          linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
   123          echo    'Loading initial ramdisk ...'
   124          initrd  /intel-ucode.img /initramfs-linux.img
   125  }
   126  submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
   127          menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
   128                  load_video
   129                  set gfxpayload=keep
   130                  insmod gzio
   131                  insmod part_gpt
   132                  insmod fat
   133                  set root='hd0,gpt1'
   134                  if [ x$feature_platform_search_hint = xy ]; then
   135                    search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
   136                  else
   137                    search --no-floppy --fs-uuid --set=root 4DCC-8E2A
   138                  fi
   139                  echo    'Loading Linux linux ...'
   140                  linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
   141                  echo    'Loading initial ramdisk ...'
   142                  initrd  /intel-ucode.img /initramfs-linux.img
   143          }
   144          menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-86eea18a-5f20-47c0-ac00-ffcee074dcbd' {
   145                  load_video
   146                  set gfxpayload=keep
   147                  insmod gzio
   148                  insmod part_gpt
   149                  insmod fat
   150                  set root='hd0,gpt1'
   151                  if [ x$feature_platform_search_hint = xy ]; then
   152                    search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4DCC-8E2A
   153                  else
   154                    search --no-floppy --fs-uuid --set=root 4DCC-8E2A
   155                  fi
   156                  echo    'Loading Linux linux ...'
   157                  linux   /vmlinuz-linux root=UUID=86eea18a-5f20-47c0-ac00-ffcee074dcbd rw  quiet splash
   158                  echo    'Loading initial ramdisk ...'
   159                  initrd  /initramfs-linux-fallback.img
   160          }
   161  }
   162
   163  ### END /etc/grub.d/10_linux ###
   164
   165  ### BEGIN /etc/grub.d/20_linux_xen ###
   166  ### END /etc/grub.d/20_linux_xen ###
   167
   168  ### BEGIN /etc/grub.d/30_os-prober ###
   169  ### END /etc/grub.d/30_os-prober ###
   170
   171  ### BEGIN /etc/grub.d/40_custom ###
   172  # This file provides an easy way to add custom menu entries.  Simply type the
   173  # menu entries you want to add after this comment.  Be careful not to change
   174  # the 'exec tail' line above.
   175
   176  menuentry "Android-x86 7.1 (nougat)" {
   177  set root='(hd0,gpt6)'
   178  linux /android-7.1-r1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86_64 SRC=/android-7.1-r1 buildvariant=userdebug DATA=/android-7.1-rs video=1920x1080 dpi=100
   179  #acpi_sleep=s3_bios,s3_mode
   180  initrd /android-7.1-r1/initrd.img
   181  }
   182
   183  menuentry "Phoenix OS v2.6.3 (based on android nougat 7.1)" { 
   184  set root='(hd0.gpt7)' 
   185  #vga=795
   186  linux /Phoenix/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86 SRC=/Phoenix DATA=/Phoenix/Phoenix-data video=1920x1080 dpi=100
   187  #DATA=/Phoenix-data
   188  initrd /Phoenix/initrd.img
   189  }
   190
   191
   192
   193  #menuentry 'Phoenix OS' --class android-x86 {
   194  #search --set=root --file /EFI/PhoenixOS/kernel
   195  #linux /EFI/PhoenixOS/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=788
   196  #initrd /EFI/PhoenixOS/initrd.img
   197  #}
   198  ### END /etc/grub.d/40_custom ###
   199
   200  ### BEGIN /etc/grub.d/40_custom.bak ###
   201  # This file provides an easy way to add custom menu entries.  Simply type the
   202  # menu entries you want to add after this comment.  Be careful not to change
   203  # the 'exec tail' line above.
   204
   205  menuentry "Android-x86 7.1 (nougat)" {
   206  set root='(hd0,gpt6)'
   207  linux /android-7.1-r1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86_64 SRC=/android-7.1-r1 buildvariant=userdebug DATA=/android-7.1-rs video=1920x1080 dpi=100
   208  #acpi_sleep=s3_bios,s3_mode
   209  initrd /android-7.1-r1/initrd.img
   210  }
   211
   212  menuentry "Phoenix OS v2.6.3 (based on android nougat 7.1)" { 
   213  set root='(hd0.gpt7)' 
   214  #vga=795
   215  linux /Phoenix/kernel quiet root=/dev/ram0 androidboot.selinux=permissive androidboot.hardware=android_x86 SRC=/Phoenix DATA=/Phoenix/Phoenix-data video=1920x1080 dpi=100
   216  #DATA=/Phoenix-data
   217  initrd /Phoenix/initrd.img
   218  }
   219
   220
   221
   222  menuentry 'Phoenix OS' --class android-x86 {
   223  #search --set=root --file /EFI/PhoenixOS/kernel
   224  #linux /EFI/PhoenixOS/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=788
   225  #initrd /EFI/PhoenixOS/initrd.img
   226  #}
   227  ### END /etc/grub.d/40_custom.bak ###
   228
   229  ### BEGIN /etc/grub.d/41_custom ###
   230  if [ -f  ${config_directory}/custom.cfg ]; then
   231    source ${config_directory}/custom.cfg
   232  elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
   233    source $prefix/custom.cfg;
   234  fi
   235  ### END /etc/grub.d/41_custom ###

As you can see the errors all appear to be in 00_header.
I tried removing then reinstalling the linux-headers and lts-headers packages.
Reinstalling grub did not work either.

Last edited by linuxlover91 (2018-05-03 17:57:31)

Offline

#6 2018-05-03 18:12:55

linuxlover91
Member
Registered: 2018-04-29
Posts: 5

Re: [Sovled] Failure to load modules with grub-mkconfig (solution in post)

For anyone coming accross this post in the future, here is how I solved the problem:
1). uninstall grub

 sudo pacman -S grub  

2). delete /etc/grub.d/

 sudo rm -rf /etc/grub.d/ 

3). reinstall and rebuild as outlined in the wiki: https://wiki.archlinux.org/index.php/GR … allation_2

Offline

Board footer

Powered by FluxBB