Bug 34835 - Grub2 install fails when using netinstall ISO
Summary: Grub2 install fails when using netinstall ISO
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-11 23:01 CET by Thomas Andrews
Modified: 2025-12-21 12:50 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Report when grub fail (197.73 KB, application/x-xz)
2025-12-18 02:07 CET, katnatek
Details

Description Thomas Andrews 2025-12-11 23:01:07 CET
Description of problem:

Using the Nonfree Netinstall ISO to install Cauldron Plasma while retaining /home of a Mageia 9 install, all seems to proceed normally until it attemps to install grub2. This message appears, with an "OK" button in the corner:

grub2-install error: /usr/lib/grub/i386-ieee1275/modinfo.sh doesn't exist. Please specify --target or --directory.
      ...propagated.

Clicking on the OK sends me back to the point just before grub2 is to be installed, and the loop takes another round.

Hardware is an HP Probook 6550b, i3-M350, Intel graphics, non-EFI BIOS. There are three installs on this hardware, two Mageia 9 and (now) one Cauldron. The main production install is still Mageia 9.

I shut down the machine with the power button, and rebooted, going to the production install, and ran update-grub. That detected the Cauldron install, and I was then able to boot into that and continue on.
Comment 1 Thomas Andrews 2025-12-11 23:02:54 CET
Adding the 10alpha1 keyword, because if I remember correctly the netinstall uses virtually the same installer as the Classical isos

Keywords: (none) => 10alpha1

Thomas Andrews 2025-12-11 23:03:39 CET

Summary: Grub2 install fails when using Nonfree Netinstall iso for a Plasma guest => Grub2 install fails when using Nonfree Netinstall iso for a Plasma install

Comment 2 katnatek 2025-12-15 03:07:53 CET
As I get the same with Classic installer Iso 64bit installing LxQt
I edit the title

Summary: Grub2 install fails when using Nonfree Netinstall iso for a Plasma install => Grub2 install fails when using Classic Installer isos
CC: (none) => j.alberto.vc

Comment 3 katnatek 2025-12-15 18:28:52 CET
As requested in the qa list

This system can make efi boot, but I choose to use the legacy boot mode
What is weird is in VM all goes well :S
Comment 4 Martin Whitaker 2025-12-15 22:29:21 CET
This is similar to bug 34563 and bug 34541. The root cause for those cases was fixed, but it seems that GRUB still mis-identifies the system type on some hardware.

CC: (none) => mageia

Comment 5 Martin Whitaker 2025-12-15 23:01:44 CET
Can someone affected by this bug boot from a live ISO and see if "/proc/device-tree" exists. Also confirm that the GRUB error message starts with

  grub2-install error: /usr/lib/grub/i386-ieee1275/modinfo.sh doesn't exist

as there can be many other reasons for grub2-install to fail.
Comment 6 Thomas Andrews 2025-12-16 00:18:24 CET
If you mean the /proc of the live system, no. I see a 'devices' in that directory, but not 'device-tree'. The /proc of the installed Cauldron appears to be empty.

As for the error message, I quoted mine in comment 0, and it was about the same as the one in comment 5.
Comment 7 Martin Whitaker 2025-12-16 13:56:19 CET
Thanks TJ. Sorry not to have been more clear - the request to confirm the error message was intended for katnatek and anyone else commenting on this bug.

Just to be sure, what's the date on the netinstall ISO image you used?
Comment 8 Thomas Andrews 2025-12-16 15:09:44 CET
The image itself is rather old, July 8, 2025, using kernel 6.12.36-desktop-1.mga10. I wanted to see if the problem with downloading a mirror list had "fixed itself" and it had. That was December 11, same day I filed this bug.

But it is my misunderstanding that the actual installer is downloaded from the mirror(Princeton this time) at the time of install. So, wouldn't the date of the iso be irrelevant as long as it's a Cauldron iso for the current Cauldron (Mageia 10 this time)?
Comment 9 Martin Whitaker 2025-12-16 15:19:20 CET
(In reply to Thomas Andrews from comment #8)
> But it is my misunderstanding that the actual installer is downloaded from
> the mirror(Princeton this time) at the time of install. So, wouldn't the
> date of the iso be irrelevant as long as it's a Cauldron iso for the current
> Cauldron (Mageia 10 this time)?

In most cases yes. But the Linux kernel and drivers are loaded from the ISO image and persist even after the main installer is running.

bug 34563 was caused by a mis-configuration of the kernel. If you are using an old ISO image, it won't have the fixed kernel.
Comment 10 Thomas Andrews 2025-12-16 15:29:12 CET
Hmmm. Live and learn.

I will download the latest available from the Mageia website and try again. 

If that isn't the latest, then perhaps the website needs an update...
Comment 11 Thomas Andrews 2025-12-16 16:26:01 CET
Looks like we have a bigger issue. The December 13 nonfree netinstall won't boot on my Probook 6550b except in text mode. I went back and downloaded again,checked with md5, dumped it to the usb stick with Isodumper. No difference. I'll file another bug on that in a few minutes, once I get a chance to check the other isos, as well.

In the meantime, I'm doing a new install on the Probook in text mode. Navigating is definitely more annoying than the normal mode, but I'm working it out. Packages installing now - 54% complete.
Comment 12 Thomas Andrews 2025-12-16 17:04:28 CET
It was very painful to navigate the configuration page in text mode, but eventually I got through it. Grub2 was installed with no issues.
Comment 13 Thomas Andrews 2025-12-16 20:14:03 CET
I just installed Plasma from the 64-bit CI iso on this hardware, and saw no grub2 errors.
Comment 14 Marja Van Waes 2025-12-17 12:40:13 CET Comment hidden (obsolete)

CC: (none) => marja11

Comment 15 Marja Van Waes 2025-12-17 12:44:25 CET Comment hidden (obsolete)
Comment 16 Lewis Smith 2025-12-17 14:57:48 CET
This makes my head spin! Leaving it in all your competent hands.

Component: RPM Packages => Installer

Comment 17 Marja Van Waes 2025-12-17 15:02:21 CET Comment hidden (obsolete)
Comment 18 katnatek 2025-12-18 02:07:16 CET
Created attachment 15227 [details]
Report when grub fail

Sorry Martin perhaps for me is invalid look like the destination device 
(a usb memmory) has been manipulated so many times that is a few rotten

https://www.imagebam.com/view/ME18TXWF

But if the info is useful here is
Comment 19 Marja Van Waes 2025-12-18 16:20:20 CET Comment hidden (obsolete)
Comment 20 Marja Van Waes 2025-12-18 17:41:47 CET Comment hidden (obsolete)
Comment 21 Martin Whitaker 2025-12-18 19:36:47 CET Comment hidden (obsolete)
Comment 22 Martin Whitaker 2025-12-18 20:29:09 CET
@katnatek, are you installing onto a USB flash drive that you've previously used with an ISO image? If so, your problem is most likely that the is9660 filesystem signature is still present on the drive. Try using wipefs to examine that drive and to remove any filesystem signatures that shouldn't be there.
Comment 23 katnatek 2025-12-18 20:51:28 CET
(In reply to Martin Whitaker from comment #22)
> @katnatek, are you installing onto a USB flash drive that you've previously
> used with an ISO image? If so, your problem is most likely that the is9660
> filesystem signature is still present on the drive. Try using wipefs to
> examine that drive and to remove any filesystem signatures that shouldn't be
> there.

Yes, THANK YOU! I didn't know how to fix that
Comment 24 katnatek 2025-12-18 20:53:45 CET
(In reply to katnatek from comment #23)
> (In reply to Martin Whitaker from comment #22)
> > @katnatek, are you installing onto a USB flash drive that you've previously
> > used with an ISO image? If so, your problem is most likely that the is9660
> > filesystem signature is still present on the drive. Try using wipefs to
> > examine that drive and to remove any filesystem signatures that shouldn't be
> > there.
> 
> Yes, THANK YOU! I didn't know how to fix that

But I think, isodumper should do that when you format the usb
Comment 25 Marja Van Waes 2025-12-18 23:08:09 CET Comment hidden (obsolete)
Comment 26 Marja Van Waes 2025-12-18 23:33:59 CET Comment hidden (obsolete)
Comment 27 Martin Whitaker 2025-12-20 21:35:10 CET
Copying my summary from qa-discuss:

This is  three different issues:

TJ's problem was caused by using an old copy of the netinstall ISO, from before bug 34563 was fixed. The alpha1 ISOs were built after that date, so don't suffer from that problem.

katnatek's problem was caused by installing onto a USB flash drive that had previously held one of the ISO images. Repartitioning the drive and
reformatting the partitions doesn't remove the iso9660 filesystem signature (which is located in the empty space between the MBR and the first partition), and GRUB refuses to install itself if it sees that leftover filesystem signature. Modifying the installer to identify such situations and fix them is not something I'd want to attempt when we are trying to make a release.

Marja's problem looks to either be faulty UEFI firmware or a faulty EFI NVRAM. The workaround for that is to use the installer/drakboot option to install the bootloader in the EFI fallback location (\EFI\BOOT in the ESP), or to use the CSM and legacy boot.

@Marja, if you are happy with that answer, this bug can be closed.
Comment 28 Marja Van Waes 2025-12-21 12:49:11 CET
(In reply to Martin Whitaker from comment #27)

> 
> @Marja, if you are happy with that answer, this bug can be closed.

Yeah it's fine. Sorry for having commented in this report, I should first have asked on QA ml whether that would make sense, given the state of this laptop. I'll tag my comments as obsolete. 

However, I learnt new things, thanks for your patience with me :-)

Closing as fixed, because the original issue got fixed. However, removing the 10alpha1 keyword, because it never affected 10alpha1

@ Katnatek

I didn't touch your comments, although they're about a different issue. I saw you opened bug 34877 for it.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
Keywords: 10alpha1 => (none)

Marja Van Waes 2025-12-21 12:50:00 CET

Summary: Grub2 install fails when using Classic Installer isos => Grub2 install fails when using netinstall ISO


Note You need to log in before you can comment on or make changes to this bug.