Bug 33135 - Mageia 9 Live installer fail, missing grub2 and xorriso if using persistence with updates and no internet connection
Summary: Mageia 9 Live installer fail, missing grub2 and xorriso if using persistence ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 10
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2024-04-23 16:53 CEST by Morgan Leijström
Modified: 2024-04-25 15:04 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Morgan Leijström 2024-04-23 16:53:06 CEST
Description of problem:

Grub2 and a couple deps is missing/not found when booting an updated persistent Live Mageia 9 ISO and trying to install to disk without internet available.

I discovered it on a a system which had not internet available.
Pretty irritating it falls on the last step of install when setting up boot :( 

According to Bug 17250 - Grub2 missing from Live DVDs,
grub2 is supposed to be aboard but not visible in the .lst file?

I note the installer tries to download grub2 and xorriso from updates repository.  So they are not installed in the Live system, but it knows the updated versions exist, and without internet connection it fail.

I guess Bug 1750 was probably solved only for Live systems without persistence, which we added later, and then we did not think of his.

I think the way to solve this is to have grub2 and deps packages really installed in the Live systems, which also will keep them updated.

I tried successfully: booted the Live on another system, installed grub2 and deps (tot 4 pkgs IIRC), and then it succeeded this step on the target machine without network connection.
Morgan Leijström 2024-04-23 16:53:38 CEST

Target Milestone: --- => Mageia 10

Comment 1 Dave Hodgins 2024-04-23 20:36:43 CEST
The refind package should be included too.

CC: (none) => davidwhodgins

Comment 2 Martin Whitaker 2024-04-24 09:31:22 CEST
You could have worked round this by temporarily disabling the on-line urpmi media (unless you have removed the local repository) or by booting with persistence disabled (mgalive.overlay=ram boot option).

We can't simultaneously install both 32-bit and 64-bit versions of the grub2-efi package, so can't pre-install all the needed bootloader packages in the Live system. That could possibly be fixed, but would need a change to the grub2 packaging. We'd also need further modifications to draklive-install to remove the unwanted packages.

CC: (none) => mageia

Comment 3 Dave Hodgins 2024-04-24 16:30:36 CEST
The packages could be saved in /var/cache/urpmi/rpms, but not installed in
the live system.
Comment 4 Martin Whitaker 2024-04-24 16:51:53 CEST
(In reply to Dave Hodgins from comment #3)
> The packages could be saved in /var/cache/urpmi/rpms, but not installed in
> the live system.

How would that be better than the current solution of storing them in /var/local/mga_rpms?

The problem is not that the bootloader packages are not available. It is that Morgan has added on-line media, so urpmi knows that there are newer versions of those packages available on-line and tries to install the newer versions.
Comment 5 Dave Hodgins 2024-04-24 18:00:20 CEST
Sorry. I forgot they were already available.
Comment 6 Morgan Leijström 2024-04-24 18:36:19 CEST
Maybe the installer tool can automatically temporarily disable the on-line urpmi media?
Morgan Leijström 2024-04-24 22:55:28 CEST

Summary: Mageia 9 Live installer fail, missing grub2 and xorriso => Mageia 9 Live installer fail, missing grub2 and xorriso if using persistence with updates and no internet connection

Comment 7 Dave Hodgins 2024-04-25 02:26:34 CEST
The workaround of disabling the online repos before installing from a live iso
with persistence and re-enabled post install should be added to the errata.

CC: (none) => atelier-bugs
Keywords: (none) => FOR_ERRATA9

Comment 8 Morgan Leijström 2024-04-25 15:04:48 CEST
https://wiki.mageia.org/en/Mageia_9_Errata#Live_installer

Keywords: FOR_ERRATA9 => IN_ERRATA9


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