Bug 23911

Summary: Truly minimal install without urpmi installs urpmi
Product: Mageia Reporter: Stig-Ørjan Smelror <smelror>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: Mageia-Cauldron-netinstall-nonfree-x86_64.iso CVE:
Status comment:
Attachments: Unselected Everything
Especially no urpmi
report.bug.xz
only install radeon-firmware if needed (mga#23911)
same but more intelligent
same but more intelligent

Description Stig-Ørjan Smelror 2018-11-27 22:03:12 CET
I just did a minimal install with Mageia-Cauldron-netinstall-nonfree-x86_64.iso, chose to install the _really_ minimal version which states that it comes without urpmi.

After logging in, I still find urpmi installed. Either this string needs to be changed or some deps that pulls urpmi needs to be updated.
Comment 1 Stig-Ørjan Smelror 2018-11-27 22:03:45 CET
Created attachment 10508 [details]
Unselected Everything
Comment 2 Stig-Ørjan Smelror 2018-11-27 22:04:08 CET
Created attachment 10509 [details]
Especially no urpmi
Comment 3 Manuel Hiebel 2018-11-27 22:13:11 CET
Could you provide the file /root/drakx/report.bug.xz as an attachment ?

Component: Installer => RPM Packages

Comment 4 Stig-Ørjan Smelror 2018-11-27 22:23:15 CET
Created attachment 10510 [details]
report.bug.xz

Here is the report.bug.xz file from a brand new installation.
Comment 5 Manuel Hiebel 2018-11-27 22:39:35 CET
everything comes from 
* selecting radeon-firmware-20180710-2.mga7.nonfree.noarch

which comes from
* requested ralink-firmware, iwlwifi-firmware, radeon-firmware, rtlwifi-firmware recommended by kernel-firmware-nonfree-20180606-2.mga7.nonfree.noarch

* requiring drakx-kbd-mouse-x11[*] for radeon-firmware-20180710-2.mga7.nonfree.noarch
* requiring drakx-kbd-mouse-x11-text,drakxtools-curses[>= 16.0],libdrakx-kbd-mouse-x11[== 1.25],monitor-edid[>= 1.12],perl(Xconfig::default),perl(Xconfig::main),perl(Xconfig::resolution_and_depth),perl(Xconfig::xfree),polkit for drakx-kbd-mouse-x11-1.25-2.mga7.x86_64

* requiring drakx-net-text,perl(Curses::UI),perl(Libconf),perl(Libconf::Glueconf::NUT::Ups_conf),perl-Locale-gettext[>= 1.05-4mdv2007],urpmi[>= 4.8.23] for drakxtools-curses-18.7-1.mga7.x86_64

CC: (none) => thierry.vignaud, tmb

Comment 6 Manuel Hiebel 2018-11-27 22:55:49 CET
I was wrong, the truly minimal install remove recommends, I don't know from where the kernel-firmware-nonfree is pulled
Comment 7 Stig-Ørjan Smelror 2018-11-27 23:21:59 CET
drakxtools-curses requires drakxtools-backend which requires urpmi

%package curses
Summary: The drakxtools (diskdrake, ...)
Group: System/Configuration
Requires: perl-base >= 2:5.8.6-1, urpmi >= 4.8.23, polkit

This shows on line 27049 in report.bug

Also, drakx-net Requires: drakxtools >= %{drakxtools_ver}
Comment 8 Thierry Vignaud 2018-11-28 00:58:19 CET
(In reply to Manuel Hiebel from comment #6)
> I was wrong, the truly minimal install remove recommends, I don't know from
> where the kernel-firmware-nonfree is pulled

It comes from there:
http://gitweb.mageia.org/software/drakx/tree/perl-install/install/any.pm?h=18.7#n848

This could be enhanced to select more surgically the needed pkgs.

radeon-firmware requires stuff for its scriptlets which call bootloader-config & display_driver_helper
Comment 9 Thierry Vignaud 2018-11-28 01:07:41 CET
Created attachment 10512 [details]
only install radeon-firmware if needed (mga#23911)
Comment 10 Thierry Vignaud 2018-11-28 01:37:15 CET
Created attachment 10513 [details]
same but more intelligent
Comment 11 Thierry Vignaud 2018-11-28 01:54:35 CET
Created attachment 10514 [details]
same but more intelligent

Attachment 10513 is obsolete: 0 => 1

Comment 12 Thierry Vignaud 2018-11-28 02:08:48 CET
Fixed in git

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 13 Thomas Backlund 2018-11-28 06:42:59 CET
I'm not sure I consider this a good fix, as now we have lost the possibility to switch gpus without worrying if supporting firmware is in place.

for example many radeon hw wont even init screen if it cant get its firmware...

The reason we kept installing firmwares by default is so people could actually hotplug hw and know it will work... that is now gone...
Comment 14 Thierry Vignaud 2018-11-28 08:00:24 CET
yes & no.
Note that those disabling nonfree were already not getting it.

Here that concerns only the people doing a minimum install w/o recommended packages.
That's a minority & they should know what they're doing.

The vast majority of people will still got it b/c of recommends:
kernel-firmware -> kernel-firmware-nonfree -> radeon-firmware
x11-driver-video-ati -> radeon-firmware

Min install was 1.5Gb (vs ~300mb a couple years ago), so we'd to do sg.
This has been part of it