Description of problem: When I install Mageia on a system, I notice that when I install via a USB thumbdrive, the MCC has identified it as the CD Media. The issue is, if I install for a novice, then, if they are unable to log into their WiFi or network due to missing software (ex: supplicant software), the novice is asked to log into the MCC to add the missing software. However, when trying to add the missing software (ex: supplicant software), the novice is unable to use the USB Thumbdrive that was used to install the Mageia distribution as a window appeared prompting the novice to "Insert media into CD-Rom". The MCC would not allow the novice to search on the USB Thumbdrive that was the initial media installer. It identified the installation media as a CD installation. Version-Release number of selected component (if applicable): all versions How reproducible: Happens always My suggestion is: would it be possible to add an extra media source that would also look for a USB Mageia ISO image? This would would avoid any such situation. IMO, this would be the most likely simplest solution. This would take care of reduce the frustration for the novice in trying to fix an issue that needs the use of the USB-Thumbdrive media type.
CC: (none) => marc
There seem to be several points. Maybe I misunderstand something. 1. Are we talking about a system with no network access at installation? So no network software gets installed? OTOH I have a feeling that if you have (say) WiFi or Ethernet network hardware, they will be sensed, and you can configure these things without them being operational (but not 'test' the connection); which seems to be the case you describe. The necessary software should be installed. 2. Are you talking about the Classic (as opposed to Live) installer? The Lives copy everything they have to the installed system, nothing more can be added without a network. 3. Are we in a situation where on-line media were *not* added during installation? 4. The networkless user has available only what is on the installation USB (or DVD). If you try to add software, it has nowhere else to look. When MCC asks to "Insert media into CD-Rom", is that satisfied by inserting the installation USB? If not, that would be a bug. CC'ing Martin for your expert opinion please.
CC: (none) => lewyssmith, mageia
As I remarked on the qa-discuss list, both urpmi and rpmdrake are already capable of using the installation media on the USB stick (albeit in urpmi's case, with the possible need to workaround bug 16142 as described in https://wiki.mageia.org/en/Mageia_6_Errata#Installing_additional_software_packages_from_a_USB_memory_stick). When I tested it using MCC/rpmdrake, there was no mention of 'CD-ROM' - the message was "Please insert the medium named Core/Release". All I needed to do was plug in the USB stick and click on the OK button. Can you provide instructions to reproduce the message "Insert media into CD-Rom"?
Keywords: (none) => NEEDINFO
(In reply to Martin Whitaker from comment #2) > As I remarked on the qa-discuss list, both urpmi and rpmdrake are already > capable of using the installation media on the USB stick (albeit in urpmi's > case, with the possible need to workaround bug 16142 as described in > https://wiki.mageia.org/en/ > Mageia_6_Errata#Installing_additional_software_packages_from_a_USB_memory_sti > ck). > > When I tested it using MCC/rpmdrake, there was no mention of 'CD-ROM' - the > message was "Please insert the medium named Core/Release". All I needed to > do was plug in the USB stick and click on the OK button. > > Can you provide instructions to reproduce the message "Insert media into > CD-Rom"? I went ahead and tried to duplicate the same install on one of my desktops as for my 80yr old client. In the attempt to get her online and to install the "supplicant" software (the missing software package to get her WiFi going) from the USB ISO thumbdrive, I had previously walked her through re-checking the message "CD-ROM Core" and "CD-ROM Nonfree" media boxes and had her connect her copy of the Mageia 7.1 USB iso into a USB port on her computer, and walked her through mounting the thumbdrive from her bottom taskbar (in Plasma). When following the same steps on my replicated computer, I get is the same as you have found: "Please Insert the medium named Core/Release". I clicked on OK with no results, and with the same message coming back up. I also got her to pull out and re-insert the ISO thumbdrive with no success. We then tried to install the wpa-supplicant package through the MCC->Install and Remove Software where she was unable to install it there as well. We then tried to "uncheck all of the media sources except for the CD-Rom media sources and tried to install any software package -- Thunderbird. And this is where I believe my client viewed an error message with the word "CD" in the wording. At that point, being overwhelmed with details it was just as easy to take the unit back to my place to install WiFi. After playing around with the settings here is what I have found: *you cannot use the USB ISO thumbdrive to install any packages unless you make sure to mount the thumbdrive -- it is not automatically mounted for use with the MCC (i have found this to be the same with a CD-ISO) *you cannot use the USB ISO thumbdrive to install any packages if any other media sources have been checked. To install any packages from the USB ISO thumbdrive you must un-check any other media source in the media list (I have found this to be the same with a CD-ISO) Enhancement suggestion: So, going back to the original enhancement suggestion. In order to mitigate the situation where the use of the ISO thumbdrive is needed, would it be possible to add the extra setting for a USB ISO thumbdrive and where there would be no other need than to check the USB ISO media? It would be also useful if this particular setting were not dependent on "unchecking" all of the other media settings. The result of this would be that, at the time of installation, 3 original media sources would show as "CD-ROM Core"; "CD-ROM Nonfree"; "USB-ISO". By checking "USB ISO", any package installation would check the USB ports for any USB device with an ISO image. This would make it simpler to walk someone through the steps installing packages through an ISO image should they not be able to connect to the internet either through wired or wifi interface.
The real problem here is that your system is not auto-mounting the filesystem on the USB stick. Are you using the 32-bit ISO?
(In reply to Martin Whitaker from comment #4) > The real problem here is that your system is not auto-mounting the > filesystem on the USB stick. Are you using the 32-bit ISO? No, I am using the Classic Installation 64bit. I have installed approx. 40 since last November. I have no 32bit computers left on my list.
This may be DE-specific then. In the DEs I regularly use (Cinnamon and Xfce), if you insert a USB stick imaged with the 64-bit CI ISO, it will be automatically mounted, and rpmdrake will see it. Same with a DVD. I don't have Plasma installed, so can't easily check its behaviour.
(In reply to Martin Whitaker from comment #6) > This may be DE-specific then. In the DEs I regularly use (Cinnamon and > Xfce), if you insert a USB stick imaged with the 64-bit CI ISO, it will be > automatically mounted, and rpmdrake will see it. Same with a DVD. > > I don't have Plasma installed, so can't easily check its behaviour. I have checked on my other systems and the USB stick is mounted but not available for use with MCC. This may have something to do with needing root access for MCC and media sources. Seeing as the default for Mageia is Plasma, it would be safe to assume that for most installations this behaviour would be the most likely from users and novices who are describing the same issue as I am.
I have tried a Mageia7 Classic USB stick under Plasma to see what happens. It caused the usual popup about what to do with it. Dismissing that, the device remains *not* mounted. It opened OK with Dolphin and other applications (two archive utilities), when it became mounted. Once - first time? - I got a dialogue for root password, unable to reproduce.
Investigating further, urpmi (and rpmdrake) fall back to using perl-Hal-Cdroms to mount the installer media if the DE doesn't auto-mount them. There are a couple of problems with this: - perl-Hal-Cdroms only detects CDROM/DVDROM devices, not USB devices - perl-Hal-Cdroms uses udisks, which is obsolete, and causes other bugs (see bug 16142, bug 24949) So I think what is really needed here is a replacement for perl-Hal-Cdroms that fixes these issues. I also notice that when urpmi (and rpmdrake) prompt to insert the media, they truncate the media name, e.g. "Core Release " rather than the full "Core Release (installer)". The full name would give a better hint to the user about what they should be inserting. "(installer ISO)" might be even better... CC'ing tv, the maintainer of both packages.
CC: (none) => thierry.vignaudComponent: Installer => RPM PackagesKeywords: NEEDINFO => (none)Source RPM: (none) => urpmi, perl-Hal-CdromsSummary: Suggestion of Adding USB drive as Media Source => urpmi/rpmdrake should auto-mount USB installer media if the DE doesn'tAssignee: bugsquad => mageiatools
If you've time to update perl-Hal-Cdroms to work using udisks2 and being more generic (USB, …), I'll be more than happy :-)
(In reply to Martin Whitaker from comment #9) Thank you for all your investigations. > CC'ing tv, the maintainer of both packages. Changing this to assigned to tv (removed the CC), since it cannot stay forever with bugsquad.
Assignee: mageiatools => thierry.vignaudCC: lewyssmith, thierry.vignaud => (none)
I've done the update to perl-Hal-Cdroms in git. I've tested it on a Mageia 7 system (standalone and when using urpmi). The problem of the media names being truncated when urpmi/rpmdrake prompt for the media to be inserted appears to be caused by a call to urpm::util::remove_internal_name in urpm::cdrom::_mount_cdrom. I'll leave you to decide what should be done about that.
Would you care to add more tests to t/* ?
One can look at perl-Net-DBus for how to test Dbus: https://metacpan.org/source/DANBERR/Net-DBus-1.2.0/t (you'll need to run 'git pull' first though as I modernized the basic testsuite + added coverage for POD)
I'm asking you as you just reviewed the code & tested it so you're in the best position to do it :-) In the meantime, I've released 0.05 in Cauldron & on CPAN (https://metacpan.org/pod/Hal::Cdroms) so that we can got more testers. Once it has been a little bit tested, we could think about backporting it to mga7 Thanks again for the hard work
Truncating through remove_internal_name() was introduced in 2004 when we had 'bad' names: http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=dbb59de3655dd687ece09a0cdb6c3a3c290c2aa4 I guess we could think about killing that function… It's not used outside of urpm::cdrom…
I can help test if you tell me how to do it. Marc
Note that "(installer ISO)" could be misleading when using a USB stick but I guess that any user able to install using a USB stick should understand it. But that's probably a "drakiso & the like" change…
Note that I am passing out USB Mageia installers to whomever asks in my region. So, we should use as descriptive wording as possible. Some of the people I hope to service are also newly immigrants to Canada and EN or FR are not their first language. The Mageia installation process is still one of the easiest of the Linux distros which makes it attractive for first-time users.
(In reply to Marc Paré from comment #17) > I can help test if you tell me how to do it. If you meant testing the fixed perl-Hal-Cdroms: install perl-Hal-Cdroms-0.50.0-1.mga8 once it hits your favorite mirror and play with installing packages from the ISO. If you didn't have the ISO as a medium in /etc/urpmi/urpmi.cfg, you'll need to add it. If you meant improving the test suite, that would probably mean faking some stuff and try calling Hal-Cdroms code
If testing perl-Hal, I assume that I should then be test-trying an install of the Mageia8 iso? Could you point me to it?
(In reply to Thierry Vignaud from comment #18) > Note that "(installer ISO)" could be misleading when using a USB stick but > I guess that any user able to install using a USB stick should understand it. > > But that's probably a "drakiso & the like" change… Maybe "(install media)"
CC: (none) => tmb
Mageia 7 is EOL since July 1st 2021. There will not have any further bugfix for this release. You are encouraged to upgrade to Mageia 8 as soon as possible. @reporter, if this bug still apply with Mageia 8, please let us know it. @packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead. This bug report will be closed OLD if there is no further notice within 1st September 2021.
Hi bug reporter and hi assignee and others involved, Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly. This report is being closed as OLD because it was filed against Mageia 7, for which support ended on June 30th 2021. Thanks, Marja
Status: NEW => RESOLVEDResolution: (none) => OLD