Your message dated Tue, 28 Jun 2016 20:23:04 +0000
with message-id <[email protected]>
and subject line Bug#752790: fixed in kexec-tools 1:2.0.12-1
has caused the Debian Bug report #752790,
regarding kexec-tools: Please support /etc/default/kexec.d facility
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
752790: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752790
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kexec-tools
Version: 1:2.0.4-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: erase-memory

Hi,

tl;dr: please consider applying the attached patch.

We, folks from two Debian derivatives (Tails and Freepto), are working
together to package a Tails feature for Debian: erasing memory at
shutdown/reboot. The current implementation relies on kexec.

Doing so requires to make the kexec-tools stuff a bit more flexible
wrt. being reconfigured by other packages. To start with, we have to
dynamically patch /etc/default/kexec, and the best way we've found of
doing it is to add support for a /etc/default/kexec.d/ directory,
sourced (after /etc/default/kexec) by the two initscripts shipped by
kexec-tools.

If you don't mind adding complexity to the kexec-tools package in
order to support this usecase, more patches of the same kind
will follow.

Thanks for maintaining kexec-tools in Debian!

Cheers,
--
intrigeri

diff -Naur kexec-tools-2.0.4.orig/debian/kexec.init.d kexec-tools-2.0.4/debian/kexec.init.d
--- kexec-tools-2.0.4.orig/debian/kexec.init.d	2013-07-25 22:04:56.000000000 +0200
+++ kexec-tools-2.0.4/debian/kexec.init.d	2014-06-26 13:03:58.960450573 +0200
@@ -15,6 +15,11 @@
 . /lib/lsb/init-functions
 
 test -r /etc/default/kexec && . /etc/default/kexec
+if [ -d /etc/default/kexec.d ] ; then
+	for snippet in $(run-parts --list /etc/default/kexec.d) ; do
+		. "$snippet"
+	done
+fi
 
 do_stop () {
 	test "x`cat /sys/kernel/kexec_loaded`y" = "x1y" || exit 0
diff -Naur kexec-tools-2.0.4.orig/debian/kexec-load.init.d kexec-tools-2.0.4/debian/kexec-load.init.d
--- kexec-tools-2.0.4.orig/debian/kexec-load.init.d	2013-11-08 18:22:49.000000000 +0100
+++ kexec-tools-2.0.4/debian/kexec-load.init.d	2014-06-26 13:04:08.836375294 +0200
@@ -16,6 +16,11 @@
 . /lib/lsb/init-functions
 
 test -r /etc/default/kexec && . /etc/default/kexec
+if [ -d /etc/default/kexec.d ] ; then
+	for snippet in $(run-parts --list /etc/default/kexec.d) ; do
+		. "$snippet"
+	done
+fi
 
 process_grub_entry() {
 	initrd_image=
diff -Naur kexec-tools-2.0.4.orig/debian/kexec-tools.dirs kexec-tools-2.0.4/debian/kexec-tools.dirs
--- kexec-tools-2.0.4.orig/debian/kexec-tools.dirs	2012-01-19 19:59:26.000000000 +0100
+++ kexec-tools-2.0.4/debian/kexec-tools.dirs	2014-06-26 13:07:23.874881252 +0200
@@ -1 +1,2 @@
 sbin
+etc/default/kexec.d

--- End Message ---
--- Begin Message ---
Source: kexec-tools
Source-Version: 1:2.0.12-1

We believe that the bug you reported is fixed in the latest version of
kexec-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Khalid Aziz <[email protected]> (supplier of updated kexec-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 24 Jun 2016 14:22:01 -0600
Source: kexec-tools
Binary: kexec-tools kexec-tools-udeb
Architecture: source amd64
Version: 1:2.0.12-1
Distribution: unstable
Urgency: medium
Maintainer: Khalid Aziz <[email protected]>
Changed-By: Khalid Aziz <[email protected]>
Description:
 kexec-tools - tools to support fast kexec reboots
 kexec-tools-udeb - tools to support fast kexec reboots (udeb) (udeb)
Closes: 752790 783239 819601 821073 821441 825189
Changes:
 kexec-tools (1:2.0.12-1) unstable; urgency=medium
 .
   * New upstream release
   * Upstream release no longer uses build date in version
     (Closes: #783239)
   * Fix kexec failures when compiled with gcc > v5 (Closes: #825189)
   * Add support for scripts in /etc/defauls/kexec.d (Closes: #752790)
   * Update japaneses translation (Closes: #819601)
   * Update french translation (Closes: #821073)
   * Update dutch translation (Closes: #821441)
Checksums-Sha1:
 e281694a3031b3cd4fc5047db5a01918eec53755 2192 kexec-tools_2.0.12-1.dsc
 cd2c84512e5d8a82e4e6fef717369210f2d6c058 383768 kexec-tools_2.0.12.orig.tar.gz
 be1daabe6d037e5e18477ded1c2d0323649db531 22252 
kexec-tools_2.0.12-1.debian.tar.xz
 cc2e83feb280c942bf5407b15c04d8ae75edbde5 162070 
kexec-tools-dbgsym_2.0.12-1_amd64.deb
 4c4e731530c3952a3f9daad2227892158a8570a2 53038 
kexec-tools-udeb_2.0.12-1_amd64.udeb
 fb40edcc287e664bffd4163026d30a4d6b1574cd 81352 kexec-tools_2.0.12-1_amd64.deb
Checksums-Sha256:
 0bb8b5d2b2d48f0b2a286ad4650fca18d3f262da9e59025a9531ae790aa4dc37 2192 
kexec-tools_2.0.12-1.dsc
 cc7b60dad0da202004048a6179d8a53606943062dd627a2edba45a8ea3a85135 383768 
kexec-tools_2.0.12.orig.tar.gz
 d443c3e6b22dc8028cc853b74869d7b2c6fb911ade03af88508ec4aefde42941 22252 
kexec-tools_2.0.12-1.debian.tar.xz
 b0a4157577828f77b72c48847b08f3de88baf14ca474076cf4c952a43ff9b60c 162070 
kexec-tools-dbgsym_2.0.12-1_amd64.deb
 14b2360e472886a6f9d141d729a91487d97d8e4e41119941a5a475521460a8fc 53038 
kexec-tools-udeb_2.0.12-1_amd64.udeb
 09c43a91fad51aa02715ccbd53d9071c2f30866db28c39bb0cd09ac709bd61b5 81352 
kexec-tools_2.0.12-1_amd64.deb
Files:
 72e6c4f4245179a96de2984a1b2447f6 2192 admin optional kexec-tools_2.0.12-1.dsc
 10ddaae0e86af54407b164a1f5a39cc3 383768 admin optional 
kexec-tools_2.0.12.orig.tar.gz
 1d8804cbca8fcd0ee472ddc80a3e879b 22252 admin optional 
kexec-tools_2.0.12-1.debian.tar.xz
 1904853584f813d24a22055d75a2e0e9 162070 debug extra 
kexec-tools-dbgsym_2.0.12-1_amd64.deb
 fd413f4cf8b122b1032202616d10d8e6 53038 debian-installer optional 
kexec-tools-udeb_2.0.12-1_amd64.udeb
 ca132dd83f1ac867c1ad15bad097006a 81352 admin optional 
kexec-tools_2.0.12-1_amd64.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXcscBAAoJEM1YobF+0DP6mW0QAJnBe+SVRSmFhcsUFh0L3LgV
86dv7/AD9BG13GAtPibfRossi8M/UjxZIP6HsKEB+FJDtXUlaps6RYo7QxGnFQp3
e7jIg7nSwugr/tkanJWbC1sEO9C5DfIrgIntWBqL/eniy5hXUho914yW3/An6vr3
I4IRyywlTH4ZELlPIcpcAkNvASHny1sxxvZkiZQK8KlWLwl2kDrBn3aswh/O2/4N
0rd1dGQoWEK/OpHX2OJt1Uzp8l8SC2NhoFX5FHxE3X5UJll27cLNVD/hyyMThb98
4pZozherprtVB1qV8qTCKVhXiLYsdZaNrHcPbvv9Y6Txy4wz8dX1NRG60o7yY2MY
MKVsdPKqQPFxWDDxQHCJjcgO7p61buYQgk0c85dk657dhy/zL3kGxV+CTwTLBlpe
nfSUTDtLwSckGH+qDkxvL8TckXG3rzhzVrlXE0jLD1uz5SEWoHHNZUg/ebBtW8f1
Evp92HlUJwCs+kVzdMGhCUr4Wz1zms6qZI3bR9/SiymtfjTgbs8+z/yGbM+89vVd
Z/DNukO5BTfN815k8lkzB4AYoJAOJBPJDzl46uuIIdfUGvr4cm/Aei1f7mw7069T
ywxbBLnA1Zsf28qSwTh5oX+kJivOkI3c7hFUSwI6vWT7ZIZLDrvDtLmZ8lKcO7Oa
rCIomCoGY2d4kesmx6Sc
=j5uH
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to