| Summary: | Live installer can't install bootloader packages if user has enabled remote repos with newer packages available and has no internet connection | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Morgan Leijström <fri> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Normal | CC: | mageia |
| Version: | Cauldron | ||
| Target Milestone: | Mageia 9 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | draklive-install | CVE: | |
| Status comment: | |||
| Attachments: | report.bug.xz per comment 2, right when installer say it can not install grub2 | ||
|
Description
Morgan Leijström
2021-01-18 00:14:16 CET
Morgan Leijström
2021-01-18 00:16:28 CET
Priority:
Normal =>
release_blocker It works if grub2 with deps are installed before launching Live installer. Target Milestone:
--- =>
Mageia 8 Please repeat the test and when you get the error message, open a terminal window and run su - drakbug_report | xz > report.bug.xz and attach the report.bug.xz here. Interesting. With a fresh persistence i could not repeat. Same ISO, I only replaced mgalive-persist partition (now Btrfs), and the only thing i have done to it before installing, was removing unused locales. I also in custom partitioning only selected clear, auto allocate, and moved on - and it just worked :) I saw in a transient window that it was installing grub2 (without any internet configured, so it was obviously from internal repo) I wonder if i may have disabled internal repo earlier in some of the many tests and forgot about it. ( but regardless of that i dont understand point 7. on comment 0. ) But I did also see this earlier; https://bugs.mageia.org/show_bug.cgi?id=27887#c5 The other attempts was after full updates and more programs. Will try more later. Created attachment 12235 [details] report.bug.xz per comment 2, right when installer say it can not install grub2 Got it: Only change since last test is configuring network, configure repos, disable updates repos (as this is cauldron) and do a full update. Then close internet connection and started Live. (In reply to Morgan Leijström from comment #4) > Then close internet connection... There's your problem. There is a newer version of one of the packages that needs to be installed, so urpmi tries to fetch it from the remote repository, and fails because you have disabled your internet connection. If you run draklive-install from the command line, you'll see the error message. Annoyingly it's not being written to any of the logs. I've been trying to improve the logging in draklive-install, but there's still a way to go. So the answer is, if you've enabled remote media, don't disable your internet connection. Before you say it, yes, a more informative error message would be good here. You are correct. However this is a normal use of Live with persistence: Update, add software... later run Live installer Sometimes, i.e depending on location in house, there is no internet connection. Strange it does not work after i click OK (back to previous screen), enable internet connection, and try again? Installer have to be run from start to work. Workaround for no internet connection: Disabled internet repos Suggestion: make grub2 a dependency of live installer. And on the live ISO included as installed instead of the Live Core repo (so no additional ISO size). Then it would be updated when user updates system. If you are using legacy boot, the grub2 package needs to be installed. If you are using UEFI boot, either the grub2-efi package or the refind package needs to be installed, depending on what the user chooses. So we would have to pre-install all three. Originally it wasn't possible to install both grub2 and grub2-efi - they conflicted. That has since been fixed, but I'd still want to remove the unwanted packages from the installed system. Changing this to an enhancement request, because it works out of the box. Hardware:
i586 =>
All I agree we can improve this later. Summing it up for future work: 1) Yes better error message would be good 2) Fix that it fail to install packages also after user did see error message and did estabilsh internet connection. 3) About including all dependencies: o ISO would be about same size if packages are included as installed in the compressed filesystem, or in the Live repo. We only save on size of not included in either. o Non issue for Non-Live systems ( do not install Live installer ) o Updating the Live, there will be maybe up to 50 MB used if these three deps are updated. Too much or not is the question. (we alredy have added f2fs recently) o Other reasons not to have them installed? (possible future conflicts?) This also triggers the question, are there other packages it may need install sometimes? If so try to meed 1) and 2) for such cases. |