summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/README.Debian14
-rw-r--r--debian/changelog553
-rw-r--r--debian/control23
-rw-r--r--debian/copyright744
-rw-r--r--debian/docs2
-rw-r--r--debian/kexec-tools.config23
-rw-r--r--debian/kexec-tools.dirs2
-rw-r--r--debian/kexec-tools.maintscript2
-rw-r--r--debian/kexec-tools.postinst135
-rw-r--r--debian/kexec-tools.postrm43
-rw-r--r--debian/kexec-tools.preinst45
-rw-r--r--debian/kexec-tools.templates16
-rw-r--r--debian/patches/add_debian_readme.patch14
-rw-r--r--debian/patches/coldreboot.patch88
-rw-r--r--debian/patches/debianize.patch21
-rw-r--r--debian/patches/distclean_fix.patch11
-rw-r--r--debian/patches/linker-option.patch11
-rw-r--r--debian/patches/powerpcspe_support.patch11
-rw-r--r--debian/patches/series9
-rw-r--r--debian/patches/static_binary_warning.patch20
-rw-r--r--debian/patches/systemd-support.patch171
-rw-r--r--debian/patches/vmcore-dmesg_man_page_fix.patch11
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/cs.po47
-rw-r--r--debian/po/da.po49
-rw-r--r--debian/po/de.po48
-rw-r--r--debian/po/es.po71
-rw-r--r--debian/po/fi.po49
-rw-r--r--debian/po/fr.po54
-rw-r--r--debian/po/gl.po50
-rw-r--r--debian/po/it.po52
-rw-r--r--debian/po/ja.po51
-rw-r--r--debian/po/nl.po50
-rw-r--r--debian/po/pt.po53
-rw-r--r--debian/po/pt_BR.po51
-rw-r--r--debian/po/ro.po57
-rw-r--r--debian/po/ru.po61
-rw-r--r--debian/po/sk.po52
-rw-r--r--debian/po/sv.po50
-rw-r--r--debian/po/templates.pot33
-rw-r--r--debian/po/tr.po49
-rw-r--r--debian/po/vi.po52
-rwxr-xr-xdebian/rules93
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options4
-rw-r--r--debian/source/patch-header22
-rw-r--r--debian/watch4
47 files changed, 3073 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..a33f032
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,14 @@
+This kexec-tools package was built from kexec-tools git repository at
+<git://git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools.git>.
+
+Installing this package also installs two init scripts under /etc/init.d
+- kexec-load and kexec. On sysvinit syustems, kexec-load is called upon
+reboot to load a new kexec kernel if kexec is enabled in
+/etc/default/kexec. kexec script is called just before reboot script. It
+checks if kexec is enabled and a kexec'able kernel is loaded. If yes, it
+kexecs a new kernel instead of reboot. As a result, kexec is
+automatically enabled upon installation of kexec-tools package if kexec
+is enabled in /etc/default/kexec through debconf option.
+
+"reboot" command with ystemd will by default do a cold reboot. To kexec
+a new kernel with systemd, use "systemctl kexec".
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4011772
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,553 @@
+kexec-tools (1:2.0.27-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #1051962)
+ * Updated turkish translation (Closes: #1034616)
+ * Added romanian translation (Closes: #1032000)
+ * Make "kexec -a" the default. This fix was pulled into upstream
+ 2.0.26 release (Closes: #1030248)
+ * Removed trailing whitespaves from rules and changelog files
+ * Updated version for watch file and replaced http with https
+ * Updated control file, cleaned up rules file, made copyright file
+ dep5 compliant
+ * Removed init files. Removed automatic kexec reboot when enabled
+ and associated config option (kexec-tools/load_kexec or
+ LOAD_KEXEC in /etc/default/kexec). kexec reboot functionality
+ has been integrated into systemctl now and will likely move to
+ logind in near future. (Closes: #1039248)
+ * Package now provides a script - kexec-load-kernel. To perform a
+ kexec reboot, ensure /etc/default/kexec has the desired value for
+ USE_GRUB_CONFIG. Use the sequence "kexec-load-kernel;
+ systemctl kexec" or "kexec-load-kernel; reboot"
+ (Closes: #1028416)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 04 Oct 2023 16:17:28 -0600
+
+kexec-tools (1:2.0.25-3) unstable; urgency=medium
+
+ * Restricted build dependency on libxen-dev only to the architectures
+ that support it. This fixes build failure on other architectures.
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 07 Dec 2022 10:59:25 -0700
+
+kexec-tools (1:2.0.25-2) unstable; urgency=medium
+
+ * Fixed a bug in kexec-load init script that caused poweroff
+ to fail
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 06 Dec 2022 16:06:24 -0700
+
+kexec-tools (1:2.0.25-1) unstable; urgency=medium
+ * New upstream release
+ * Fixed kexec.init.d to always run on systems with systemd since
+ systemd bundled kexec service works only on the systems with EFI
+ and a boot spec file. With this change, a "reboot" will result in
+ kexec reboot if LOAD_KEXEC in /etc/default/kexec is set to true.
+ With LAOD_KEXEC set to true, a cold (non-kexec) reboot can be
+ initiated using /usr/sbin/coldreboot (Closes: #1016536)
+ * Updated kexec.init.d and kexec-load.init.d to not return error
+ code upon being called with "restart", "reload" or "force-reload"
+ argument. "stop" argument prepares the kernel for a kexec for a
+ subsequent reboot. So a restart is not meaningful for these
+ scripts. (Closes: #1010406)
+ * Changed init scripts to not return error code on being called
+ with "restart" argument (Closes: #996986)
+ * Added build dependency on libxen-dev so kexec would work on xen
+ (Closes: #1023270)
+ * Updated swedish translation (Closes: #1011329)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 06 Dec 2022 10:58:42 -0700
+
+kexec-tools (1:2.0.24-1) unstable; urgency=medium
+ * New upstream release
+ * Removed patch "kexec-tools: Remove duplicate definition of ramdisk"
+ since it is included in new upstream release
+ * kexec is disabled by default in /etc/default/kexec. "reboot" command
+ does not do kexec reboot with systemd. One must use "systemctl kexec"
+ for kexec reboot after enabling kexec in /etc/default/kexec
+ (Closes: #874461)
+ * Added /usr/bin to PATH in /etc/init/kexec (Closes: #992482)
+ * Update german translation (Closes: #991257)
+ * Update dutch translation (Closes: #991772)
+ * Update spanish translation (Closes: #1003295)
+ * Updated lintian overrides
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 12 Apr 2022 14:12:03 -0600
+
+kexec-tools (1:2.0.22-2) unstable; urgency=medium
+
+ * Remove duplicate definition of ramdisk on powerpc arch - backport
+ of upstream commit 5e7ce27626a4 ("kexec-tools: Remove duplicate
+ definition of ramdisk")
+ * Enable building on any architecture now that kexec is being
+ supported on larger number of architectures (Closes: #893071)
+ * Added dh_update_autotools_config to rules file to update
+ config.{sub,guess} (Closes: #893072)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 15 Jul 2021 16:42:59 -0600
+
+kexec-tools (1:2.0.22-1) unstable; urgency=medium
+
+ * New upstream version (Closes: #990801)
+ * Add support for x32 architecture (Closes: #974932)
+ * Add support doe hppa (Closes: #941500)
+ * Removed patches kexec-tools-remove-duplicated-variable-d.patch
+ and ftbfs-i386.patch since they are in upstream 2.0.22 now
+ * Updated spanish translation (Closes: #958875)
+ * Updated debconf message and README.debian to cover systemd as
+ well (Closes: #954290)
+ * Added patch vmcore-dmesg_man_page_fix.patch to fix lintian warning
+ * Removed source/lintian-overrides since those overrides are no
+ longer needed
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 13 Jul 2021 13:28:33 -0600
+
+kexec-tools (1:2.0.20-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix build with GCC 10 (Closes: #957403)
+
+ -- Thadeu Lima de Souza Cascardo <cascardo@debian.org> Fri, 31 Jul 2020 14:27:55 -0300
+
+kexec-tools (1:2.0.20-2) unstable; urgency=medium
+
+ * Fix FTBFS issue on x86 (Closes: #942617)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 12 Mar 2020 13:31:02 -0600
+
+kexec-tools (1:2.0.20-1) unstable; urgency=medium
+
+ * New upstream release
+ * Dropped additional unnecessary defaults setting in postinst
+ (Closes: #921023)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 16 Oct 2019 10:49:02 -0600
+
+kexec-tools (1:2.0.18-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #905656)
+ * Removed patch arm64_build.patch since the bug is fixed in upstream now
+ * Remnoved call to db_stop in kexec-tools.postinst (Closes: #891256)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 22 Jan 2019 14:46:13 -0700
+
+kexec-tools (1:2.0.16-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #890818)
+ * Updated pointer to kexec-tools home page (Closes: #888565)
+ * Updtaed russian translation (Thanks, Lev) (Closes: #883918)
+ * Remove obsolete configuration file (Closes: #868100)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 20 Feb 2018 11:13:24 -0700
+
+kexec-tools (1:2.0.15-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #876318, Closes: #854826)
+ * Enable compressed kernel support for ARM64 - Manoj Iyer
+ (Closes: #854093)
+ * Updated Portuguese translation (Closes: #857728)
+ * Updated German translation (Closes: #857737)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 21 Sep 2017 15:07:18 -0600
+
+kexec-tools (1:2.0.14-1) unstable; urgency=medium
+
+ * New upstream release
+ * Removed the patch lp1546260-fix-purgatory-fail-gcc5.patch which
+ has been accepted into this upstream version
+ * Updated Danish translation (Closes: #830594)
+ * Updated Brazilian Portuguese translation (Closes: #852445)
+ * Enabled build for arm64 (Closes: #791943)
+ * Fix FTCBFS: Invoke configure script through dh_auto_configure
+ in debian/rules (Closes: #850875)
+ * Added patch to add -fno-PIC to purgatory/arch/arm64/Makefile to
+ enable build on arm64
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 25 Jan 2017 12:36:57 -0700
+
+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)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 24 Jun 2016 14:22:01 -0600
+
+kexec-tools (1:2.0.10-2) unstable; urgency=medium
+
+ * Fix for systemd bug, many thanks to Thomas Stangner. systemd users
+ must use "systemctl kexec" for a kexec reboot (Closes: #785714)
+ * Added -f option to update-rc.d in preinstall script (Closes: #807018)
+ * Updated code for USE_GRUB_CONFIG to work with new grub.cfg format which
+ also is back to using entry number for saved_entry (Closes: #766367)
+ * Changed the location of flag file for cold reboot to a safer location
+ (Closes : #766772)
+ * Added mips64 and mips64el to supported arches (Closes: #800953,
+ Closes: #809220)
+ * Make the package build reproducibly (Closes: #783239)
+ * Add Brazilian Portuguese debconf templates translation (Closes: #811512)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 22 Mar 2016 17:27:30 -0600
+
+kexec-tools (1:2.0.10-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #791942)
+ * Updated distclean_fix.patch to account for new files that need to
+ be cleaned up
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 14 Sep 2015 13:30:53 -0600
+
+kexec-tools (1:2.0.9-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 15 Jun 2015 10:38:00 -0600
+
+kexec-tools (1:2.0.7-5.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Don't reboot the machine while removing the package (Closes: #782033)
+ * Fix loading kdump kernel on i386 (Closes: #771671)
+
+ -- Balint Reczey <balint@balintreczey.hu> Wed, 22 Apr 2015 12:04:44 +0200
+
+kexec-tools (1:2.0.7-5) unstable; urgency=medium
+
+ * Deleted the extra "-x" from "#!/bin/sh -x" in kexec-load init
+ script (closes: Bug#770792)
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 24 Nov 2014 07:35:39 -0700
+
+kexec-tools (1:2.0.7-4) unstable; urgency=medium
+
+ * Changed the way systemd presence is detected to make shutdown more
+ reliable (closes: Bug#766338, closes: Bug#767449)
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 03 Nov 2014 16:37:53 -0700
+
+kexec-tools (1:2.0.7-3) unstable; urgency=medium
+
+ * Fixed kexec-load init script so it will detect systemd
+ vs initV and load kexec kernel correctly (closes: Bug#764626)
+ * Added architecture ppc64el and started using dh_autoreconf
+ (closes: Bug#762628)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 10 Oct 2014 10:14:58 -0600
+
+kexec-tools (1:2.0.7-2) unstable; urgency=medium
+
+ * Fix build failure on ppc (closes: Bug#754609)
+ * Replaced s390 arch with s390x (closes: Bug#729451)
+ * Added patch from Roland to support powerpcspe (closes: Bug#734697)
+ * Added support for systemd (closes: Bug#764360, closes: Bug#699008)
+ * Enhanced kexec init scripts to work with systemd as well and now
+ "sudo reboot" from an X11 terminal works (closes: Bug#747119)
+ * Includes upstream fix to align initrd_base address to pagesize
+ (closes: Bug#756127)
+ * Added Turkish translation (closes: Bug#757510)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 08 Oct 2014 11:01:58 -0600
+
+kexec-tools (1:2.0.7-1) unstable; urgency=low
+
+ * New upstream release. Refreshed patches to apply without offsets
+ * Stopped passing start/stop to update-rc.d
+ * Includes fix for multiboot image booting bug from upstream
+ (closes: Bug#735360)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 09 Jul 2014 10:44:35 -0600
+
+kexec-tools (1:2.0.4-1) unstable; urgency=low
+
+ * New upstream release
+ * Removed crashdump_warning.patch since it is in upstream now
+ * Removed update_kexec_manpage.patch since it is in upstream now
+ * Updated watch file to look for more extensions that tgz and tar.gz, as
+ suggested by someone on PTS
+ * Added support for parallel make (closes: Bug#727130)
+ * Added support for grub2's saved_entry (closes: Bug#699007)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 08 Nov 2013 16:38:16 -0700
+
+kexec-tools (1:2.0.3-4) unstable; urgency=low
+
+ * Drop the dependency on grub2 which is not quite right
+ (closes: Bug#717953, closes: Bug#718260)
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 29 Jul 2013 08:16:59 -0600
+
+kexec-tools (1:2.0.3-3) unstable; urgency=low
+
+ * Fixed kexec-load init script to parse newer grub.cfg files correctly
+ (closes: Bug#714016)
+ * Replaced echo in kexec init script with printf to avoid bashism
+ (closes: Bug#701551)
+ * Fixed the "kexec -p" failure with kernel versions of the form x.y
+ (closes: Bug#708034)
+ * Updated japanese translation (Thank you Victory and Japanese Debian
+ Developers) (closes: Bug#717206)
+ * Added mips and mipsel to supported architectures (closes: Bug#711274)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 25 Jul 2013 13:57:30 -0600
+
+kexec-tools (1:2.0.3-2) unstable; urgency=low
+
+ * Changed the default for kexec to not be enabled, and changed the
+ priority of debconf question for enabling kexec by default to
+ high (closes: Bug#638261)
+ * Handle the case of a separate /boot partition (closes: Bug#687956)
+ * Updated to use hardening rules
+ * Added full path to the calls to kexec in init scripts to make sure
+ it works reliably.
+ * Added code to clear screen before rebooting (closes: Bug#606955)
+
+ -- Khalid Aziz <khalid@debian.org> Sun, 13 Jan 2013 19:39:31 -0700
+
+kexec-tools (1:2.0.3-1) unstable; urgency=low
+
+ * New upstream release
+ * Switched to dpkg-source 3.0 (quilt) format
+ * Updated kexec and coldreboot man pages (closes: Bug#653197)
+ * Added armhf architecture (closes: Bug#645652)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 31 Jan 2012 09:11:31 -0700
+
+kexec-tools (1:2.0.2-3) unstable; urgency=low
+
+ * Added check for link_in_boot in kernel-img.conf and update kexec
+ kernel and initrd locations accordingly in kexec config file
+ (closes: Bug#577064)
+ * Added a check for /boot/grub directory before asking if kexec should use
+ grub config (Closes: Bug#643306)
+ * Added to SH4 to supported arch and changed arch for udeb to list of
+ supported Linux platforms (closes: Bug#600778)
+ * Corrected the malformed patch update_kexec_manpage.dpatch
+ * Added build-arch and build-indep targets to debian/rules
+ * Debconf templates and debian/control reviewed by the debian-l10n-
+ english team as part of the Smith review project. Closes: #639226, #636780
+ * [Debconf translation updates]
+ * Slovak (Slavko). Closes: #639305
+ * Russian (Yuri Kozlov). Closes: #637753
+ * Swedish (Martin Bagge / brother). Closes: #640049
+ * French (Steve Petruzzello). Closes: #640092
+ * Czech (Miroslav Kure). Closes: #640218
+ * Danish (Joe Hansen). Closes: #640408
+ * Portuguese (Rui Branco). Closes: #640858
+ * Dutch; (Jeroen Schot). Closes: #640989
+ * Spanish; (Camaleón). Closes: #640994
+ * German (Helge Kreutzmann). Closes: #641143
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 11 Oct 2011 10:56:59 -0600
+
+kexec-tools (1:2.0.2-2) unstable; urgency=low
+
+ * Fixed the problem with --no-undefined option being used for gcc.
+ Applied Matthias's patch (closes: Bug#610517, Bug#624897)
+ * Replaced copyright info in debian/copyright with list of authors
+ and ensured link to license pionts to GPLv2 (closes: Bug#485679)
+ * Updated PATH in init scripts to make sure /sbin and /bin are searched
+ before other paths (closes: Bug#581219)
+ * Corrected kexec man page to not say shutdown is called on kexec -e
+ (closes: Bug#609462)
+ * Added option to use grub configuration to load kernel (close: Bug#525356)
+
+ -- Khalid Aziz <khalid@debian.org> Sun, 31 Jul 2011 14:30:31 -0600
+
+kexec-tools (1:2.0.2-1) unstable; urgency=low
+
+ * New upstream release (closes: Bug#623814)
+ * Updated watch file (closes: Bug#623813)
+ * Updated URL in copyright file
+ * Updated linitian overrides file to match path name for new lintian
+ * Added source/lintian-overrides file to override innocuous lintian errors
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 28 Apr 2011 13:06:41 -0600
+
+kexec-tools (1:2.0.1-4) unstable; urgency=low
+
+ * Fix pending l10n issues. Debconf translations:
+ - Spanish (Camaleón). Closes: #583538
+ - Danish (Joe Hansen). Closes: #599859
+ - Italian (Vincenzo Campanella). Closes: #600218
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 18 Oct 2010 12:01:47 -0600
+
+kexec-tools (1:2.0.1-3) unstable; urgency=low
+
+ * Added support for building udeb (closes: Bug#591441)
+ * Updated standards version to 3.9.1
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 09 Aug 2010 14:41:14 -0600
+
+kexec-tools (1:2.0.1-2) unstable; urgency=low
+
+ * Fixed kernel load failure on "armv5tel" architecture (closes: Bug#564648)
+ * Added a script, coldreboot, to force a cold reboot (closes: Bug#519950)
+ * Added dependency dependency upon local filesystem to ensure filesystem
+ containing kexec image is not unmounted before kexec-load runs
+ (closes: Bug#578126)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 22 Apr 2010 16:03:31 -0600
+
+kexecc-tools (1:2.0.1-1) unstable; urgency=low
+
+ * New upstream version
+ * Honor dpkg-preconfigure, remove /etc/default/kexec from deb package and
+ remove /etc/default/kexec on package purge (closes: Bug#551919)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 24 Nov 2009 08:55:05 -0700
+
+kexec-tools (1:2.0.0-2) unstable; urgency=low
+
+ * Fixed configure script failure (closes: Bug#543081)
+ * Added debian/README.source
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 10 Sep 2009 09:34:58 -0600
+
+kexec-tools (1:2.0.0-1) unstable; urgency=low
+
+ * New upstream version
+ * Added note about call to shutdown by kexec -e. Also added a README.debian
+ to explain automatic enablement of kexec (closes: Bug#501847)
+ * Added japanese translation (closes: Bug#512870)
+ * Added swedish translation (closes: Bug#503604)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 15 Apr 2009 16:41:45 -0600
+
+kexec-tools (20080324-2.1) unstable; urgency=low
+
+ * Porter NMU.
+ * New dpatch, arm_build, fixes build on armel; thanks Cyril Hrubis;
+ closes: #489175.
+ * List arm and armel in control.
+
+ -- Loic Minier <lool@dooz.org> Sat, 31 Jan 2009 18:31:42 +0000
+
+kexec-tools (20080324-2) unstable; urgency=low
+
+ * Updated init script to check for new boolean value of LOAD_KEXEC (closes:
+ Bug#479961)
+ * Added french translation for debconf (closes: Bug#470921,Bug#479688)
+ * Added czech translation for debconf (closes: Bug#480301)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 09 May 2008 12:03:29 -0600
+
+kexec-tools (20080324-1) unstable; urgency=low
+
+ * New upstream version
+ * Fixed a typo in x86-64 makefile that causes kexec load to fail on
+ amd64 (closes: Bug#473547)
+ * Added a patch from upstream to enable compilation on powerpc (closes:
+ Bug#477260)
+ * Added portugese translation for debconf (closes: Bug#469960,Bug#478358)
+ * Added german translation for debconf (closes: Bug#470499)
+ * Added galician translation (closes: Bug#477940)
+ * Added russian translation (closes: Bug#477983)
+ * Added finnish translation (closes: Bug#477984)
+ * Added vietnamese translation (closes: Bug#478221)
+ * Changed debconf variable type to boolean (closes: Bug#469256)
+ * Added debian/watch file (closes: Bug#474752)
+
+ -- Khalid Aziz <khalid@debian.org> Tue, 01 Apr 2008 09:53:50 -0600
+
+kexec-tools (20080227-2) unstable; urgency=low
+
+ * Fixed a bad dependency in kexec-load init script
+ * Changed the priority of debconf question to medium.
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 03 Mar 2008 09:08:09 -0700
+
+kexec-tools (20080227-1) unstable; urgency=low
+
+ * New upstream version
+ * Updated init scripts to remove bash'ism (closes: Bug#465000, Bug#462554)
+ * Updated init scripts to add reverse dependency on umountroot
+ (closes: Bug#458983)
+ * Added autofs to Required-Stop for kexec-load init script to ensure
+ a kexec load of a kernel on an automounted filesystem is successful
+ (closes: Bug#440979)
+ * Changed the kexec-load init script execution order to run before autofs
+ (closes: Bug#440979)
+ * Added debconf options to ask user whether to enable kexec by default
+ or not
+ * Updated package description in control file
+ * Updated kexec man page to remove the note about lack of support for
+ compressed kernels (closes: Bug#464813)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 28 Feb 2008 14:19:40 -0700
+
+kexec-tools (20070330-4) unstable; urgency=low
+
+ * Added another condition around strip command to address build failure on
+ architectures that do not generate kexec_test.static image.
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 01 Nov 2007 14:19:13 -0600
+
+kexec-tools (20070330-3) unstable; urgency=low
+
+ * Made command to strip kexec_test binary conditional (closes: Bug#437251)
+ * Removed mv command that caused build failure on a few architectures
+ (closes: Bug#441128)
+ * Dropped powerpc and alpha architectures from supported arch list (closes:
+ Bug#338846)
+
+ -- Khalid Aziz <khalid@debian.org> Wed, 31 Oct 2007 15:12:11 -0600
+
+kexec-tools (20070330-2) unstable; urgency=low
+
+ * Changed /etc/default/kexec to enable kexec reboots by default
+ (closes: Bug#426506)
+ * Cleaned up unnecessary files
+ * Updated LSB header in init scripts (closes: Bug#429633)
+ * closes: Bug#392231 (upstream has removed the offending code)
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 11 Jun 2007 16:03:25 -0600
+
+kexec-tools (20070330-1) experimental; urgency=low
+
+ * New upstream version from Simon Horman's kexec-tools-testing tree.
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 30 Mar 2007 09:32:27 -0600
+
+kexec-tools (1.101-kdump10-2) unstable; urgency=low
+
+ * Moved the install location for kexec_test to /usr/lib (closes: Bug#392395)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 13 Oct 2006 08:31:16 -0600
+
+kexec-tools (1.101-kdump10-1) unstable; urgency=low
+
+ * Applied -kdump10 patch from http://lse.sf.net/kdump
+ * man page updated from -kdump10 patch (closes: Bug#344486)
+ * Better error reporting for when kexec_load fails on x86_64 (closes:
+ Bug#385611)
+ * Fixed a typo in x86_64 code (closes: Bug#385611)
+ * Improved init scripts
+ * Update architecture list in control file with the supported architectures
+ only (closes: Bug#338846)
+
+ -- Khalid Aziz <khalid@debian.org> Mon, 09 Oct 2006 14:58:48 -0600
+
+kexec-tools (1.101-2.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Add support for init scripts (Closes: #387599, #378880, #344489)
+ * Bumped Standards Version
+
+ -- Julien Danjou <acid@debian.org> Mon, 2 Oct 2006 14:42:42 +0200
+
+kexec-tools (1.101-2) unstable; urgency=low
+
+ * Fixed build failures (closes: Bug#327639, Bug#327715)
+
+ -- Khalid Aziz <khalid@debian.org> Thu, 15 Sep 2005 08:57:43 -0600
+
+kexec-tools (1.101-1) unstable; urgency=low
+
+ * Initial release (closes: Bug#320202, Bug#318881)
+
+ -- Khalid Aziz <khalid@debian.org> Fri, 09 Sep 2005 14:06:19 -0600
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ba49f18
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: kexec-tools
+Section: admin
+Homepage: https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/
+Priority: optional
+Maintainer: Khalid Aziz <khalid@debian.org>
+Build-Depends: debhelper (>= 10.0.0), debhelper-compat (= 13), gnu-efi (>=3.0a-4)[ia64], libz-dev[arm64 ia64], po-debconf, libxen-dev[amd64 arm64 armhf]
+Standards-Version: 4.5.1.0
+Rules-Requires-Root: no
+
+Package: kexec-tools
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, dpkg (>= 1.15.7.2)
+Description: tools to support fast kexec reboots
+ This package provides tools to load a kernel into memory and then
+ "reboot" directly into that kernel using the kexec system call,
+ bypassing the normal boot process.
+
+Package: kexec-tools-udeb
+Section: debian-installer
+Architecture: linux-any
+XC-Package-Type: udeb
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: tools to support fast kexec reboots (udeb)
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7825140
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,744 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: kexec-tools
+Upstream-Contact: Simon Horman <horms@kernel.org>
+Source: <https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/>
+
+Files: *
+Copyright: 2003-2010 Eric Biederman (ebiederm@xmission.com)
+ 2004 Adam Litke (agl@us.ibm.com)
+ 2004 Albert Herranz
+ 2004 IBM Corp.
+ 2004 Khalid Aziz <khalid.aziz@hp.com> Hewlett Packard Co
+ 2004 Silicon Graphics, Inc. Jesse Barnes <jbarnes@sgi.com>
+ 2004-2005 Milton D Miller II, IBM Corporation
+ 2005 IBM Corporation,
+ 2005 R Sharada (sharada@in.ibm.com)
+ 2005 R Sharada (sharada@in.ibm.com), IBM Corporation
+ 2005-2006 Zou Nan hai (nanhai.zou@intel.com)
+ 2005-2006 Zou Nan hai <nanhai.zou@intel.com> Intel Corp
+ 2006 Mohan Kumar M (mohan@in.ibm.com)
+ 2006 Mohan Kumar M (mohan@in.ibm.com), IBM Corporation
+ 2008 SUSE LINUX Products GmbH,
+ 2004-2005 Albert Herranz
+ 2004-2005 kogiidena@eggplant.ddo.jp
+ 2008 AXIS Communications AB Edgar E. Iglesias
+ 2013 Geert Uytterhoeven
+ 2019 Sven Schnelle <svens@stackframe.org>
+ 2022 Loongson Technology Corporation Limited.
+ 2022 Loongson Technology Corporation Limited. Youling Tang <tangyouling@loongson.cn>
+ 2003- Various
+License: GPL-2
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+
+Files: kexec/libfdt/fdt.c
+ kexec/libfdt/fdt_ro.c
+ kexec/libfdt/fdt_rw.c
+ kexec/libfdt/fdt_strerror.c
+ kexec/libfdt/fdt_sw.c
+ kexec/libfdt/fdt_wip.c
+ kexec/libfdt/libfdt.h
+ kexec/libfdt/libfdt_internal.h
+Copyright: 2006 David Gibson, IBM Corporation.
+License: GPL-2 or BSD-2-clause
+ libfdt is dual licensed: you can use it either under the terms of
+ the GPL, or the BSD license, at your option.
+ .
+ a) This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public
+ License along with this library; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+ MA 02110-1301 USA
+ .
+ Alternatively,
+ .
+ b) Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+ .
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: kexec/arch/s390/crashdump-s390.c
+ purgatory/arch/s390/console-s390.c
+ purgatory/arch/s390/purgatory-s390.c
+ purgatory/arch/s390/setup-s390.S
+Copyright: 2011 IBM Corp.
+License: __UNKNOWN__
+ Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com>
+
+Files: kexec/arch/arm64/crashdump-arm64.c
+ kexec/arch/arm64/crashdump-arm64.h
+Copyright: 2014-2017 Linaro Limited
+License: GPL-2.0
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/cris/kexec-elf-rel-cris.c
+ kexec/arch/mips/kexec-elf-rel-mips.c
+Copyright: 2007 Francesco Chiechi, Alessandro Rubini
+ 2007 Tvblob s.r.l.
+ 2008 AXIS Communications AB Edgar E. Iglesias
+License: GPL-2.0
+ derived from ../ppc/kexec-elf-rel-ppc.c
+ Copyright (C) 2004 Albert Herranz
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/ppc/include/page.h
+ purgatory/arch/ppc64/hvCall.S
+Copyright: 2001 PPC64 Team, IBM Corp
+ __NO_COPYRIGHT__ in: purgatory/arch/ppc64/hvCall.S
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/i386/x86-linux-setup.c
+ kexec/arch/ppc64/fdt.c
+Copyright: 2003-2004 Eric Biederman (ebiederm@xmission.com)
+ 2015 Freescale Semiconductor, Inc.
+License: __UNKNOWN__
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+Files: purgatory/arch/i386/stack.S
+ purgatory/arch/x86_64/stack.S
+Copyright: 2003-2004 Eric Biederman (ebiederm@xmission.com)
+License: __UNKNOWN__
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+ .
+ A stack for the loaded kernel.
+ Seperate and in the data section so it can be prepopulated.
+
+Files: kexec/arch/cris/kexec-elf-cris.c
+ kexec/arch/sh/kexec-elf-sh.c
+Copyright: 2008 AXIS Communications AB Edgar E. Iglesias
+ 2008 Magnus Damm
+License: __UNKNOWN__
+ Based on x86 implementation,
+ Copyright (C) 2003-2005 Eric Biederman (ebiederm@xmission.com)
+ .
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+Files: config/config.guess
+ config/config.sub
+Copyright: 1992-2020 Free Software Foundation, Inc.
+License: __AUTO_PERMISSIVE__
+ Autogenerated files with permissive licenses.
+
+Files: include/x86/multiboot2.h
+Copyright: 1999-2010 Free Software Foundation, Inc.
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to
+ deal in the Software without restriction, including without limitation the
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ANY
+ DEVELOPER OR DISTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+Files: kexec/arch/ppc/ppc-setup-simple.S
+Copyright: 2004 Albert Herranz
+License: GPL-2.0
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ Only suitable for platforms booting with MMU turned off.
+ -- Albert Herranz
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/loongarch/crashdump-loongarch.c
+Copyright: 2022 Loongson Technology Corporation Limited. Youling Tang <tangyouling@loongson.cn>
+License: GPL-2.0
+ derived from crashdump-arm64.c
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/sh/kexec-elf-rel-sh.c
+Copyright: 2003-2008 Kaz Kojima & Paul Mundt
+ 2008 Paul Mundt
+License: GPL-2.0
+ Based on the SHcompact module loader (arch/sh/kernel/module.c) in the
+ Linux kernel, which is written by:
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/sh/crashdump-sh.c
+Copyright: 2008 Magnus Damm
+License: GPL-2.0
+ Based on x86 and ppc64 implementation, written by
+ Vivek Goyal (vgoyal@in.ibm.com), R Sharada (sharada@in.ibm.com)
+ Copyright (C) IBM Corporation, 2005.
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/ppc/ops.h
+Copyright: __NO_COPYRIGHT__ in: kexec/arch/ppc/ops.h
+License: GPL-2.0
+ 2006 (c) MontaVista Software, Inc. This file is licensed under
+ the terms of the GNU General Public License version 2. This program
+ is licensed "as is" without any warranty of any kind, whether express
+ or implied.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/mips/kexec-mips.c
+Copyright: 2007 Francesco Chiechi, Alessandro Rubini
+ 2007 Tvblob s.r.l.
+License: GPL-2.0
+ derived from ../ppc/kexec-ppc.c
+ Copyright (C) 2004, 2005 Albert Herranz
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/loongarch/kexec-pei-loongarch.c
+Copyright: 2022 Loongson Technology Corporation Limited. Youling Tang <tangyouling@loongson.cn>
+License: GPL-2.0
+ derived from kexec-image-arm64.c
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/mips/kexec-elf-mips.c
+Copyright: 2007 Francesco Chiechi, Alessandro Rubini
+ 2007 Tvblob s.r.l.
+License: GPL-2.0
+ derived from ../ppc/kexec-elf-ppc.c
+ Copyright (C) 2004 Albert Herranz
+ .
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: include/x86/mb_header.h
+Copyright: 2000 Free Software Foundation, Inc.
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+ .
+ MultiBoot Header description
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: include/image.h
+Copyright: 2000-2005 Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+License: GPL-2.0+
+ See file CREDITS for list of people who contributed to this
+ project.
+ .
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA
+ .
+ NOTE: This header file defines an interface to U-Boot. Including
+ this (unmodified) header file in another file is considered normal
+ use of U-Boot, and does *not* fall under the heading of "derived
+ work".
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/i386/kexec-multiboot-x86.c
+Copyright: 2003 Tim Deegan (tjd21 at cl.cam.ac.uk)
+License: GPL-2.0+
+ Parts based on GNU GRUB, Copyright (C) 2000 Free Software Foundation, Inc
+ Parts copied from kexec-elf32-x86.c, written by Eric Biederman
+ .
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/i386/kexec-mb2-x86.c
+Copyright: 2019 Varad Gautam (vrd at amazon.de), Amazon.com, Inc. or its affiliates.
+License: GPL-2.0+
+ Parts based on GNU GRUB, Copyright (C) 2000 Free Software Foundation, Inc
+ Parts taken from kexec-multiboot-x86.c, Eric Biederman (ebiederm@xmission.com)
+ .
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: include/x86/mb_info.h
+Copyright: 2000 Free Software Foundation, Inc.
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: purgatory/arch/ppc/misc.S
+Copyright: 1995-1996 Gary Thomas (gdt@linuxppc.org)
+License: GPL-2.0+
+ Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
+ and Paul Mackerras.
+ .
+ Rewrittten to work with /sbin/kexec 20 December 2004 Eric Biederman
+ .
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/ppc/libfdt-wrapper.c
+Copyright: 2007 David Gibson, IBM Corporation.
+License: GPL-2.0+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: util_lib/sha256.c
+Copyright: 2001-2003 Christophe Devine
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: kexec/arch/i386/kexec-beoboot-x86.c
+Copyright: 2000 Scyld Computing Corporation
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: include/elf.h
+Copyright: 1995-1999 Free Software Foundation, Inc.
+License: LGPL-2.0+
+ This file is part of the GNU C Library.
+ Contributed by Ian Lance Taylor <ian@cygnus.com>.
+ .
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+ .
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc.,51 Franklin Street,
+ Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ 12 April 2002 Modified by Eric Biederman <ebiederm@xmission.com> so
+ it can be used outside of glibc.
+ .
+ On Debian systems, the complete text of the GNU Library General Public License
+ Version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: kexec/arch/ia64/kexec-elf-rel-ia64.c
+Copyright: 2005-2006 Zou Nan hai (nanhai.zou@intel.com)
+License: __UNKNOWN__
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+ .
+ pugatory relocation code
+ Most of the code in this file is
+ based on arch/ia64/kernel/module.c in Linux kernel
+ .
+ Most of the code in this file is
+ based on arch/ia64/kernel/module.c in Linux kernel
+
+Files: kexec/arch/s390/kexec-image.c
+Copyright: 2005 IBM Corp.
+License: __UNKNOWN__
+ Author(s): Rolf Adelsberger <adelsberger@de.ibm.com>
+ Heiko Carstens <heiko.carstens@de.ibm.com>
+
+Files: kexec/kexec.c
+Copyright: 2003-2005 Eric Biederman (ebiederm@xmission.com)
+License: __UNKNOWN__
+ Modified (2007-05-15) by Francesco Chiechi to rudely handle mips platform
+ .
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+Files: kexec/arch/arm/crashdump-arm.c
+Copyright: 2010 Nokia Corporation,
+License: __UNKNOWN__
+ Based on x86 implementation
+ Copyright (C) IBM Corporation, 2005.
+ .
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+Files: kexec/arch/s390/kexec-s390.h
+Copyright: 2005 IBM Corp.
+License: __UNKNOWN__
+ Author(s): Rolf Adelsberger <adelsberger@de.ibm.com>
+
+Files: purgatory/arch/ppc/v2wrap_32.S
+Copyright: 2004-2005 Milton D Miller II, IBM Corporation
+ 2006 Mohan Kumar M (mohan@in.ibm.com), IBM Corporation
+License: __UNKNOWN__
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation (version 2 of the License).
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+ .
+ v2wrap.S
+ a wrapper to call purgatory code to backup first
+ 32kB of first kernel into the backup region
+ reserved by kexec-tools.
+ Invokes powerpc kernel with the expected arguments
+ of kernel(device-tree, phys-offset, 0)
+ .
+ calling convention:
+
+Files: kexec/arch/s390/kexec-elf-rel-s390.c
+Copyright: 2005-2011 IBM Corp.
+License: __UNKNOWN__
+ Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
+
+Files: kexec/arch/s390/kexec-s390.c
+Copyright: 2005-2011 IBM Corp.
+License: __UNKNOWN__
+ Author(s): Rolf Adelsberger <adelsberger@de.ibm.com>
+ Michael Holzheu <holzheu@linux.vnet.ibm.com>
+
+
+Files: purgatory/arch/ppc64/misc.S
+Copyright: 1995-2001 Free Software Foundation, Inc.
+ 2008 Freescale Semiconductor, Inc. Michael Meissner
+License: GPL-2+ with exception *** check multiple exceptions ***
+ Based on gcc/config/rs6000/crtsavres.asm from gcc
+ 64 bit additions from reading the PPC elf64abi document.
+ .
+ This file is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+ .
+ In addition to the permissions in the GNU General Public License, the
+ Free Software Foundation gives you unlimited permission to link the
+ compiled version of this file with other programs, and to distribute
+ those programs without any restriction coming from the use of this
+ file. (The General Public License restrictions do apply in other
+ respects; for example, they cover modification of the file, and
+ distribution when not linked into another program.)
+ .
+ This file is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+ .
+ As a special exception, if you link this library with files
+ compiled with GCC to produce an executable, this does not cause
+ the resulting executable to be covered by the GNU General Public License.
+ This exception does not however invalidate any other reasons why
+ the executable file might be covered by the GNU General Public License.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+ .
+#----------------------------------------------------------------------------
+# xml and html files (skipped):
+# doc/multiboot.html
+ .
+#----------------------------------------------------------------------------
+# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
+# license/copyright files.
+ .
+#----------------------------------------------------------------------------
+# License file: COPYING
+ .
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+ .
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files: debian/*
+Copyright: Khalid Aziz <khalid@debian.org>
+ 2008 Kai Wasserbäch <debian@carbon-project.org>
+ 2010 Software in the Public Interest
+ 2011-2021 Helge Kreutzmann <debian@helgefjell.de>
+ 2016 Debian French l10n team <debian-l10n-french@lists.debian.org>
+ 2016 kexec-tools & nedenstående oversættere.
+ 2022 Martin Bagge <brother@persilja.net>
+ Various
+License: GPL-2.0
+ This source code is licensed under the GNU General Public License,
+ Version 2. See the file COPYING for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..19a9db3
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+News
+TODO
diff --git a/debian/kexec-tools.config b/debian/kexec-tools.config
new file mode 100644
index 0000000..4ccee75
--- /dev/null
+++ b/debian/kexec-tools.config
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+CONFFILE=/etc/default/kexec
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+CONFIG_MODE=""
+
+if test -e "$CONFFILE"; then
+ . "$CONFFILE"
+
+ # Guard against admin writing silly things into the
+ # config file...
+ if test "$USE_GRUB_CONFIG" != "true" ; then
+ db_set kexec-tools/use_grub_config "false"
+ else
+ db_set kexec-tools/use_grub_config "true"
+ fi
+fi
+
+# Setup and select the configuration mode
+db_input medium kexec-tools/use_grub_config || true
+db_go
diff --git a/debian/kexec-tools.dirs b/debian/kexec-tools.dirs
new file mode 100644
index 0000000..85c5d86
--- /dev/null
+++ b/debian/kexec-tools.dirs
@@ -0,0 +1,2 @@
+sbin
+etc/default/kexec.d
diff --git a/debian/kexec-tools.maintscript b/debian/kexec-tools.maintscript
new file mode 100644
index 0000000..5293c53
--- /dev/null
+++ b/debian/kexec-tools.maintscript
@@ -0,0 +1,2 @@
+rm_conffile /etc/init.d/kexec 1:2.0.27-1~ kexec-tools
+rm_conffile /etc/init.d/kexec-load 1:2.0.27-1~ kexec-tools
diff --git a/debian/kexec-tools.postinst b/debian/kexec-tools.postinst
new file mode 100644
index 0000000..2f282a6
--- /dev/null
+++ b/debian/kexec-tools.postinst
@@ -0,0 +1,135 @@
+#! /bin/sh
+# postinst script for kexec-tools
+#
+# see: dh_installdeb(1)
+
+set -e
+
+update_param() {
+ eval old=\"'$'$1\"
+ eval new=\"'$'new_$1\"
+
+ if test "$old" = "$new"; then
+ return
+ fi
+
+ if test -z "$old"; then
+ grep -Eq "^ *$1=" "$INITCONFFILE" || echo "$1=" \
+ >> "$INITCONFFILE"
+ fi
+
+ sed -e "s/^ *$1=.*/$1=$new/" < $INITCONFFILE > $INITCONFFILE.$$
+ mv -f $INITCONFFILE.$$ $INITCONFFILE
+}
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+# Handle debconf
+. /usr/share/debconf/confmodule
+
+INITCONFFILE=/etc/default/kexec
+
+# We generate several files during the postinst, and we don't want
+# them to be readable only by root.
+umask 022
+
+case "$1" in
+ configure)
+ ;;
+
+ install|upgrade)
+ ;;
+
+ upgrade)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ exit 0
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# Generate configuration file if it does not exist, using
+# default values.
+[ -r "${INITCONFFILE}" ] || {
+ echo Generating ${INITCONFFILE}... >&2
+ cat >${INITCONFFILE} <<'EOFMAGICNUMBER1234'
+# Defaults for kexec-tools
+
+# Kernel and initrd image
+KERNEL_IMAGE="/vmlinuz"
+INITRD="/initrd.img"
+
+# If empty, use current /proc/cmdline
+APPEND=""
+
+# Load the default kernel from grub config (true/false)
+USE_GRUB_CONFIG=false
+EOFMAGICNUMBER1234
+}
+
+# Add USE_GRUB_CONFIG parameter to config file if it does not exist
+. ${INITCONFFILE}
+if test -z "$USE_GRUB_CONFIG" ; then
+ echo "" >> ${INITCONFFILE}
+ echo "# Load the default kernel from grub config (true/false)" >> ${INITCONFFILE}
+ echo "USE_GRUB_CONFIG=" >> ${INITCONFFILE}
+fi
+
+# Remove discontinued LOAD_KEXEC option
+if test -n "$LOAD_KEXEC" ; then
+ sed -i "s/Defaults for kexec initscript/Defaults for kexec-tools/" ${INITCONFFILE}
+ sed -i "/sourced by/d" ${INITCONFFILE}
+ sed -i "/Load a kexec kernel/d" ${INITCONFFILE}
+ sed -i "/LOAD_KEXEC/d" ${INITCONFFILE}
+ sed -i '/^$/N;/^\n$/D' ${INITCONFFILE}
+fi
+
+# Detect if system is configured to place kernel link under /boot instead of /
+# If yes, update kernel and initrd image locations in config file
+if [ -f /etc/kernel-img.conf ]; then
+ LINK_IN_BOOT=`grep link_in_boot /etc/kernel-img.conf | cut -f2 -d= | tr -d '[:blank:]'`
+ if [ "$LINK_IN_BOOT" = "yes" ]; then
+ sed -e "s/KERNEL_IMAGE=\"\/vmlinuz\"/KERNEL_IMAGE=\"\/boot\/vmlinuz\"/" < ${INITCONFFILE} > ${INITCONFFILE}.$$
+ mv -f ${INITCONFFILE}.$$ $INITCONFFILE
+ sed -e "s/INITRD=\"\/initrd.img\"/INITRD=\"\/boot\/initrd.img\"/" < ${INITCONFFILE} > ${INITCONFFILE}.$$
+ mv -f ${INITCONFFILE}.$$ $INITCONFFILE
+ else
+ sed -e "s/KERNEL_IMAGE=\"\/boot\/vmlinuz\"/KERNEL_IMAGE=\"\/vmlinuz\"/" < ${INITCONFFILE} > ${INITCONFFILE}.$$
+ mv -f ${INITCONFFILE}.$$ $INITCONFFILE
+ sed -e "s/INITRD=\"\/boot\/initrd.img\"/INITRD=\"\/initrd.img\"/" < ${INITCONFFILE} > ${INITCONFFILE}.$$
+ mv -f ${INITCONFFILE}.$$ $INITCONFFILE
+ fi
+fi
+
+# ------------------------- Debconf questions start ---------------------
+
+if [ -d /boot/grub ]
+then
+ db_get kexec-tools/use_grub_config
+ new_USE_GRUB_CONFIG="${RET}"
+else
+ new_USE_GRUB_CONFIG="false"
+ db_set kexec-tools/use_grub_config "false"
+fi
+update_param USE_GRUB_CONFIG
+
+# ------------------------- Debconf questions end ---------------------
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/kexec-tools.postrm b/debian/kexec-tools.postrm
new file mode 100644
index 0000000..54f7fb6
--- /dev/null
+++ b/debian/kexec-tools.postrm
@@ -0,0 +1,43 @@
+#! /bin/sh
+# postrm script for kexec-tools
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ if [ -f /etc/default/kexec ]
+ then
+ rm /etc/default/kexec
+ fi
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/kexec-tools.preinst b/debian/kexec-tools.preinst
new file mode 100644
index 0000000..2b6c69f
--- /dev/null
+++ b/debian/kexec-tools.preinst
@@ -0,0 +1,45 @@
+#!/bin/sh
+# preinst script for kexec-tools
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install)
+ ;;
+
+ upgrade)
+ # kexec-tools does not use init or systemd services any more.
+ # Automatic loading of kexec image has been taken over by systemctl
+ # and may be assumed by logind in near future. kexec-tools package
+ # now provides a script to load a kexec image which can be used
+ # together with systemd or logind
+ update-rc.d -f kexec remove
+ update-rc.d -f kexec-load remove
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/kexec-tools.templates b/debian/kexec-tools.templates
new file mode 100644
index 0000000..c94b736
--- /dev/null
+++ b/debian/kexec-tools.templates
@@ -0,0 +1,16 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english@lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: kexec-tools/use_grub_config
+Type: boolean
+Default: false
+_Description: Read GRUB configuration file to load the kernel?
+ If you choose this option, kexec will read the GRUB configuration file to
+ determine which kernel and options to load for kexec reboot, as opposed
+ to what is in /etc/default/kexec.
diff --git a/debian/patches/add_debian_readme.patch b/debian/patches/add_debian_readme.patch
new file mode 100644
index 0000000..a50765f
--- /dev/null
+++ b/debian/patches/add_debian_readme.patch
@@ -0,0 +1,14 @@
+--- /dev/null
++++ b/README.debian
+@@ -0,0 +1,11 @@
++This kexec-tools package was built from kexec-tools git repository at
++<git://git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools.git>.
++
++Installing this package also installs two init scripts under /etc/init.d -
++kexec-load and kexec. kexec-load is called upon reboot to load a new kexec
++kernel if kexec is enabled in /etc/default/kexec. kexec script is called
++just before reboot script. It checks if kexec is enabled and a
++kexec'able kernel is loaded. If yes, it kexecs a new kernel instead of
++reboot. As a result, kexec is automatically enabled upon installation of
++kexec-tools package if kexec is enabled in /etc/default/kexec through debconf
++option.
diff --git a/debian/patches/coldreboot.patch b/debian/patches/coldreboot.patch
new file mode 100644
index 0000000..8408116
--- /dev/null
+++ b/debian/patches/coldreboot.patch
@@ -0,0 +1,88 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -183,9 +183,11 @@
+ PGSRCS:=$(foreach s, $(GENERATED_SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
+
+ MAN_PAGES:=$(KEXEC_MANPAGE) $(VMCORE_DMESG_MANPAGE)
++MAN_PAGES+=$(MANDIR)/man8/coldreboot.8
+ BINARIES_i386:=$(KEXEC_TEST)
+ BINARIES_x86_64:=$(KEXEC_TEST)
+ BINARIES:=$(KEXEC) $(VMCORE_DMESG) $(BINARIES_$(ARCH))
++SCRIPTS:=$(SBINDIR)/coldreboot
+
+ UNINSTALL_KDUMP = $(sbindir)/kdump
+ UNINSTALL_KDUMP_MANPAGE = $(mandir)/man8/kdump.8
+@@ -195,7 +197,7 @@
+ UNINSTALL_VMCORE_DMESG = $(sbindir)/vmcore-dmesg
+ UNINSTALL_VMCORE_DMESG_MANPAGE = $(mandir)/man8/vmcore-dmesg.8
+
+-TARGETS:=$(BINARIES) $(MAN_PAGES)
++TARGETS:=$(BINARIES) $(MAN_PAGES) $(SCRIPTS)
+ targets: $(TARGETS)
+
+ UNINSTALL_TARGETS_i386:=$(UNINSTALL_KEXEC_TEST)
+--- a/kexec/Makefile
++++ b/kexec/Makefile
+@@ -105,6 +105,8 @@
+
+ KEXEC = $(SBINDIR)/kexec
+ KEXEC_MANPAGE = $(MANDIR)/man8/kexec.8
++KEXEC_COLDREBOOT=$(SBINDIR)/coldreboot
++KEXEC_COLDREBOOT_MANPAGE=$(MANDIR)/man8/coldreboot.8
+
+ -include $(KEXEC_DEPS)
+
+@@ -119,6 +121,16 @@
+ $(KEXEC_MANPAGE): kexec/kexec.8
+ @$(MKDIR) -p $(MANDIR)/man8
+ cp $^ $(KEXEC_MANPAGE)
++
++$(KEXEC_COLDREBOOT): kexec/coldreboot
++ @$(MKDIR) -p $(@D)
++ cp kexec/coldreboot $(KEXEC_COLDREBOOT)
++ /bin/chmod 755 $(KEXEC_COLDREBOOT)
++
++$(KEXEC_COLDREBOOT_MANPAGE): kexec/coldreboot.8
++ @$(MKDIR) -p $(MANDIR)/man8
++ cp kexec/coldreboot.8 $(KEXEC_COLDREBOOT_MANPAGE)
++
+ echo::
+ @echo "KEXEC_SRCS $(KEXEC_SRCS)"
+ @echo "KEXEC_DEPS $(KEXEC_DEPS)"
+--- /dev/null
++++ b/kexec/coldreboot
+@@ -0,0 +1,6 @@
++#!/bin/sh
++NOKEXECFILE=/no-kexec-reboot
++
++/bin/rm -f $NOKEXECFILE
++touch $NOKEXECFILE
++/sbin/reboot $*
+--- /dev/null
++++ b/kexec/coldreboot.8
+@@ -0,0 +1,25 @@
++.\" Process this file with
++.\" groff -man -Tascii coldreboot.8
++.\"
++.TH kexec 8 "April 2006" Linux "User Manuals"
++.SH NAME
++coldreboot \- Force a cold reboot bypassing kexec-tools default
++.SH SYNOPSIS
++.B /sbin/coldreboot
++.B [reboot options]
++
++.SH DESCRIPTION
++.B coldreboot
++is a script that forces a cold reboot regardless of whether kexec is enabled
++or not in /etc/default/kexec.
++.B coldreboot
++takes the same arguments as /sbin/reboot and passes them on to /sbin/reboot
++later.
++
++.SH NOTES
++.PP
++.B coldreboot
++prevents a kexec kernel from being loaded automatically and thus
++forces a cold reboot. If the user loads a kexec kernel by hand,
++.B coldreboot
++will still result in a kexec reboot.
diff --git a/debian/patches/debianize.patch b/debian/patches/debianize.patch
new file mode 100644
index 0000000..f6bd5dc
--- /dev/null
+++ b/debian/patches/debianize.patch
@@ -0,0 +1,21 @@
+Description: Fix up upstream files to be Denian compliant
+ Upstream installs files in locations not compliant with debian
+ standard. This patch fixes upstream Makefile to make it
+ compliant.
+Author: Khalid Aziz <khalid@debian.org>
+Origin: other
+Bug: https://bugs.debiab.org
+Last-Update: 2023-09-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -93,7 +93,7 @@ SHAREDSTATEDIR=$(BUILD_PREFIX)/com
+ LOCALSTATEDIR=$(BUILD_PREFIX)/var
+ LIBDIR=$(BUILD_PREFIX)/lib
+ INFODIR=$(BUILD_PREFIX)/info
+-MANDIR=$(BUILD_PREFIX)/man
++MANDIR=$(BUILD_PREFIX)/share/man
+ MAN1DIR=$(MANDIR)/man1
+ MAN2DIR=$(MANDIR)/man2
+ MAN3DIR=$(MANDIR)/man3
diff --git a/debian/patches/distclean_fix.patch b/debian/patches/distclean_fix.patch
new file mode 100644
index 0000000..b0146f4
--- /dev/null
+++ b/debian/patches/distclean_fix.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -255,7 +255,7 @@ clean:
+ distclean: dist-clean
+
+ dist-clean: clean
+- $(RM) -f config.log config.status config.cache Makefile include/config.h
++ $(RM) -f config.log config.status config.cache Makefile include/config.h include/stamp-h*
+ $(RM) -f include/config.h.in configure $(SPEC)
+ $(RM) -rf autom4te.cache
+
diff --git a/debian/patches/linker-option.patch b/debian/patches/linker-option.patch
new file mode 100644
index 0000000..96883dc
--- /dev/null
+++ b/debian/patches/linker-option.patch
@@ -0,0 +1,11 @@
+--- a/purgatory/Makefile
++++ b/purgatory/Makefile
+@@ -67,7 +67,7 @@
+ $(PURGATORY): $(PURGATORY_OBJS)
+ $(MKDIR) -p $(@D)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@.sym $^
+-# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
++# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -Wl,--no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
+ $(STRIP) --strip-debug -o $@ $@.sym
+
+ echo::
diff --git a/debian/patches/powerpcspe_support.patch b/debian/patches/powerpcspe_support.patch
new file mode 100644
index 0000000..89c2cb3
--- /dev/null
+++ b/debian/patches/powerpcspe_support.patch
@@ -0,0 +1,11 @@
+--- a/kexec/arch/ppc/ppc-setup-dol.S
++++ b/kexec/arch/ppc/ppc-setup-dol.S
+@@ -80,7 +80,7 @@ setup_dol_start:
+ isync
+
+ /* AFAIK, this is not strictly needed, although seems sane */
+-#if 1
++#ifndef __NO_FPRS__
+ li r9, 0
+
+ /* page table pointer */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cea08c4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,9 @@
+debianize.patch
+static_binary_warning.patch
+distclean_fix.patch
+add_debian_readme.patch
+coldreboot.patch
+linker-option.patch
+powerpcspe_support.patch
+vmcore-dmesg_man_page_fix.patch
+systemd-support.patch
diff --git a/debian/patches/static_binary_warning.patch b/debian/patches/static_binary_warning.patch
new file mode 100644
index 0000000..cabc937
--- /dev/null
+++ b/debian/patches/static_binary_warning.patch
@@ -0,0 +1,20 @@
+Index: kexec-tools-2.0.3/kexec_test/Makefile
+===================================================================
+--- kexec-tools-2.0.3.orig/kexec_test/Makefile 2012-01-24 14:10:44.383816036 -0700
++++ kexec-tools-2.0.3/kexec_test/Makefile 2012-01-31 08:44:23.235020166 -0700
+@@ -20,7 +20,7 @@
+ KEXEC_TEST_OBJS = $(call objify, $(KEXEC_TEST_SRCS))
+ KEXEC_TEST_DEPS = $(call depify, $(KEXEC_TEST_OBJS))
+
+-KEXEC_TEST = $(PKGLIBDIR)/kexec_test
++KEXEC_TEST = $(PKGLIBDIR)/kexec_test.static
+
+ clean += $(KEXEC_TEST_OBJS) $(KEXEC_TEST_DEPS) $(KEXEC_TEST)
+
+@@ -36,5 +36,6 @@
+ $(KEXEC_TEST): $(KEXEC_TEST_OBJS)
+ mkdir -p $(@D)
+ $(TARGET_LD) $(LDFLAGS) -o $@ $^
++ strip $@
+
+ endif
diff --git a/debian/patches/systemd-support.patch b/debian/patches/systemd-support.patch
new file mode 100644
index 0000000..06868eb
--- /dev/null
+++ b/debian/patches/systemd-support.patch
@@ -0,0 +1,171 @@
+Description: Add scripts to support kexec rebots with systemd
+ systemd supports kexec reboots natively. To perform kexec
+ reboot, one can rely upon systemctl loading the kexec kernel
+ image or one must load a kexec kernel image before reboot.
+ systemctl supports loading kexec image only on systems that
+ support boot loader spec. This patch adds a script that can
+ determine the right kernel to load and load it in memory ready
+ for kexec.
+Author: Khalid Aziz <khalid@debian.org>
+Origin: other, Debian addition
+Bug: https://bugs.debian.org
+Last-Update: 2023-09-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -184,10 +184,11 @@
+
+ MAN_PAGES:=$(KEXEC_MANPAGE) $(VMCORE_DMESG_MANPAGE)
+ MAN_PAGES+=$(MANDIR)/man8/coldreboot.8
++MAN_PAGES+=$(MANDIR)/man8/kexec-load-kernel.8
+ BINARIES_i386:=$(KEXEC_TEST)
+ BINARIES_x86_64:=$(KEXEC_TEST)
+ BINARIES:=$(KEXEC) $(VMCORE_DMESG) $(BINARIES_$(ARCH))
+-SCRIPTS:=$(SBINDIR)/coldreboot
++SCRIPTS:=$(SBINDIR)/coldreboot $(SBINDIR)/kexec-load-kernel
+
+ UNINSTALL_KDUMP = $(sbindir)/kdump
+ UNINSTALL_KDUMP_MANPAGE = $(mandir)/man8/kdump.8
+--- a/kexec/Makefile
++++ b/kexec/Makefile
+@@ -107,6 +107,8 @@
+ KEXEC_MANPAGE = $(MANDIR)/man8/kexec.8
+ KEXEC_COLDREBOOT=$(SBINDIR)/coldreboot
+ KEXEC_COLDREBOOT_MANPAGE=$(MANDIR)/man8/coldreboot.8
++KEXEC_LOADKERNEL=$(SBINDIR)/kexec-load-kernel
++KEXEC_LOADKERNEL_MANPAGE=$(MANDIR)/man8/kexec-load-kernel.8
+
+ -include $(KEXEC_DEPS)
+
+@@ -131,6 +133,15 @@
+ @$(MKDIR) -p $(MANDIR)/man8
+ cp kexec/coldreboot.8 $(KEXEC_COLDREBOOT_MANPAGE)
+
++$(KEXEC_LOADKERNEL): kexec/kexec-load-kernel
++ @$(MKDIR) -p $(@D)
++ cp kexec/kexec-load-kernel $(KEXEC_LOADKERNEL)
++ /bin/chmod 755 $(KEXEC_LOADKERNEL)
++
++$(KEXEC_LOADKERNEL_MANPAGE): kexec/kexec-load-kernel.8
++ @$(MKDIR) -p $(MANDIR)/man8
++ cp kexec/kexec-load-kernel.8 $(KEXEC_LOADKERNEL_MANPAGE)
++
+ echo::
+ @echo "KEXEC_SRCS $(KEXEC_SRCS)"
+ @echo "KEXEC_DEPS $(KEXEC_DEPS)"
+--- /dev/null
++++ b/kexec/kexec-load-kernel
+@@ -0,0 +1,90 @@
++#! /bin/sh
++
++PATH=/sbin:/bin:/usr/sbin:/usr/bin
++NOKEXECFILE=/no-kexec-reboot
++
++. /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=
++ while read command args; do
++ if [ "$command" = "linux" ]; then
++ echo "$args" | while read kernel append; do
++ echo KERNEL_IMAGE=\"${prefix}${kernel}\"
++ echo APPEND=\"${append}\"
++ done
++ elif [ "$command" = "initrd" ]; then
++ initrd_image=${prefix}${args}
++ fi
++ done
++ echo INITRD=\"$initrd_image\"
++}
++
++get_grub_kernel() {
++ test -f /boot/grub/grub.cfg || return
++ local prefix
++ mountpoint -q /boot && prefix=/boot || prefix=
++ data=$(cat /boot/grub/grub.cfg)
++
++ default=$(echo "$data" | awk '/set default/ {print $2}' | cut -d'"' -f2 | tail -1)
++ if [ "$default" = '${saved_entry}' ]; then
++ default=$(sed -ne 's/^saved_entry=//p' /boot/grub/grubenv)
++ fi
++ if [ -z "$default" ]; then
++ default=0
++ fi
++ start_offset=$((default + 1))
++ end_offset=$((default + 2))
++
++ # grub entries start with "menuentry" commands. Get the line
++ # numbers that surround the first entry
++ offsets=$(echo "$data" | grep -n '^[[:space:]]*menuentry[[:space:]]' | cut -d: -f1)
++ begin=$(echo "$offsets" | tail -n+$start_offset | head -n1)
++ end=$(echo "$offsets" | tail -n+$end_offset | head -n1)
++
++ # If this is the last entry, we need to read to the end of the file
++ # or to the end of boot entry section
++ if [ -z "$end" ]; then
++ numlines=$(echo "$data" | tail --lines=+$begin | grep -n "^### END" | head -1 | cut -d: -f1)
++ end=$((begin + numlines - 1))
++ fi
++
++ length=$((end - begin))
++ entry=$(echo "$data" | tail -n+$begin | head -n$length)
++ eval $(echo "$entry" | process_grub_entry)
++}
++
++load_kernel () {
++ test -x /sbin/kexec || exit 0
++ test "x`cat /sys/kernel/kexec_loaded`y" = "x1y" && exit 0
++
++ if [ -f $NOKEXECFILE ]
++ then
++ /bin/rm -f $NOKEXECFILE
++ exit 0
++ fi
++
++ test "$USE_GRUB_CONFIG" = "true" && get_grub_kernel
++
++ REAL_APPEND="$APPEND"
++
++ test -z "$REAL_APPEND" && REAL_APPEND="`cat /proc/cmdline`"
++ echo "Loading new kernel image into memory"
++ if [ -z "$INITRD" ]
++ then
++ /sbin/kexec -l "$KERNEL_IMAGE" --append="$REAL_APPEND"
++ else
++ /sbin/kexec -l "$KERNEL_IMAGE" --initrd="$INITRD" --append="$REAL_APPEND"
++ fi
++ echo "kexec kernel loaded"
++}
++
++load_kernel
++exit 0
+--- /dev/null
++++ b/kexec/kexec-load-kernel.8
+@@ -0,0 +1,19 @@
++.\" Process this file with
++.\" groff -man -Tascii kexec-load-kernel.8
++.\"
++.TH kexec 8 "April 2006" Linux "User Manuals"
++.SH NAME
++kexec-load-kernel \- Load the default grub kernel into kexec buffer
++.SH SYNOPSIS
++.B /sbin/kexec-load-kernel
++
++.SH DESCRIPTION
++.B kexec-load-kernel
++parses grub configuration file to determine the default grub kernel and
++loads it in kexec buffer if kexec reboot is enabled.
++
++.SH NOTES
++.PP
++.B kexec-load-kernel
++is run just before a kexec reboot to load the new kernel in memory. The
++subsequent call to kexec will result in this kernel to be kexec'd.
diff --git a/debian/patches/vmcore-dmesg_man_page_fix.patch b/debian/patches/vmcore-dmesg_man_page_fix.patch
new file mode 100644
index 0000000..1230ebd
--- /dev/null
+++ b/debian/patches/vmcore-dmesg_man_page_fix.patch
@@ -0,0 +1,11 @@
+--- a/vmcore-dmesg/vmcore-dmesg.8
++++ b/vmcore-dmesg/vmcore-dmesg.8
+@@ -16,7 +16,7 @@
+ .\" .sp <n> insert n+1 empty lines
+ .\" for manpage-specific macros, see man(7)
+ .SH NAME
+-vmcore-dmesg
++vmcore-dmesg \- extract the dmesg from a vmcore
+ .SH SYNOPSIS
+ .B vmcore-dmesg
+ .RI " vmcore"
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..f20df85
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] kexec-tools.templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 0000000..53da681
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,47 @@
+# Czech translation of kexec-tools debconf messages.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+# Miroslav Kure <kurem@debian.cz>, 2008, 2011
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2011-09-03 15:12+0200\n"
+"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Použít pro zavedení jádra konfigurační souboru GRUBu?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Zvolíte-li tuto možnost, kexec nepoužije pro restart parametry jádra zadané "
+"v /etc/default/kexec, ale zjistí si je z konfiguračního souboru GRUBu."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Mají se kexec-tools starat o restarty?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Zvolíte-li tuto možnost, nebude se při restartu systému provádět celá "
+#~ "zaváděcí sekvence, ale restartuje se do jádra zavedeného přes kexec."
diff --git a/debian/po/da.po b/debian/po/da.po
new file mode 100644
index 0000000..a69cf05
--- /dev/null
+++ b/debian/po/da.po
@@ -0,0 +1,49 @@
+# Danish translation kexec-tools.
+# Copyright (C) 2016 kexec-tools & nedenstående oversættere.
+# This file is distributed under the same license as the kexec-tools package.
+# Joe Hansen <joedalton2@yahoo.dk>, 2010, 2011, 2016.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2016-07-09 05:26+0100\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org> \n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Læs GRUB-konfigurationsfil for at indlæse kernen?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Hvis du vælger denne indstilling, vil kexec læse GRUB-konfigurationsfilen "
+"for at bestemme hvilken kerne og hvilke indstillinger at indlæse for kexec-"
+"genstart, til forskel fra hvad der er i /etc/default/kexec."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Skal kexec-tools håndtere genstarter (kun sysvinit)?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Hvis du vælger denne indstilling, vil en systemgenstart udløse en "
+#~ "genstart med en kerne indlæst af kexec i stedet for at gå igennem den "
+#~ "fulde proces med systemopstart."
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 0000000..d0c8fc2
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,48 @@
+# German translation of the kexec-tools debconf template
+# Copyright 2008 Kai Wasserbäch <debian@carbon-project.org>
+# Copyright 2011,2017,2021 Helge Kreutzmann <debian@helgefjell.de>
+# This file is distributed under the same license as the kexec-tools package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1:2.0.22-2\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2021-07-18 21:24+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "GRUBs Konfigurationsdatei für das Laden des Kernels auslesen?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Falls Sie diese Option wählen, wird »kexec« die Konfigurationsdatei von GRUB "
+"auslesen, um den Kernel und die Optionen für das Laden zu ermitteln, anstatt "
+"den Inhalt von /etc/default/kexec zu verwenden."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Soll »kexec-tools« Neustarts verwalten?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Falls Sie diese Option wählen, führt ein Systemneustart zum Start eines "
+#~ "von »kexec« geladenen Kernels, anstatt den gesamten Bootloader-Prozess zu "
+#~ "durchlaufen."
diff --git a/debian/po/es.po b/debian/po/es.po
new file mode 100644
index 0000000..7b9b0fc
--- /dev/null
+++ b/debian/po/es.po
@@ -0,0 +1,71 @@
+# kexec-tools po-debconf translation to Spanish
+# Copyright (C) 2010 Software in the Public Interest
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Changes:
+# - Initial translation
+# Camaleón <noelamac@gmail.com>, 2011
+#
+# - Updates
+#
+#
+# Traductores, si no conocen el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+# - El proyecto de traducción de Debian al español
+# http://www.debian.org/intl/spanish/
+# especialmente las notas y normas de traducción en
+# http://www.debian.org/intl/spanish/notas
+#
+# - La guía de traducción de po's de debconf:
+# /usr/share/doc/po-debconf/README-trans
+# o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 2.0.2-3\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2022-01-07 18:51+0100\n"
+"Last-Translator: Camaleón <noelamac@gmail.com>\n"
+"Language-Team: Debian Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "¿Leer el archivo de configuración de GRUB al cargar el kernel?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Si selecciona esta opción, kexec leerá el archivo de configuración de GRUB "
+"para determinar el kernel y las opciones que se van a cargar al reiniciar "
+"kexec, en lugar de obtener los valores desde el archivo «/etc/default/kexec»."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "¿Debe kexec-tools gestionar los reinicios del sistema ?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Si selecciona esta opción, al reiniciar el sistema se realizará un "
+#~ "reinicio en un núcleo cargado por kexec en lugar de iniciar el proceso "
+#~ "completo del cargador de arranque del sistema."
diff --git a/debian/po/fi.po b/debian/po/fi.po
new file mode 100644
index 0000000..d9d21e8
--- /dev/null
+++ b/debian/po/fi.po
@@ -0,0 +1,49 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2008-04-26 08:30+0200\n"
+"Last-Translator: Esko Arajärvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Finnish\n"
+"X-Poedit-Country: FINLAND\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr ""
+#~ "Tulisiko kexec-toolsin hallinnoida järjestelmän uudelleenkäynnistystä?"
+
+#, fuzzy
+#~| msgid ""
+#~| "If you choose this option, a system reboot will trigger a restart into a "
+#~| "kernel loaded by kexec instead of going through the full system "
+#~| "bootloader process."
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Jos valitset tämän vaihtoehdon, järjestelmä käynnistetään uudelleen "
+#~ "käyttäen kexecin lataamaa ydintä täyden alkulatausohjelman avulla "
+#~ "tehtävän prosessin sijaan."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 0000000..107da16
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,54 @@
+# Translation of kexec-tools debconf template to French
+# Copyright (C) 2016 Debian French l10n team <debian-l10n-french@lists.debian.org>
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Translator:
+# Steve Petruzzello <dlist@bluewin.ch>
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools_2.0.0-2\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2016-04-05 12:18+0200\n"
+"Last-Translator: Steve Petruzzello <dlist@bluewin.ch>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+"Faut-il lire le fichier de configuration de GRUB pour charger le noyau ?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Si vous choisissez cette option, kexec lira le fichier de configuration de "
+"GRUB pour déterminer le noyau et les options à charger pour un redémarrage "
+"via kexec, contrairement à ce qui se trouve dans le fichier « /etc/default/"
+"kexec »."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr ""
+#~ "Faut-il gérer les redémarrages avec kexec-tools (seulement pour "
+#~ "sysvinit) ?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Si vous choisissez cette option, le système redémarrera avec un noyau "
+#~ "chargé par kexec plutôt que par le programme d'amorçage habituel. "
diff --git a/debian/po/gl.po b/debian/po/gl.po
new file mode 100644
index 0000000..a13693c
--- /dev/null
+++ b/debian/po/gl.po
@@ -0,0 +1,50 @@
+# Galician translation of kexec-tools's debconf templates
+# This file is distributed under the same license as the kexec-tools package.
+# Jacobo Tarrio <jtarrio@debian.org>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2008-04-25 21:26+0100\n"
+"Last-Translator: Jacobo Tarrio <jtarrio@debian.org>\n"
+"Language-Team: Galician <proxecto@trasno.net>\n"
+"Language: gl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "¿Debe kexec-tools xestionar os reinicios?"
+
+#, fuzzy
+#~| msgid ""
+#~| "If you choose this option, a system reboot will trigger a restart into a "
+#~| "kernel loaded by kexec instead of going through the full system "
+#~| "bootloader process."
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Se escolle esta opción, o reinicio do sistema ha facer que se cargue un "
+#~ "núcleo cargado mediante kexec no canto de pasar por todo o proceso de "
+#~ "inicio do sistema."
diff --git a/debian/po/it.po b/debian/po/it.po
new file mode 100644
index 0000000..a150f39
--- /dev/null
+++ b/debian/po/it.po
@@ -0,0 +1,52 @@
+# ITALIAN TRANSLATION OF KEXEC-TOOLS' PO-DEBCONF FILE.
+# COPYRIGHT (C) 2010 THE KEXEC-TOOLS' COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Vincenzo Campanella <vinz65@gmail.com>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2010-10-13 06:52+0200\n"
+"Last-Translator: Vincenzo Campanella <vinz65@gmail.com>\n"
+"Language-Team: Italian <tp@lists.linux.it>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Si desidera che kexec-tools gestisca i riavvii?"
+
+#, fuzzy
+#~| msgid ""
+#~| "If you choose this option, a system reboot will trigger a restart into a "
+#~| "kernel loaded by kexec instead of going through the full system "
+#~| "bootloader process."
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Se si risponde affermativamente, il riavvio del sistema verrà effettuato "
+#~ "utilizzando un kernel caricato da kexec anziché passare tramite l'intero "
+#~ "processo di caricamento del sistema."
diff --git a/debian/po/ja.po b/debian/po/ja.po
new file mode 100644
index 0000000..73606e5
--- /dev/null
+++ b/debian/po/ja.po
@@ -0,0 +1,51 @@
+# Copyright (C) 2008 Khalid Aziz <khalid@debian.org>
+# This file is distributed under the same license as kexec-tools package.
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2008.
+# Takuma Yamada <tyamada@takumayamada.com>, 2016.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 20080324-2\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2016-03-24 12:07+0900\n"
+"Last-Translator: Takuma Yamada <tyamada@takumayamada.com>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Gtranslator 2.91.6\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "カーネルをロードするための GRUB 設定ファイルを読み込みますか?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"このオプションを選択すると kexec は /etc/default/kexec の内容ではなく GRUB 設"
+"定ファイルを読み込んで kexec の再起動時にどのカーネル及びオプションをロードす"
+"るか判断します。"
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "kexec-tools で再起動処理を行いますか (sysvinit のみ)?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "このオプションを選んだ場合、通常システムのブートローダ手順通りではなく、"
+#~ "kexec からロードされたカーネルから再起動するようにシステムの再起動が設定さ"
+#~ "れます。"
diff --git a/debian/po/nl.po b/debian/po/nl.po
new file mode 100644
index 0000000..04909b6
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,50 @@
+# Dutch translation of kexec-tools debconf templates.
+# Copyright (C) 2011 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+# Jeroen Schot <schot@a-eskwadraat.nl>, 2011.
+# Frans Spiesschaert <Frans.Spiesschaert@yucom.be>, 2016, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1:2.0.2-3\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2021-07-22 21:36+0200\n"
+"Last-Translator: Frans Spiesschaert <Frans.Spiesschaert@yucom.be>\n"
+"Language-Team: Debian Dutch l10n Team <debian-l10n-dutch@lists.debian.org>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 2.2.1\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Het configuratiebestand van GRUB uitlezen om de kernel te laden?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Als u deze optie kiest, zal kexec het configuratiebestand van GRUB lezen om "
+"te bepalen welke kernel en opties geladen moeten worden voor een reboot met "
+"kexec, in tegenstelling tot wat er in /etc/default/kexec staat."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Moet kexec-tools reboots afhandelen?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Als u deze optie kiest, zal een herstart van het systeem leiden tot een "
+#~ "herstart met een kernel die geladen wordt door kexec in plaats van het "
+#~ "doorlopen van het volledige bootloader-proces van het systeem."
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644
index 0000000..c9f2faf
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,53 @@
+# Portuguese translation of kexec-tool's debconf messages.
+# Copyright (C) 2008, 2011
+# This file is distributed under the same license as the kexec-tools package.
+# Ricardo Silva <ardoric@gmail.com>, 2008.
+# Rui Branco <ruipb@debianpt.org>, 2011, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools_1-2.0.14-1_pt\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2017-03-14 12:08+0000\n"
+"Last-Translator: Rui Branco <ruipb@debianpt.org>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Gtranslator 2.91.7\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Ler o ficheiro de configuração do GRUB para carregar o kernel?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Se escolher esta opção, o kexec irá ler o ficheiro de configuração do GRUB "
+"de modo a determinar qual o kernel e quais as opções para o reinicio do "
+"kexec, em oposição ao que existe em /etc/default/kexec."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr ""
+#~ "Deve o kexec-tools gerir as reiniciações do computador (apenas sysvinit)?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Se escolher esta opção, reiniciar o sistema irá carregar um kernel usando "
+#~ "o kexec em vez de passar por todo o processo de reinicio e arranque do "
+#~ "computador."
diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po
new file mode 100644
index 0000000..76d8d52
--- /dev/null
+++ b/debian/po/pt_BR.po
@@ -0,0 +1,51 @@
+# Debconf translations for kexec-tools.
+# Copyright (C) 2016 THE kexec-tools'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+# Adriano Rafael Gomes <adrianorg@debian.org>, 2016-2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1:2.0.12-1\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2017-01-11 15:34-0200\n"
+"Last-Translator: Adriano Rafael Gomes <adrianorg@debian.org>\n"
+"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian."
+"org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Ler o arquivo de configuração do GRUB para carregar o kernel?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Se você escolher essa opção, o kexec lerá o arquivo de configuração do GRUB "
+"para determinar qual kernel e quais opções carregar para a reinicialização "
+"via kexec, em oposição ao que estiver em /etc/default/kexec."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr ""
+#~ "O kexec-tools deve controlar as reinicializações (somente para sysvinit)?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Se você escolher essa opção, uma reinicialização do sistema provocará um "
+#~ "reinício em um kernel carregado pelo kexec, ao invés de passar por todo o "
+#~ "processo do carregador de inicialização do sistema."
diff --git a/debian/po/ro.po b/debian/po/ro.po
new file mode 100644
index 0000000..b5c8f98
--- /dev/null
+++ b/debian/po/ro.po
@@ -0,0 +1,57 @@
+# Mesajele în limba română pentru pachetul kexec-tools.
+# Romanian translation of kexec-tools.
+# Copyright © 2023 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>, 2023.
+#
+# Cronologia traducerii fișierului „kexec-tools”:
+# Traducerea inițială, făcută de R-GC, pentru versiunea kexec-tools 1 2.0.25-3(2021-07-13).
+# Actualizare a traducerii pentru versiunea Y, făcută de X, Y(anul).
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1 2.0.25-3\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2023-02-22 00:15+0100\n"
+"Last-Translator: Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>\n"
+"Language-Team: Romanian <debian-l10n-romanian@lists.debian.org>\n"
+"Language: ro\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n==0 || (n!=1 && n%100>=1 && "
+"n%100<=19) ? 1 : 2);\n"
+"X-Bugs: Report translation errors to the Language-Team address.\n"
+"X-Generator: Poedit 3.2.2\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Citește fișierul de configurare GRUB pentru a încărca nucleul?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Dacă alegeți această opțiune, «kexec» va citi fișierul de configurare GRUB "
+"pentru a determina ce nucleu și opțiunile de încărcat pentru repornirea "
+"«kexec», spre deosebire de ceea ce este în „/etc/default/kexec”."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Trebuie «kexec-tools» să gestioneze repornirile?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Dacă alegeți această opțiune, o repornire a sistemului va declanșa o "
+#~ "repornire într-un nucleu încărcat de «kexec» în loc să treacă prin "
+#~ "procesul complet de încărcare a sistemului."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 0000000..cf6f24e
--- /dev/null
+++ b/debian/po/ru.po
@@ -0,0 +1,61 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+# Yuri Kozlov <yuray@komyakino.ru>, 2011.
+# Lev Lamberov <dogsleg@debian.org>, 2017.
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1:2.0.2-3\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2017-12-09 15:28+0500\n"
+"Last-Translator: Lev Lamberov <dogsleg@debian.org>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.0.4\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Использовать файл настройки GRUB для загрузки ядра?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Если вы ответите утвердительно, то при перезагрузке системы kexec будет "
+"использовать ядро и параметры из файла настройки GRUB, а не из файла /etc/"
+"default/kexec."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots (sysvinit only)?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr ""
+#~ "Использовать kexec-tools для обработки команды на перезагрузку (только "
+#~ "для sysvinit)?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Если вы ответите утвердительно, то при перезагрузке системы будет "
+#~ "выполнен перезапуск в ядро, загруженное с помощью kexec, а не как обычно, "
+#~ "с полным перезапуском системы с использованием системного загрузчика."
+
+#~ msgid "Should kexec-tools e grub2 config file to load kernel?"
+#~ msgstr ""
+#~ "Должен ли kexec-tools использовать файл настройки grub2 для выбора "
+#~ "загружаемого ядра?"
diff --git a/debian/po/sk.po b/debian/po/sk.po
new file mode 100644
index 0000000..6a5b13d
--- /dev/null
+++ b/debian/po/sk.po
@@ -0,0 +1,52 @@
+# Slovak translations for kexec-tools package
+# Slovenské preklady pre balík kexec-tools.
+# Copyright (C) 2011 THE kexec-tools'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+# Automatically generated, 2011.
+# Slavko <linux@slavino.sk>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 1:2.0.2-3\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2011-08-25 21:13+0200\n"
+"Last-Translator: Slavko <linux@slavino.sk>\n"
+"Language-Team: Slovak <debian-l10n-slovak@lists.debian.org>\n"
+"Language: sk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Čítať na určenie jadra konfiguračný súbor GRUB?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Ak zvolíte túto možnosť, určí kexec jadro a parametre, ktoré má načítať na "
+"reštart pomocou kexec z konfiguračného súboru GRUB, namiesto údajov v /etc/"
+"default/kexec."
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Majú reštarty obsluhovať nástroje kexec?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Ak zvolíte túto možnosť, reštart systému vyvolá reštart do jadra "
+#~ "načítaného pomocou kexec, namiesto vykonania úplného procesu reštartu "
+#~ "systému pomocou zavádzača."
diff --git a/debian/po/sv.po b/debian/po/sv.po
new file mode 100644
index 0000000..d947eff
--- /dev/null
+++ b/debian/po/sv.po
@@ -0,0 +1,50 @@
+# Translation of kexec-tools debconf template to Swedish
+# Copyright (C) 2022 Martin Bagge <brother@persilja.net>
+# This file is distributed under the same license as the kexec-tools package.
+#
+# Martin Bagge <brother@persilja.net>, 2008, 2011, 2022
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2022-05-20 08:55+0200\n"
+"Last-Translator: Martin Bagge / brother <brother@bsnet.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"X-Poedit-Language: Swedish\n"
+"X-Poedit-Country: Sweden\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Ska inställningsfilen för GRUB läsas för att ladda kärnan?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Detta val innebär att kexec kommer att läsa inställningsfilen för GRUB för "
+"att utröna vilken kärna och vilka flaggor som ska användas vid kexec-"
+"omstarten, till skillnad från vad som är angivet i /etc/default/kexec."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Ska kexec-tools hantera omstarter?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Om du väljer detta alternativ så kommer en omstart av systemet innebära "
+#~ "att kexec laddar en kärna istället för att köra hela systemets "
+#~ "uppstartsprocess."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..eda0db2
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,33 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the kexec-tools package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
diff --git a/debian/po/tr.po b/debian/po/tr.po
new file mode 100644
index 0000000..8de8a74
--- /dev/null
+++ b/debian/po/tr.po
@@ -0,0 +1,49 @@
+# Turkish debconf translation of kexec-tools
+# This file is distributed under the same license as the kexec-tools package.
+# Mert Dirik <mertdirik@gmail.com>, 2014.
+# Atila KOÇ <koc@artielektronik.com.tr>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2023-03-17 19:33+0300\n"
+"Last-Translator: Atila KOÇ <koc@artielektronik.com.tr>\n"
+"Language-Team: Debian L10n Turkish <debian-l10n-turkish@lists.debian.org>\n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 2.4.2\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr "Çekirdeği yüklemek için GRUB yapılandırma dosyası okunsun mu?"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+"Bu seçeneği seçerseniz, kexec yeniden başlatırken hangi çekirdeği ve "
+"seçenekleri yükleyeceğini belirlemek için /etc/default/kexec dosyası yerine "
+"GRUB yapılandırma dosyasını okur."
+
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "Yeniden başlatma işlerini kexec-tools işlesin mi?"
+
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Bu seçeneği seçerseniz, sistemi yeniden başlatma işlemi tam bir sistem "
+#~ "önyükleme sürecini yürütmek yerine kexec ile yüklenecek bir çekirdek "
+#~ "içine başlamayı tetikleyecektir."
diff --git a/debian/po/vi.po b/debian/po/vi.po
new file mode 100644
index 0000000..53217e9
--- /dev/null
+++ b/debian/po/vi.po
@@ -0,0 +1,52 @@
+# Vietnamese translation for Kexec-Tools.
+# Copyright © 2008 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kexec-tools 20080324-1\n"
+"Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n"
+"POT-Creation-Date: 2023-10-04 10:16-0600\n"
+"PO-Revision-Date: 2008-04-28 16:06+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"Language: vi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.7b3\n"
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid "Read GRUB configuration file to load the kernel?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../kexec-tools.templates:2001
+msgid ""
+"If you choose this option, kexec will read the GRUB configuration file to "
+"determine which kernel and options to load for kexec reboot, as opposed to "
+"what is in /etc/default/kexec."
+msgstr ""
+
+#, fuzzy
+#~| msgid "Should kexec-tools handle reboots?"
+#~ msgid "Should kexec-tools handle reboots?"
+#~ msgstr "kexec-tools nên quản lý việc khởi động lại không?"
+
+#, fuzzy
+#~| msgid ""
+#~| "If you choose this option, a system reboot will trigger a restart into a "
+#~| "kernel loaded by kexec instead of going through the full system "
+#~| "bootloader process."
+#~ msgid ""
+#~ "If you choose this option, a system reboot will trigger a restart into a "
+#~ "kernel loaded by kexec instead of going through the full system boot "
+#~ "loader process."
+#~ msgstr ""
+#~ "Bật tùy chọn này thì việc khởi động hệ thống sẽ gây ra tiến trình khởi "
+#~ "chạy lại vào một hạt nhân được kexec nạp, thay vào chạy tiến trình nạp và "
+#~ "thực hiện hệ thống hoàn toàn."
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f1e0f54
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+BUILD_DATE = $(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u +'%d %B %Y' -f -)
+export BUILD_DATE
+
+ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+ NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+endif
+
+#export DH_VERBOSE = 1
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+CFLAGS = -Wall -g
+
+%:
+ dh $@
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ dh_update_autotools_config
+ dh_autoreconf
+ CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" dh_auto_configure -- --prefix=/usr --exec-prefix=/ --sbindir=/sbin --mandir=/usr/share/man --datadir=/usr/share
+ touch configure-stamp
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE) $(NJOBS)
+ touch build-stamp
+
+clean: configure-stamp
+ dh_testdir
+ dh_testroot
+ rm -f configure-stamp build-stamp
+ rm -fr tmp-source
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) dist-clean
+
+ dh_autoreconf_clean
+ dh_clean
+ debconf-updatepo
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/kexec-tools
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ [ ! -f $(CURDIR)/debian/kexec-tools/usr/lib/kexec-tools-testing/kexec_test.static ] || strip $(CURDIR)/debian/kexec-tools/usr/lib/kexec-tools-testing/kexec_test.static
+endif
+
+ install -D -m 0755 debian/kexec-tools/sbin/kexec debian/kexec-tools-udeb/sbin/kexec
+
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installdebconf
+ dh_installexamples
+ dh_installsystemd
+ dh_lintian
+ dh_install
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build build-arch clean binary-indep binary-arch binary install configure
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..077de7d
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,4 @@
+#
+# ### dgit-maint-merge(7) workflow user need this ###
+# single-debian-patch
+# auto-commit
diff --git a/debian/source/patch-header b/debian/source/patch-header
new file mode 100644
index 0000000..6ff0a40
--- /dev/null
+++ b/debian/source/patch-header
@@ -0,0 +1,22 @@
+The automatically generated patch puts this free form text on top of it.
+
+If you are using gbp-buildpackage(1), you probably don't need this file.
+
+If you are using dgit-maint-merge(7), please consider text as follows.
+
+The Debian packaging of foo is maintained in git, using the merging workflow
+described in dgit-maint-merge(7). There isn't a patch queue that can be
+represented as a quilt series.
+
+A detailed breakdown of the changes is available from their canonical
+representation - git commits in the packaging repository. For example, to see
+the changes made by the Debian maintainer in the first upload of upstream
+version 1.2.3, you could use:
+
+ % git clone https://git.dgit.debian.org/foo
+ % cd foo
+ % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
+
+(If you have dgit, use `dgit clone foo`, rather than plain `git clone`.)
+
+A single combined diff, containing all the changes, follows.
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..59d32f0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts=uversionmangle=s/-(rc\d*)$/~$1/ \
+https://kernel.org/pub/linux/utils/kernel/kexec/ \
+(?:|.*/)kexec-tools(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar|tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)