Mageia Bugzilla – Attachment 10513 Details for
Bug 23911
Truly minimal install without urpmi installs urpmi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
same but more intelligent
0001-only-install-radeon-firmware-if-needed-v2-mga-23911.patch (text/plain), 2.02 KB, created by
Thierry Vignaud
on 2018-11-28 01:37:15 CET
(
hide
)
Description:
same but more intelligent
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2018-11-28 01:37:15 CET
Size:
2.02 KB
patch
obsolete
>From ea93fea43ccb8e53f13453f6e7a8b6012cb9beb5 Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Wed, 28 Nov 2018 01:05:14 +0100 >Subject: [PATCH] only install radeon-firmware if needed v2 (mga#23911) > >aka if there's an ATI gfx card > >It would be better to use the FIRMWARE field from ldetect-lst >XFdrake is supposed to handle it but for minimal installs w/o Xorg (mga#15203) > >also explicitely pull microcode in case recommends is disabled >--- > perl-install/install/any.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm >index 0e4d4e880..eee6e3dfc 100644 >--- a/perl-install/install/any.pm >+++ b/perl-install/install/any.pm >@@ -409,7 +409,7 @@ sub is_firmware_needed_ { > my $need_microcode = detect_devices::hasCPUMicrocode(); > log::l("nonfree firmware is needed for the CPU (microcode)") if $need_microcode; > >- @need || @xpkgs || $need_microcode; >+ if_(@need, 'kernel-firmware-nonfree'), @xpkgs, $need_microcode; > } > > =item is_firmware_needed($o) >@@ -844,8 +844,8 @@ sub default_packages { > add_n_log("have LVM", "lvm2") if !is_empty_array_ref($o->{all_hds}{lvms}); > add_n_log("have crypted DM", "cryptsetup") if !is_empty_array_ref($o->{all_hds}{dmcrypts}); > add_n_log("some disks are fake RAID", qw(mdadm dmraid)) if any { fs::type::is_dmraid($_) } @{$o->{all_hds}{hds}}; >- add_n_log("CPU needs microcode", "microcode_ctl") if detect_devices::hasCPUMicrocode(); >- add_n_log("either CPU or GFX needs firmware", qw(kernel-firmware-nonfree radeon-firmware)) if is_firmware_needed($o); >+ add_n_log("CPU needs microcode", qw(microcode microcode_ctl)) if detect_devices::hasCPUMicrocode(); >+ add_n_log("either CPU or GFX needs firmware", is_firmware_needed_($o)) if is_firmware_needed($o); > add_n_log("CPU needs cpupower", 'cpupower') if detect_devices::hasCPUFreq(); > add_n_log("APM support needed", 'apmd') if -e "/proc/apm"; > add_n_log("needed by hardware", detect_devices::probe_name('Pkg')); >-- >2.19.2 >
From ea93fea43ccb8e53f13453f6e7a8b6012cb9beb5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Wed, 28 Nov 2018 01:05:14 +0100 Subject: [PATCH] only install radeon-firmware if needed v2 (mga#23911) aka if there's an ATI gfx card It would be better to use the FIRMWARE field from ldetect-lst XFdrake is supposed to handle it but for minimal installs w/o Xorg (mga#15203) also explicitely pull microcode in case recommends is disabled --- perl-install/install/any.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 0e4d4e880..eee6e3dfc 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -409,7 +409,7 @@ sub is_firmware_needed_ { my $need_microcode = detect_devices::hasCPUMicrocode(); log::l("nonfree firmware is needed for the CPU (microcode)") if $need_microcode; - @need || @xpkgs || $need_microcode; + if_(@need, 'kernel-firmware-nonfree'), @xpkgs, $need_microcode; } =item is_firmware_needed($o) @@ -844,8 +844,8 @@ sub default_packages { add_n_log("have LVM", "lvm2") if !is_empty_array_ref($o->{all_hds}{lvms}); add_n_log("have crypted DM", "cryptsetup") if !is_empty_array_ref($o->{all_hds}{dmcrypts}); add_n_log("some disks are fake RAID", qw(mdadm dmraid)) if any { fs::type::is_dmraid($_) } @{$o->{all_hds}{hds}}; - add_n_log("CPU needs microcode", "microcode_ctl") if detect_devices::hasCPUMicrocode(); - add_n_log("either CPU or GFX needs firmware", qw(kernel-firmware-nonfree radeon-firmware)) if is_firmware_needed($o); + add_n_log("CPU needs microcode", qw(microcode microcode_ctl)) if detect_devices::hasCPUMicrocode(); + add_n_log("either CPU or GFX needs firmware", is_firmware_needed_($o)) if is_firmware_needed($o); add_n_log("CPU needs cpupower", 'cpupower') if detect_devices::hasCPUFreq(); add_n_log("APM support needed", 'apmd') if -e "/proc/apm"; add_n_log("needed by hardware", detect_devices::probe_name('Pkg')); -- 2.19.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23911
:
10508
|
10509
|
10510
|
10512
|
10513
|
10514