sys-apps/kexec-tools: Sync with Gentoo

It's from Gentoo commit 7e4187530a2f735606b51db72363c24a6c85e146.
This commit is contained in:
Krzesimir Nowak 2024-08-13 12:33:53 +02:00
parent 946b1e305f
commit 705ef149a2
4 changed files with 20 additions and 4 deletions

View File

@ -9,8 +9,8 @@ ConditionPathExists=!/nokexec
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
EnvironmentFile=/etc/kexec.conf EnvironmentFile=/etc/kexec.conf
ExecStart=/usr/sbin/kexec-auto-load ExecStart=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
ExecStop=/usr/sbin/kexec-auto-load ExecStop=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -0,0 +1,16 @@
[Unit]
Description=Gracefully restart the box
Documentation=man:kexec(8)
After=boot.mount
Before=shutdown.target umount.target final.target
ConditionPathExists=!/nokexec
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/kexec.conf
ExecStart=/usr/sbin/kexec-auto-load
ExecStop=/usr/sbin/kexec-auto-load
[Install]
WantedBy=multi-user.target

View File

@ -98,7 +98,7 @@ src_install() {
dosym ../kexec.conf /etc/conf.d/kexec dosym ../kexec.conf /etc/conf.d/kexec
dosbin "${FILESDIR}"/kexec-auto-load dosbin "${FILESDIR}"/kexec-auto-load
systemd_dounit "${FILESDIR}"/kexec.service systemd_newunit "${FILESDIR}"/kexec.service-r1 kexec.service
} }
pkg_postinst() { pkg_postinst() {

View File

@ -98,7 +98,7 @@ src_install() {
dosym ../kexec.conf /etc/conf.d/kexec dosym ../kexec.conf /etc/conf.d/kexec
dosbin "${FILESDIR}"/kexec-auto-load dosbin "${FILESDIR}"/kexec-auto-load
systemd_dounit "${FILESDIR}"/kexec.service systemd_newunit "${FILESDIR}"/kexec.service-r1 kexec.service
} }
pkg_postinst() { pkg_postinst() {