From b4ce4dc30caf0106ba74025e4fccc1902d73860b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 20 Dec 2013 16:14:56 +0100 Subject: hint that nonfree is needed if a CPU needs a microcode --- perl-install/install/NEWS | 2 ++ perl-install/install/any.pm | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 8744fb7df..88532bfbd 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- media step: + o hint that nonfree is needed if a CPU needs a microcode - drakx-in-chroot: o advise to install xephyr if missing diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 217080202..9bad240c2 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -333,7 +333,11 @@ sub is_firmware_needed_ { require pkgs; my @xpkgs = pkgs::detect_graphical_drivers($o->do_pkgs); log::l("the following nonfree firmware(s) are needed for X.org: " . join(', ', @xpkgs)) if @xpkgs; - @need || @xpkgs; + + my $need_microcode = detect_devices::hasCPUMicrocode(); + log::l("nonfree firmware is needed for the CPU (microcode)") if $need_microcode; + + @need || @xpkgs || $need_microcode; } sub is_firmware_needed { -- cgit v1.2.1