Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393507 - sys-apps/microcode-ctl please add systemd unit file
Summary: sys-apps/microcode-ctl please add systemd unit file
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
: 432846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-07 11:45 UTC by emil karlson
Modified: 2012-08-29 15:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
microcode_ctl unit file for systemd (microcode_ctl.service,296 bytes, text/plain)
2011-12-07 11:45 UTC, emil karlson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emil karlson 2011-12-07 11:45:18 UTC
Unit file attached. (tested on sys-apps/microcode-ctl-1.17-r2 and
systemd-37)

inherit linux-info toolchain-funcs systemd

src_install(){...
systemd_dounit "${FILESDIR}/microcode_ctl.service"


Reproducible: Always
Comment 1 emil karlson 2011-12-07 11:45:50 UTC
Created attachment 295075 [details]
microcode_ctl unit file for systemd
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-09 15:40:44 UTC
(In reply to comment #1)
> Created attachment 295075 [details]
> microcode_ctl unit file for systemd

Doesn't really look like a good idea to rmmod that afterwards. Consider what would happen if user had the module loaded before and is using it randomly.
Comment 3 emil karlson 2011-12-09 15:51:19 UTC
Isn't this the default behaviour on openrc initscript, though you can disable it.

If someone really uses microcode update module for something else, which does not sound likely, I would expect them to be able to modify the service file.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-09 16:17:47 UTC
Ok, following discussion on #systemd: microcode-ctl is obsolete and should die. I will open a bug for it to be replaced with correct kernel-loadable microcode.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-28 14:50:12 UTC
*** Bug 432846 has been marked as a duplicate of this bug. ***
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-28 14:56:41 UTC
As a note: current versions of sys-apps/microcode-data install firmware files which are automatically loaded by kernel modules.
Comment 7 Ulenrich 2012-08-29 15:18:12 UTC
Uh yeah, confirming microcode ist loaded automatically:
Aug 29 16:55:26 maci kernel: microcode: CPU0 sig=0x1067a, pf=0x80, revision=0xa07
Aug 29 16:55:26 maci kernel: microcode: CPU0 updated to revision 0xa0b, date = 2010-09-28
Aug 29 16:55:26 maci kernel: ACPI: Requesting acpi_cpufreq
Aug 29 16:55:26 maci kernel: microcode: CPU1 sig=0x1067a, pf=0x80, revision=0xa07
Aug 29 16:55:26 maci kernel: microcode: CPU1 updated to revision 0xa0b, date = 2010-09-28
Aug 29 16:55:26 maci kernel: microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
---
Prior I had loglevel just too low to show this ...
Probably package sys-apps/microcode-ctl-1.17-r2
needs a Gentoo news that this is obsolete for almost all ...