mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 08:01:14 +02:00
sys-apps/kexec-tools: Sync with Gentoo
It's from Gentoo commit 7e4187530a2f735606b51db72363c24a6c85e146.
This commit is contained in:
parent
946b1e305f
commit
705ef149a2
@ -9,8 +9,8 @@ ConditionPathExists=!/nokexec
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
EnvironmentFile=/etc/kexec.conf
|
||||
ExecStart=/usr/sbin/kexec-auto-load
|
||||
ExecStop=/usr/sbin/kexec-auto-load
|
||||
ExecStart=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
|
||||
ExecStop=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
16
sdk_container/src/third_party/portage-stable/sys-apps/kexec-tools/files/kexec.service-r1
vendored
Normal file
16
sdk_container/src/third_party/portage-stable/sys-apps/kexec-tools/files/kexec.service-r1
vendored
Normal 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
|
@ -98,7 +98,7 @@ src_install() {
|
||||
dosym ../kexec.conf /etc/conf.d/kexec
|
||||
|
||||
dosbin "${FILESDIR}"/kexec-auto-load
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
systemd_newunit "${FILESDIR}"/kexec.service-r1 kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
@ -98,7 +98,7 @@ src_install() {
|
||||
dosym ../kexec.conf /etc/conf.d/kexec
|
||||
|
||||
dosbin "${FILESDIR}"/kexec-auto-load
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
systemd_newunit "${FILESDIR}"/kexec.service-r1 kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user