Skip to content

mxgrub broken #178

Closed
donald opened this issue May 5, 2021 · 8 comments · Fixed by #179
Closed

mxgrub broken #178

donald opened this issue May 5, 2021 · 8 comments · Fixed by #179

Comments

@donald
Copy link
Collaborator

donald commented May 5, 2021

root@nsa:~# mxgrub default
cat: '/usr/lib/grub/i386-pc/[ab]*.mod': No such file or directory

  Note: GRUB version installed in /usr differs from GRUB version used to boot.

  Consider updating the boot-loader with:

           grub-install --boot-directory=/boot /dev/sda

GRUB is already installed in MBR.
grub-editenv - set chosen=mariux-5.10.24-375
root@nsa:~# grub-install --boot-directory=/boot /dev/sda
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
@donald
Copy link
Collaborator Author

donald commented May 5, 2021

Already fixed on distmaster.

@donald donald closed this as completed May 5, 2021
@donald donald reopened this May 5, 2021
@donald
Copy link
Collaborator Author

donald commented May 5, 2021

root:sigabrt:~/# mxgrub default

  Note: GRUB version installed in /usr differs from GRUB version used to boot.

  Consider updating the boot-loader with:

           grub-install --boot-directory=/boot /dev/nvme0n1

mount -L ESP /boot/efi
grub-install --target=x86_64-efi --no-nvram /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
umount /boot/efi
GRUB is already installed in MBR.
grub-editenv - set chosen=mariux-5.10.24-375
root:sigabrt:~/# grub-install --boot-directory=/boot /dev/nvme0n1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

@wwwutz
Copy link
Contributor

wwwutz commented May 5, 2021

maybe umount /boot/efi isn't your friend here ? I did test it on sigstop or ill... somewhere but ...

@pmenzel
Copy link
Contributor

pmenzel commented May 5, 2021

You have to specify the target:

sudo grub-install --target=i386-pc --boot-directory=/boot /dev/sda

@donald
Copy link
Collaborator Author

donald commented May 5, 2021

Hmmm. mxgrub KERNEL seems to always do grub-install. Can we just dispose the misleading check and error message?

@donald
Copy link
Collaborator Author

donald commented May 5, 2021

@thomas : 4ac501c is yours.

@pmenzel
Copy link
Contributor

pmenzel commented May 5, 2021

I believe, as we figured out at a teatime conference call, that it’s my UEFI installation check that is broken. I created issue #180.

@donald
Copy link
Collaborator Author

donald commented May 5, 2021

Great, thanks!

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants