Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478072 - sys-apps/kexec-tools doesn't install unit files
Summary: sys-apps/kexec-tools doesn't install unit files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-07-25 05:47 UTC by Justin Lecher (RETIRED)
Modified: 2013-09-21 11:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2013-07-25 05:47:48 UTC
Please add them.
Comment 1 Henry Gebhardt 2013-07-27 18:00:52 UTC
There is a systemd unit for kexec contributed by Dennis Schridde. You can find it in the user/systemd overlay, or at http://git.overlays.gentoo.org/gitweb/?p=user/systemd.git;a=blob;f=sys-apps/systemd-units/files/services-server/kexec-load_at.service;h=e75e59483dc28b9fe6714b2d7c5ceae6302a26d2;hb=HEAD

Dennis also contributed a file for kexec to be installed into /etc/kernel/postinst.d/. It can be found at http://git.overlays.gentoo.org/gitweb/?p=user/systemd.git;a=blob;f=sys-apps/systemd-units/files/90_kexec;h=19a7b5c5f4c39c9bb4e62e16c80c3f70a218e8c4;hb=HEAD

To inform users of what to do with it, the ebuild contains

	pkg_postinst() {
		elog "The file '${ROOT}etc/kernel/postinst.d/90_kexec' has been"
		elog "installed for you. If you use kexec, you may want to enable it by"
		elog "making it exectuable."
	}

(CC'ing Dennis, as I have not tested this personally.)
Comment 2 Dennis Schridde 2013-07-28 13:49:21 UTC
(In reply to Henry Gebhardt from comment #1)
> (CC'ing Dennis, as I have not tested this personally.)

Still works like a charm for me.

The systemd unit has to be seen in the context of the kernel postinst file (hence the %i in the unit) and me using dracut to generate the initramfs (thus the path to the image, which may be different for genkernel, while others might need none at all).
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-07-30 06:04:03 UTC
Before including I like to review the option to have the same functionallity as the old init script.
Comment 4 Pacho Ramos gentoo-dev 2013-09-18 21:28:49 UTC
(In reply to Justin Lecher from comment #3)
> Before including I like to review the option to have the same functionallity
> as the old init script.

Did you have time for that? :/
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2013-09-19 06:11:32 UTC
(In reply to Pacho Ramos from comment #4)
> (In reply to Justin Lecher from comment #3)
> > Before including I like to review the option to have the same functionallity
> > as the old init script.
> 
> Did you have time for that? :/

I have been offline, but I will fix that until monday together with some other serious init script things.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2013-09-21 11:36:06 UTC
+*kexec-tools-2.0.4-r2 (21 Sep 2013)
+
+  21 Sep 2013; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.4-r2.ebuild,
+  kexec-tools-9999.ebuild, -files/kexec.conf-2.0.3, -files/kexec.init-2.0.3,
+  +files/kexec.init-2.0.4-r2, +files/kexec.conf-9999, +files/kexec.init-9999,
+  files/kexec.conf, -files/kexec.init, -files/kexec.init-ng,
+  +files/kexec.service:
+  Add support for systemd, #478072; Fix issues with openrc init scripts,
+  #481506; thanks BobbyK for the patches
+
Comment 7 Pacho Ramos gentoo-dev 2013-09-21 11:45:48 UTC
Thanks Justin :)