debian/0000775000000000000000000000000012700700776007176 5ustar debian/kexec-tools.postrm0000664000000000000000000000175512675257611012717 0ustar #! /bin/sh # postrm script for kexec-tools # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # 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 debian/kdump.initramfs0000664000000000000000000000323312675257611012243 0ustar #!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac KVER="`uname -r`" CRASHFILE="/var/crash/vmcore" MAKEDUMPFILE="/usr/bin/makedumpfile" LOG="$rootmnt/var/crash/vmcore.log" VMCORE="/proc/vmcore" # Check that this is a kexec kernel. grep -q kdump_needed /proc/cmdline || exit 0 # Do NOT exit the script after this point, or the system will start # booting inside the crash kernel. . ./scripts/functions # Unconditionally mount /dev in the target, in case it's needed. mount -n --bind /dev ${rootmnt}/dev # Check if any additional filesystems need to be mounted in order to run # makedumpfile # We assume that the system rootfs is now mounted on ${rootmnt} for target in /usr /boot /var do # We write to /var; everything else should be mounted ro if [ "$target" = /var ]; then opts= else opts=-oro fi if [ -n "$(awk '$2 == "'$target'" { print $2 }' ${rootmnt}/etc/fstab)" ] then chroot ${rootmnt} mount -n $opts $target mounted="$target $mounted" fi done # Make sure makedumpfile assumptions are satisfied. while ! test -x "$rootmnt/$MAKEDUMPFILE"; do panic "kdump: Missing $rootmnt/$MAKEDUMPFILE" done log_begin_msg "Saving vmcore from kernel crash" mount $rootmnt -o remount,rw mount -n --bind /proc $rootmnt/proc # Delete it if the copy fails, mainly to keep from filling up filesystems # by accident. # chroot $rootmnt $MAKEDUMPFILE -E -d 31 $VMCORE $CRASHFILE > $LOG 2>&1 || \ rm -f $rootmnt/$CRASHFILE chmod 400 $rootmnt/$CRASHFILE # Unmount any extra filesystems we had to mount for target in $mounted; do umount -n ${rootmnt}$target done mount $rootmnt -o remount,ro reboot log_end_msg debian/kexec-tools.config0000664000000000000000000000125212675257611012630 0ustar #!/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 "$LOAD_KEXEC" != "1" -a "$LOAD_KEXEC" != "true" ; then db_set kexec-tools/load_kexec "false" else db_set kexec-tools/load_kexec "true" fi 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 high kexec-tools/load_kexec || true db_input medium kexec-tools/use_grub_config || true db_go debian/kexec-tools.postinst0000664000000000000000000001061212675257611013246 0ustar #! /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: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure) if [ -L /etc/rc6.d/K39kexec-load ]; then # remove this old entry, we'll add correct one below update-rc.d -f kexec-load remove > /dev/null || exit 0 fi ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # 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 # Generate configuration file if it does not exist, using default values. [ -r "${INITCONFFILE}" ] || { echo Generating ${INITCONFFILE}... >&2 cat >${INITCONFFILE} <<'EOFMAGICNUMBER1234' # Defaults for kexec initscript # sourced by /etc/init.d/kexec and /etc/init.d/kexec-load # Load a kexec kernel (true/false) LOAD_KEXEC=false # 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 # 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 # Determine if vmlinux is actually used and adjust INITCONFFILE if [ -f /boot/vmlinux -o -f /vmlinux ]; then sed -e "s/vmlinuz/vmlinux/" -i ${INITCONFFILE} fi # ------------------------- Debconf questions start --------------------- db_get kexec-tools/load_kexec || RET=false new_LOAD_KEXEC="${RET}" update_param LOAD_KEXEC if [ -d /boot/grub ] then db_get kexec-tools/use_grub_config || RET=true 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 --------------------- # no triggers in grub2, # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481542 if [ -x /usr/sbin/update-grub ] && [ -e /boot/grub/grub.cfg ]; then update-grub fi #DEBHELPER# exit 0 debian/kexec-tools.preinst0000664000000000000000000000167412675257611013057 0ustar #!/bin/sh # preinst script for kexec-tools # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install) ;; upgrade) # kexec init script runlevels have been updated for systemd for # kexec-tools 1:2.0.7-2. Remove current init scripts if upgrading if dpkg --compare-versions "$2" lt "1:2.0.7-2"; then update-rc.d kexec remove update-rc.d kexec-load remove fi ;; 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 debian/changelog0000664000000000000000000010635612700700763011057 0ustar kexec-tools (1:2.0.10-1ubuntu2) xenial; urgency=medium * [PowerPC64] Fix failure in purgatory when compiled with gcc5 Application of upstream fixes so kexec-tools work with gcc5 on PowerPC64 commit 4a2ae3a39c64dc43e9d094be9541253234ff4822, 1e423dc297d10eb7ff25c829d2856ef12fc81d77, 3debb8cf3272216119cb2e59a4963ce3c18fe8e3 [lp: #1546260] -- Louis Bouchard Tue, 05 Apr 2016 11:14:18 +0200 kexec-tools (1:2.0.10-1ubuntu1) xenial; urgency=low * Merge from Debian unstable. Remaining changes: - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Use format-security.patch instead of const_string_warning.patch -- Chris J Arges Thu, 03 Dec 2015 14:44: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 Mon, 14 Sep 2015 13:30:53 -0600 kexec-tools (1:2.0.9-1ubuntu1) wily; urgency=medium * Merge from Debian unstable. Remaining changes: - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Use format-security.patch instead of const_string_warning.patch -- Chris J Arges Fri, 26 Jun 2015 15:05:43 -0500 kexec-tools (1:2.0.9-1) unstable; urgency=medium * New upstream release -- Khalid Aziz Mon, 15 Jun 2015 10:38:00 -0600 kexec-tools (1:2.0.7-5.1ubuntu1) wily; urgency=low * Merge from Debian unstable. Remaining changes: - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Use format-security.patch instead of const_string_warning.patch - Patches to enable kexec-tool for ppc64el. -- Chris J Arges Thu, 11 Jun 2015 08:41:28 -0500 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 Wed, 22 Apr 2015 12:04:44 +0200 kexec-tools (1:2.0.7-5ubuntu2) vivid; urgency=medium * Adjust kexec-tools for systems that use vmlinux. (LP: #1416515) -- Chris J Arges Fri, 30 Jan 2015 14:31:10 -0600 kexec-tools (1:2.0.7-5ubuntu1) vivid; urgency=low * Merge from Debian unstable. Remaining changes: - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Use format-security.patch instead of const_string_warning.patch - Patches to enable kexec-tool for ppc64el. -- Chris J Arges Tue, 02 Dec 2014 11:43:21 -0600 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 Mon, 24 Nov 2014 07:35:39 -0700 kexec-tools (1:2.0.7-4ubuntu1) vivid; urgency=low * Merge from Debian unstable. Remaining changes: - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Use format-security.patch instead of const_string_warning.patch - Patches to enable kexec-tool for ppc64el. -- Chris J Arges Tue, 04 Nov 2014 12:51:24 -0600 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 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 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 Wed, 08 Oct 2014 11:01:58 -0600 kexec-tools (1:2.0.7-1ubuntu2) utopic; urgency=medium * The following enable kexec-tools for ppc64el: (LP: #1364427) - kexec-ppc64-disabling-exception-handling-when-buildi.patch - kexec-ppc64-move-to-device-tree-version-17.patch - ppc64-kdump-Fix-ELF-header-endianess.patch -- Chris J Arges Thu, 02 Oct 2014 21:38:53 +0000 kexec-tools (1:2.0.7-1ubuntu1) utopic; urgency=low * Merge from Debian unstable. Remaining changes: - Run aclocal during build; build-dep on automake. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile - Don't call db_stop from the postinst. - Add ppc64el architecture. - Use format-security.patch instead of const_string_warning.patch - Dropped: - kexec-p-fails-to-load-kernels-with-version-x.y.patch - kdump_makefile.patch -- Chris J Arges Thu, 02 Oct 2014 15:06:12 -0500 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 Wed, 09 Jul 2014 10:44:35 -0600 kexec-tools (1:2.0.6-0ubuntu2) trusty; urgency=medium * endianess-initrd.patch: Fix endian issues with initrd base and size. * stack-protection.patch: Disable stack-protector for ppc64/purgatory. -- Adam Conrad Wed, 16 Apr 2014 15:27:06 +0100 kexec-tools (1:2.0.6-0ubuntu1) trusty; urgency=medium * New upstream release 2.0.6 with new ppc64el support (LP: #1300470): - kdump_makefile.patch: Dropped, no longer needed with new version. - kexec-p-fails-to-load-kernels-with-version-x.y.patch: Upstreamed. - format-security.patch: Fixing FTBFS with -Werror=format-security. -- Adam Conrad Mon, 31 Mar 2014 14:26:44 -0600 kexec-tools (1:2.0.4-1ubuntu1) trusty; urgency=low * Merge from Debian unstable (LP: #1271127), remaining changes: - Run aclocal during build; build-dep on automake. - Implementation of kdump-tools is now completed so the following are removed : kdump init script and initramfs snippet Remove dependancy to initramfs-tools and makedumpfile Remove Depend on makedumpfile (on appropriate architectures) - Call to update-grub to update boot args with crashkernel= - Default to not kexecing a kernel on boot in the automatically generated conffile (claimed to be fixed in Debian but isn't). - Don't call db_stop from the postinst. -- Louis Bouchard Tue, 21 Jan 2014 11:29:40 +0100 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 Fri, 08 Nov 2013 16:38:16 -0700 kexec-tools (1:2.0.3-4ubuntu3) trusty; urgency=low * Increase memory parameter crashkernel command line to 128M to avoid OOM kernel panic. (LP: #785394) -- Chris J Arges Wed, 18 Dec 2013 10:54:08 -0600 kexec-tools (1:2.0.3-4ubuntu2) trusty; urgency=low * Add "crashkernel=384M-2G:64M,2G-:128M" to GRUB command line for non-recovery entries. This supersedes an Ubuntu-specific patch previously carried in grub2 itself. -- Colin Watson Tue, 12 Nov 2013 17:03:24 +0000 kexec-tools (1:2.0.3-4ubuntu1) trusty; urgency=low * Merge from Debian unstable, remaining changes: - Run aclocal during build; build-dep on automake. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Also call update-grub after update-initramfs if /boot/grub/grub.cfg exists. - Depend on makedumpfile (on appropriate architectures), for use in the initramfs script. - Default to not kexecing a kernel on boot in the automatically generated conffile (claimed to be fixed in Debian but isn't). - Don't call db_stop from the postinst. -- Steve Langasek Sun, 27 Oct 2013 21:45:21 -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 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 Thu, 25 Jul 2013 13:57:30 -0600 kexec-tools (1:2.0.3-2ubuntu2) saucy; urgency=low * Re-fix to not call db_stop from the postinst. -- Steve Langasek Mon, 06 May 2013 14:12:30 -0700 kexec-tools (1:2.0.3-2ubuntu1) saucy; urgency=low * Merge from Debian unstable, remaining changes: - Run aclocal during build; build-dep on automake. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call update-initramfs. - Also call update-grub after update-initramfs if /boot/grub/grub.cfg exists. - Depend on makedumpfile (on appropriate architectures), for use in the initramfs script. - Default to not kexecing a kernel on boot in the automatically generated conffile (claimed to be fixed in Debian but isn't). * Dropped changes: - restore debian/README.debian, dropped accidentally - debian/patches/ubuntu-ppc-__lshrdi3-ftbs.patch: no longer needed to fix FTBFS on powerpc. -- Steve Langasek Thu, 02 May 2013 18:05:05 -0700 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 Sun, 13 Jan 2013 19:39:31 -0700 kexec-tools (1:2.0.3-1ubuntu2) quantal; urgency=low [ Louis Bouchard ] * Removed dependency to vmcoreinfo which is no longer required and no longer part of the kernel package. LP: #988512. -- Steve Langasek Tue, 14 Aug 2012 12:48:22 -0700 kexec-tools (1:2.0.3-1ubuntu1) quantal; urgency=low * Merge from Debian (LP: #1020965); remaining changes: - Fix FTBFS on powerpc due to duplicate defnition of __lshrdi3. - Only run update-grub if /boot/grub/grub.cfg exists, fixing installation in chroots. - Run aclocal during build; build-dep on automake1.9. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call the update-initramfs trigger. Also call update-grub after update-initramfs trigger. - Default to not kexecing a kernel on boot in the automatically generated conffile. - Only install the kdump initramfs script and depend on makedumpfile on architectures that makedumpfile supports. -- Stefan Bader Tue, 17 Jul 2012 10:50:17 +0200 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 Tue, 31 Jan 2012 09:11:31 -0700 kexec-tools (1:2.0.2-3ubuntu4) precise; urgency=low * Build kexec-tools-udeb for armhf as well. -- Colin Watson Sat, 21 Apr 2012 01:07:21 +0100 kexec-tools (1:2.0.2-3ubuntu3) precise; urgency=low * Fix an unnecessary bashism. * Only install the kdump initramfs script and depend on makedumpfile on architectures that makedumpfile supports. -- Colin Watson Tue, 03 Jan 2012 10:24:16 +0000 kexec-tools (1:2.0.2-3ubuntu2) precise; urgency=low * debian/kdump.initramfs: call /usr/bin/makedumpfile via a chroot command, so that if makedumpfile is dynamically linked, we get proper library resolution. Thanks to Louis Bouchard for the patch. LP: #785425. * debian/kdump.initramfs: handle the possibility that /usr, /boot, or /var is on a separate filesystem and needs to be manually mounted before calling makedumpfile. LP: #828731. * Depend on makedumpfile, without which the initramfs script doesn't work. -- Steve Langasek Mon, 02 Jan 2012 22:43:33 -0800 kexec-tools (1:2.0.2-3ubuntu1) precise; urgency=low * Merge with Debian; remaining changes: - Fix FTBFS on powerpc due to duplicate defnition of __lshrdi3. - Only run update-grub if /boot/grub/grub.cfg exists, fixing installation in chroots. - Run aclocal during build; build-dep on automake1.9. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call the update-initramfs trigger. Also call update-grub after update-initramfs trigger. - Default to not kexecing a kernel on boot in the automatically generated conffile. * Build for armhf. -- Matthias Klose Mon, 05 Dec 2011 15:45:25 +0100 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 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 Sun, 31 Jul 2011 14:30:31 -0600 kexec-tools (1:2.0.2-1ubuntu3) oneiric; urgency=low * Only run update-grub if /boot/grub/grub.cfg exists, fixing installation in chroots (LP: #401405). -- Colin Watson Tue, 30 Aug 2011 13:30:21 +0100 kexec-tools (1:2.0.2-1ubuntu2) oneiric; urgency=low * Fix FTBS on powerpc due to duplicate defnition of __lshrdi3 -- Andy Whitcroft Wed, 15 Jun 2011 15:11:54 +0100 kexec-tools (1:2.0.2-1ubuntu1) oneiric; urgency=low * Merge with Debian. - Drop DEBIAN.readme taking debian upstream version - Drop ubuntu patch arm-higher-initrd-load-addr dpatch as initrd locations are now calculated from the current size assuming maximum compression of * 4. - Remaining changes: + Run aclocal during build; build-dep on automake1.9. + Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call the update-initramfs trigger. Also call update-grub after update-initramfs trigger. + Default to not kexecing a kernel on boot in the automatically generated conffile. + --no-undefined is a linker option, not a gcc option. -- Andy Whitcroft Mon, 23 May 2011 11:23:37 +0100 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 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 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 Mon, 09 Aug 2010 14:41:14 -0600 kexec-tools (1:2.0.1-2ubuntu4) natty; urgency=low * --no-undefined is a linker option, not a gcc option. -- Matthias Klose Wed, 19 Jan 2011 05:30:44 +0100 kexec-tools (1:2.0.1-2ubuntu3) natty; urgency=low * No change rebuild, LP: #642071 -- Jonathan Riddell Tue, 23 Nov 2010 02:10:41 +0000 kexec-tools (1:2.0.1-2ubuntu2) maverick; urgency=low * kdump.initramfs: panic if assumptions are not satisfied, instead of letting the system continue to boot inside the crash kernel. (LP: #600051) -- Anders Kaseorg Tue, 17 Aug 2010 02:18:48 +0200 kexec-tools (1:2.0.1-2ubuntu1) maverick; urgency=low * Drop debian/commit-templates/patch, unused. * Drop upgrade snippet for versions older than the lucid one. * Merge with Debian. - Drop dpatch arm-fix-architecture-detection, included in Debian as arm_arch dpatch. - Remaining changes: + Run aclocal during build; build-dep on automake1.9. + Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call the update-initramfs trigger. Also call update-grub after update-initramfs trigger. + Default to not kexecing a kernel on boot in the automatically generated conffile. + Add arm-higher-initrd-load-addr dpatch to bump initrd load offset from 0x800000 to 0x8000000 since our kernels are so big that they overwrite the initrd when they uncompress; fixes kexec initrd support on all ARM Ubuntu kernels; LP #568283. -- Loïc Minier Sat, 22 May 2010 22:13:09 +0200 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 Thu, 22 Apr 2010 16:03:31 -0600 kexec-tools (1:2.0.1-1ubuntu3) lucid; urgency=low * New dpatch, arm-higher-initrd-load-addr, bump initrd load offset from 0x800000 to 0x8000000 since our kernels are so big that they overwrite the initrd when they uncompress; fixes kexec initrd support on all ARM Ubuntu kernels; LP: #568283. -- Loïc Minier Thu, 22 Apr 2010 14:06:08 +0200 kexec-tools (1:2.0.1-1ubuntu2) lucid; urgency=low * Don't call db_stop in the postinst; this is not what it's for, and it causes update-grub to break on Ubuntu by killing the frontend that child processes expect to talk to. LP: #518853. -- Steve Langasek Wed, 17 Feb 2010 23:04:30 -0800 kexec-tools (1:2.0.1-1ubuntu1) lucid; urgency=low * Merge from Debian; replace arm-getpagesize-unistd and configure_syntax dpatches to use their Debian equivalents; remaining changes: - Run aclocal; build-dep on automake1.9. - Add and install kdump init script and initramfs snippet; depend on initramfs-tools and call the update-initramfs trigger. Also call update-grup after update-initramfs trigger. - Default to not kexecing a kernel on boot in the automatically generated conffile; also disable this on upgrades from older versions. - Fix architecture detection on ARM, cherry-picked from upstream. * Build-dep on automake instead of automake1.9. -- Loïc Minier Mon, 08 Feb 2010 10:53:24 +0100 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 Tue, 24 Nov 2009 08:55:05 -0700 kexec-tools (1:2.0.1-0ubuntu4) lucid; urgency=low * New dpatch, arm-getpagesize-unistd, cherry pick from upstream "arm: Include unistd.h for getpagesize()" c986de289120d449bf4d94c46c676566ccfd4202 to fix build issue on armel breaking the binaries. -- Loïc Minier Sun, 07 Feb 2010 22:16:39 +0100 kexec-tools (1:2.0.1-0ubuntu3) lucid; urgency=low * New dpatch, arm-fix-architecture-detection, cherry-pick second hunk of upstream commit "arm: fix architecture detection" 5545216da4360d6494cc7ba574e04620a826a332. Fixes support for arm* utsnames in particular armv7l. -- Loïc Minier Sun, 07 Feb 2010 21:52:30 +0100 kexec-tools (1:2.0.1-0ubuntu2) lucid; urgency=low * Re-add automake1.9 build-dep since we still patch configure.ac and this triggers an autoreconf. (Upstream doesn't use AM_MAINTAINER_MODE.) -- Loïc Minier Sun, 07 Feb 2010 21:25:19 +0100 kexec-tools (1:2.0.1-0ubuntu1) lucid; urgency=low * New upstream release. - Switch to non-native packaging and upstream tarball; drop automake1.9 build-dep. NB: This is the Debian tarball which has been repacked by the Debian maintainer, but the contents are identical to the upstream tarball. Picking the Debian tarball should make it easier to resync with Debian if we stick with 2.0.1 for a while. - Drop arm_build dpatch, fixed differently upstream. -- Loïc Minier Sun, 07 Feb 2010 20:39:48 +0100 kexec-tools (1:2.0.0-2) unstable; urgency=low * Fixed configure script failure (closes: Bug#543081) * Added debian/README.source -- Khalid Aziz 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 Wed, 15 Apr 2009 16:41:45 -0600 kexec-tools (20090000-2.0.0ubuntu12) karmic; urgency=low * debian/patches/configure_syntax.dpatch: Put semicolons before 'fi', or else configure breaks. -- Colin Watson Wed, 07 Oct 2009 00:15:18 +0100 kexec-tools (20090000-2.0.0ubuntu11) karmic; urgency=low * Don't call db_stop in postinst as update-grub calls into debconf; thanks Colin Watson; LP: #400397. -- Loïc Minier Thu, 16 Jul 2009 23:05:51 +0200 kexec-tools (20090000-2.0.0ubuntu10) karmic; urgency=low * debian/kexec-tools.postinst: - run update-grub explicitely instead of using the trigger, grub2 does not have one (see debian #481542) -- Michael Vogt Thu, 16 Jul 2009 10:42:03 +0200 kexec-tools (20090000-2.0.0ubuntu9) karmic; urgency=low * debian/kdump.init.d: - generate crash file from vmcore on first boot automatically -- Michael Vogt Tue, 23 Jun 2009 10:59:14 +0200 kexec-tools (20090000-2.0.0ubuntu8) karmic; urgency=low * debian/kdump.initramfs: - use ELF format for the vmcore file. "crash" did not produce a backtrace with the kdump-compressed format -- Michael Vogt Mon, 22 Jun 2009 17:23:45 +0200 kexec-tools (20090000-2.0.0ubuntu7) karmic; urgency=low * debian/kdump.initramfs: - dump the kernel crash info to /var/crash/vmcore-$KVER -- Michael Vogt Mon, 22 Jun 2009 15:42:24 +0200 kexec-tools (20090000-2.0.0ubuntu6) karmic; urgency=low * debian/kexec-tools.template - set "kexec-tools/load_kexec" to "false" by default * debian/kexec-tools.postinst: - trigger update-grub and update-initramfstools to ensure the kdump functionality is availabe on next reboot -- Michael Vogt Mon, 22 Jun 2009 14:40:18 +0200 kexec-tools (20090000-2.0.0ubuntu5) karmic; urgency=low * debian policy forbids dpkg conffile handling and maintainer script configuration in the same package as this leads to inconsistant behaviour between apt-get install and dpkg -i installs of the same package. Switch wholy to the maintainer script. LP: #368745 * kexec reboot has been enabled by default whereas it should have been opt-in, it is therefore appropriate to force this off for upgrades from older versions. LP: #251242 -- Andy Whitcroft Tue, 28 Apr 2009 19:21:30 +0100 kexec-tools (20090000-2.0.0ubuntu4) karmic; urgency=low * kexec based reboot triggers a number of semantic changes which are visible to the user, it should be opt-in by default. Adjust kexec.default to disable kexec by default. LP: #251242 -- Andy Whitcroft Mon, 27 Apr 2009 10:32:46 +0100 kexec-tools (20090000-2.0.0ubuntu3) jaunty; urgency=low * Somehow lost the installation of /etc/init.d/kdump, without which nothing really works -- Tim Gardner Wed, 25 Mar 2009 19:59:28 +0000 kexec-tools (20090000-2.0.0ubuntu2) jaunty; urgency=low * Install 0_kdump into initramfs scripts * Depend on initramfs-tools -- Tim Gardner Wed, 04 Mar 2009 19:08:15 +0000 kexec-tools (20090000-2.0.0ubuntu1) jaunty; urgency=low [ Tim Gardner ] * Updated to kexec-tools v2.0.0 from kexec-20080324-2.1 at git://git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools.git. Update steps: Removed debian/patches/update_kexec_manpage.dpatch Updated debian/patches/distclean_fix.dpatch Removed obsolete debian/patches/powerpc_fix.dpatch debian/rules: Run aclocal, autoheader, and autoconf if configure does not exist. Try to forget 20080226-2.0.0-ubuntu1 ever existed. This version was updated directly from 20080324-2.1 and completely obsoletes 20080226-2.0.0-ubuntu1. [ Jim Lieb ] * Fix rules to handle updated package makefile+autotools package build now depends on autotools1.9 -- Tim Gardner Tue, 03 Mar 2009 20:22:14 +0000 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 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 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 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 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 Thu, 28 Feb 2008 14:19:40 -0700 kexec-tools (20080226-2.0.0-ubuntu1) jaunty; urgency=low [ Jim Lieb ] * Update to 2.0.0 official release to include later kernels and fixes for x86_64 etc. Drop all patches except debianize which is reworked to contain all of the debian packaging specifics. * Fix rules to handle updated package makefile+autotools package build now depends on autotools1.9 * Update copyright and other bits that lintian complains about [ Tim Gardner ] * Messed with debian/rules to make it a bit more sane in its use of dpatch. * Add rsync as a build dependency. * Fixed some path issues in debian/kdump.initramfs. makedumpfile seems to have changed locations. -- Tim Gardner Thu, 19 Feb 2009 10:56:59 -0800 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 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 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 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 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 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 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 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 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 Fri, 09 Sep 2005 14:06:19 -0600 debian/copyright0000664000000000000000000000222712675257611011142 0ustar This package was debianized by Khalid Aziz on Wed, 27 Jul 2005 10:55:17 -0600. It was originally downloaded from: http://www.xmission.com/~ebiederm/files/kexec/ Versions 20070330 and newer were downloaded from: http://kernel.org/pub/linux/utils/kernel/kexec/ Copyright: 2003-2012 Various Upstream Authors: Eric Biederman Albert Herranz Jesse Barnes Khalid Aziz Hariprasad Nellitheertha Tim Deegan And others... Currently maintained by P: Simon Horman M: horms@verge.net.au L: kexec@lists.infradead.org License: 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. Full text of the license can be found under /usr/share/common-licenses/GPL-2 debian/source/0000775000000000000000000000000012675257611010504 5ustar debian/source/format0000664000000000000000000000001412675257611011712 0ustar 3.0 (quilt) debian/source/lintian-overrides0000664000000000000000000000072512675257611014071 0ustar # Upstream uses rather old config files. We just have to tolerate it # until upstream updates it kexec-tools source: outdated-autotools-helper-file config/config.sub 2004-06-24 kexec-tools source: outdated-autotools-helper-file config/config.guess 2004-08-13 # Upstream configure script updates timestamp in include/config.h which causes # a diff to be included in the diff file. Ignore this kexec-tools source: patch-system-but-direct-changes-in-diff include/config.h debian/README.debian0000664000000000000000000000122712675257611011307 0ustar This kexec-tools package was built from kexec-tools git repository at . 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. debian/kexec-tools.grub0000664000000000000000000000012012675257611012313 0ustar GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT crashkernel=384M-:128M" debian/kexec-tools.templates0000664000000000000000000000160712675257611013365 0ustar # 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/load_kexec Type: boolean Default: false _Description: Should kexec-tools handle reboots? 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. 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. debian/watch0000664000000000000000000000016512675257611010237 0ustar version=3 http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-(.*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) debian/patches/0000775000000000000000000000000012675257611010633 5ustar debian/patches/static_binary_warning.patch0000664000000000000000000000124412675257611016235 0ustar 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 debian/patches/format-security.patch0000664000000000000000000000362412675257611015016 0ustar Description: Fix FTBFS with -Werror=format-security Author: Adam Conrad Index: kexec-tools-2.0.6/kexec/arch/i386/kexec-elf-x86.c =================================================================== --- kexec-tools-2.0.6.orig/kexec/arch/i386/kexec-elf-x86.c 2013-11-18 18:06:56.000000000 -0700 +++ kexec-tools-2.0.6/kexec/arch/i386/kexec-elf-x86.c 2014-03-31 15:37:50.000000000 -0600 @@ -299,6 +299,6 @@ free(command_line); free(modified_cmdline); if (error_msg) - die(error_msg); + die("%s", error_msg); return result; } Index: kexec-tools-2.0.6/kexec/arch/x86_64/kexec-elf-x86_64.c =================================================================== --- kexec-tools-2.0.6.orig/kexec/arch/x86_64/kexec-elf-x86_64.c 2013-11-18 18:06:56.000000000 -0700 +++ kexec-tools-2.0.6/kexec/arch/x86_64/kexec-elf-x86_64.c 2014-03-31 15:38:37.425630613 -0600 @@ -276,6 +276,6 @@ free(command_line); free(modified_cmdline); if (error_msg) - die(error_msg); + die("%s", error_msg); return result; } Index: kexec-tools-2.0.6/kexec/arch/ppc/kexec-elf-ppc.c =================================================================== --- kexec-tools-2.0.6.orig/kexec/arch/ppc/kexec-elf-ppc.c 2013-11-18 18:06:56.000000000 -0700 +++ kexec-tools-2.0.6/kexec/arch/ppc/kexec-elf-ppc.c 2014-03-31 15:41:20.749624836 -0600 @@ -453,7 +453,7 @@ if (!tmp_cmdline) free(command_line); if (error_msg) - die(error_msg); + die("%s", error_msg); return result; } Index: kexec-tools-2.0.6/kexec/arch/ppc/kexec-uImage-ppc.c =================================================================== --- kexec-tools-2.0.6.orig/kexec/arch/ppc/kexec-uImage-ppc.c 2013-11-18 18:06:56.000000000 -0700 +++ kexec-tools-2.0.6/kexec/arch/ppc/kexec-uImage-ppc.c 2014-03-31 15:41:45.053623977 -0600 @@ -306,7 +306,7 @@ if (!tmp_cmdline) free(command_line); if (error_msg) - die(error_msg); + die("%s", error_msg); return ret; } debian/patches/linker-option.patch0000664000000000000000000000073412675257611014452 0ustar --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -67,7 +67,7 @@ $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATOR $(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:: debian/patches/const_string_warning.patch0000664000000000000000000001161612675257611016122 0ustar --- a/kexec/arch/i386/kexec-elf-x86.c +++ b/kexec/arch/i386/kexec-elf-x86.c @@ -91,7 +91,7 @@ int elf_x86_load(int argc, char **argv, char *command_line = NULL, *modified_cmdline = NULL; const char *append = NULL; char *tmp_cmdline = NULL; - char *error_msg = NULL; + int error_code = 0; int result; int command_line_len; const char *ramdisk; @@ -218,7 +218,7 @@ int elf_x86_load(int argc, char **argv, elf_rel_set_symbol(&info->rhdr, "entry32_regs", ®s, sizeof(regs)); if (ramdisk) { - error_msg = "Ramdisks not supported with generic elf arguments"; + error_code = 1; goto out; } } @@ -289,13 +289,20 @@ int elf_x86_load(int argc, char **argv, elf_rel_set_symbol(&info->rhdr, "entry32_regs", ®s, sizeof(regs)); } else { - error_msg = "Unknown argument style\n"; + error_code = 2; } out: free(command_line); free(modified_cmdline); - if (error_msg) - die(error_msg); + switch (error_code) { + case 1: + die("Ramdisks not supported with generic elf arguments"); + case 2: + die("Unknown argument style\n"); + + default: + break; + } return result; } --- a/kexec/arch/x86_64/kexec-elf-x86_64.c +++ b/kexec/arch/x86_64/kexec-elf-x86_64.c @@ -99,7 +99,7 @@ int elf_x86_64_load(int argc, char **arg #define ARG_STYLE_NONE 2 int opt; int result = 0; - char *error_msg = NULL; + int error_code = 0; /* See options.h and add any new options there too! */ static const struct option options[] = { @@ -207,7 +207,7 @@ int elf_x86_64_load(int argc, char **arg elf_rel_set_symbol(&info->rhdr, "entry64_regs", ®s, sizeof(regs)); if (ramdisk) { - error_msg = "Ramdisks not supported with generic elf arguments"; + error_code = 1; goto out; } } @@ -269,13 +269,21 @@ int elf_x86_64_load(int argc, char **arg elf_rel_set_symbol(&info->rhdr, "entry64_regs", ®s, sizeof(regs)); } else { - error_msg = "Unknown argument style\n"; + error_code = 2; } out: free(command_line); free(modified_cmdline); - if (error_msg) - die(error_msg); + switch (error_code) { + case 1: + die("Ramdisks not supported with generic elf arguments"); + + case 2: + die("Unknown argument style\n"); + + default: + break; + } return result; } --- a/kexec/arch/ppc/kexec-elf-ppc.c +++ b/kexec/arch/ppc/kexec-elf-ppc.c @@ -160,7 +160,7 @@ int elf_ppc_load(int argc, char **argv, int command_line_len, crash_cmdline_len; char *dtb; int result; - char *error_msg; + int error_code = 0; unsigned long max_addr, hole_addr; struct mem_phdr *phdr; size_t size; @@ -199,7 +199,6 @@ int elf_ppc_load(int argc, char **argv, kernel_addr = 0; ramdisk = 0; result = 0; - error_msg = NULL; while ((opt = getopt_long(argc, argv, short_options, options, 0)) != -1) { switch (opt) { @@ -360,7 +359,7 @@ int elf_ppc_load(int argc, char **argv, (unsigned long *)&blob_size, cmdline_buf); } if (!blob_buf || !blob_size) { - error_msg = "Device tree seems to be an empty file.\n"; + error_code = 1; goto out2; } @@ -397,7 +396,7 @@ int elf_ppc_load(int argc, char **argv, dtb_addr_actual = add_buffer(info, blob_buf, blob_size, blob_size, 0, dtb_addr, kernel_addr + KERNEL_ACCESS_TOP, 1); if (dtb_addr_actual != dtb_addr) { - error_msg = "Error device tree not loadded to address it was expecting to be loaded too!\n"; + error_code = 2; goto out2; } @@ -452,8 +451,14 @@ out: free(crash_cmdline); if (!tmp_cmdline) free(command_line); - if (error_msg) - die(error_msg); + switch (error_code) { + case 1: + die("Device tree seems to be an empty file.\n"); + case 2: + die("Error device tree not loadded to address it was expecting to be loaded too!\n"); + default: + break; + } return result; } --- a/kexec/arch/ppc/kexec-uImage-ppc.c +++ b/kexec/arch/ppc/kexec-uImage-ppc.c @@ -103,7 +103,7 @@ static int ppc_load_bare_bits(int argc, unsigned long max_addr; char *blob_buf = NULL; off_t blob_size = 0; - char *error_msg = NULL; + int error_code = 0; cmdline_buf = NULL; command_line = NULL; @@ -223,7 +223,7 @@ static int ppc_load_bare_bits(int argc, (unsigned long *)&blob_size, cmdline_buf); } if (!blob_buf || !blob_size) { - error_msg = "Device tree seems to be an empty file.\n"; + error_code = 1; goto out2; } @@ -261,7 +261,7 @@ static int ppc_load_bare_bits(int argc, load_addr + KERNEL_ACCESS_TOP, 1); if (dtb_addr_actual != dtb_addr) { printf("dtb_addr_actual: %lx, dtb_addr: %lx\n", dtb_addr_actual, dtb_addr); - error_msg = "Error device tree not loadded to address it was expecting to be loaded too!\n"; + error_code = 2; goto out2; } @@ -305,8 +305,15 @@ out: free(crash_cmdline); if (!tmp_cmdline) free(command_line); - if (error_msg) - die(error_msg); + switch (error_code) { + case 1: + die("Device tree seems to be an empty file.\n"); + case 2: + die("Error device tree not loadded to address it was expecting to be loaded too!\n"); + default: + break; + } + return ret; } debian/patches/add_debian_readme.patch0000664000000000000000000000162312675257611015225 0ustar Index: kexec-tools-2.0.3/README.debian =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ kexec-tools-2.0.3/README.debian 2012-01-31 08:51:26.379799691 -0700 @@ -0,0 +1,11 @@ +This kexec-tools package was built from kexec-tools git repository at +. + +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. debian/patches/series0000664000000000000000000000042512675257611012051 0ustar debianize.patch static_binary_warning.patch distclean_fix.patch add_debian_readme.patch coldreboot.patch linker-option.patch # const_string_warning.patch - use format-security.patch instead powerpcspe_support.patch format-security.patch lp1546260-fix-purgatory-fail-gcc5.patch debian/patches/powerpcspe_support.patch0000664000000000000000000000037712675257611015646 0ustar --- 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 */ debian/patches/coldreboot.patch0000664000000000000000000000436612675257611014021 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -178,11 +178,13 @@ PSRCS:=$(foreach s, $(SRCS), $(PACKAGE_N PGSRCS:=$(foreach s, $(GENERATED_SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s)) MAN_PAGES:=$(KEXEC_MANPAGE) $(KDUMP_MANPAGE) $(VMCORE_DMESG_MANPAGE) +MAN_PAGES+= $(MANDIR)/man8/coldreboot.8 BINARIES_i386:=$(KEXEC_TEST) BINARIES_x86_64:=$(KEXEC_TEST) BINARIES:=$(KEXEC) $(KDUMP) $(VMCORE_DMESG) $(BINARIES_$(ARCH)) +SCRIPTS:=$(SBINDIR)/coldreboot -TARGETS:=$(BINARIES) $(MAN_PAGES) +TARGETS:=$(BINARIES) $(MAN_PAGES) $(SCRIPTS) targets: $(TARGETS) --- a/kexec/Makefile +++ b/kexec/Makefile @@ -92,6 +92,8 @@ clean += $(KEXEC_OBJS) $(KEXEC_DEPS) $(K KEXEC = $(SBINDIR)/kexec KEXEC_MANPAGE = $(MANDIR)/man8/kexec.8 +KEXEC_COLDREBOOT=$(SBINDIR)/coldreboot +KEXEC_COLDREBOOT_MANPAGE=$(MANDIR)/man8/coldreboot.8 -include $(KEXEC_DEPS) @@ -106,6 +108,16 @@ kexec/fs2dt.o: CPPFLAGS+=$($(ARCH)_FS2DT $(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=/tmp/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. debian/patches/debianize.patch0000664000000000000000000000047412675257611013613 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -91,7 +91,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 debian/patches/lp1546260-fix-purgatory-fail-gcc5.patch0000664000000000000000000002100712675257611017405 0ustar Description: [PowerPC64] Fix failure in purgatory when compiled with gcc5 Application of upstream fixes so kexec-tools work with gcc5 on PowerPC64 commit 4a2ae3a39c64dc43e9d094be9541253234ff4822 Pass struct mem_sym into machine_apply_elf_rel() On PowerPC64 ABIv2 we need to look at the symbol to determine if it has a local entry point. Pass struct mem_sym into machine_apply_elf_rel() so we can. commit 1e423dc297d10eb7ff25c829d2856ef12fc81d77 ppc64: purgatory: Handle local symbols in ELF ABIv2 The PowerPC64 ELF ABIv2 has the concept of global and local symbols and information on this is encoded in sym->st_other. When doing a R_PPC64_REL24 branch we want to hit the local entry point, so adjust it as necessary. commit 3debb8cf3272216119cb2e59a4963ce3c18fe8e3 Properly align powerpc64 .toc gcc leaves .toc byte aligned, relying on the linker to align the section. * kexec/arch/ppc64/kexec-elf-rel-ppc64.c (machine_verify_elf_rel): Fudge alignment of .toc section. Author: Anton Blanchard , Alan Modra Origin: Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/1546260 --- a/kexec/arch/arm/kexec-elf-rel-arm.c +++ b/kexec/arch/arm/kexec-elf-rel-arm.c @@ -18,8 +18,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { switch(r_type) { case R_ARM_ABS32: --- a/kexec/arch/cris/kexec-elf-rel-cris.c +++ b/kexec/arch/cris/kexec-elf-rel-cris.c @@ -29,8 +29,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { switch(r_type) { --- a/kexec/arch/i386/kexec-elf-rel-x86.c +++ b/kexec/arch/i386/kexec-elf-rel-x86.c @@ -18,8 +18,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { switch(r_type) { case R_386_32: --- a/kexec/arch/ia64/kexec-elf-rel-ia64.c +++ b/kexec/arch/ia64/kexec-elf-rel-ia64.c @@ -72,8 +72,9 @@ return insn & ~0xfUL; } -void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { uint64_t gp_value = ehdr->rel_addr + 0x200000; switch(r_type) { --- a/kexec/arch/m68k/kexec-elf-rel-m68k.c +++ b/kexec/arch/m68k/kexec-elf-rel-m68k.c @@ -23,7 +23,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), + unsigned long r_type, void *UNUSED(location), unsigned long UNUSED(address), unsigned long UNUSED(value)) --- a/kexec/arch/mips/kexec-elf-rel-mips.c +++ b/kexec/arch/mips/kexec-elf-rel-mips.c @@ -29,7 +29,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), + unsigned long r_type, void *UNUSED(location), unsigned long UNUSED(address), unsigned long UNUSED(value)) --- a/kexec/arch/ppc64/kexec-elf-rel-ppc64.c +++ b/kexec/arch/ppc64/kexec-elf-rel-ppc64.c @@ -5,17 +5,23 @@ #include "../../kexec-elf.h" #include "kexec-ppc64.h" -int machine_verify_elf_rel(struct mem_ehdr *ehdr) -{ - if (ehdr->ei_class != ELFCLASS64) { - return 0; - } - if (ehdr->e_machine != EM_PPC64) { - return 0; - } +#if defined(_CALL_ELF) && _CALL_ELF == 2 +#define STO_PPC64_LOCAL_BIT 5 +#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT) +#define PPC64_LOCAL_ENTRY_OFFSET(other) \ + (((1 << (((other) & STO_PPC64_LOCAL_MASK) >> STO_PPC64_LOCAL_BIT)) >> 2) << 2) - return 1; +static unsigned int local_entry_offset(struct mem_sym *sym) +{ + /* If this symbol has a local entry point, use it. */ + return PPC64_LOCAL_ENTRY_OFFSET(sym->st_other); } +#else +static unsigned int local_entry_offset(struct mem_sym *UNUSED(sym)) +{ + return 0; +} +#endif static struct mem_shdr *toc_section(const struct mem_ehdr *ehdr) { @@ -34,6 +40,24 @@ return NULL; } +int machine_verify_elf_rel(struct mem_ehdr *ehdr) +{ + struct mem_shdr *toc; + + if (ehdr->ei_class != ELFCLASS64) { + return 0; + } + if (ehdr->e_machine != EM_PPC64) { + return 0; + } + + /* Ensure .toc is sufficiently aligned. */ + toc = toc_section(ehdr); + if (toc && toc->sh_addralign < 256) + toc->sh_addralign = 256; + return 1; +} + /* r2 is the TOC pointer: it actually points 0x8000 into the TOC (this gives the value maximum span in an instruction which uses a signed offset) */ @@ -63,8 +87,9 @@ *location = (*location & ~mask) | (value & mask); } -void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *ehdr, struct mem_sym *sym, + unsigned long r_type, void *location, unsigned long address, + unsigned long value) { switch(r_type) { case R_PPC64_ADDR32: @@ -113,6 +138,7 @@ break; case R_PPC64_REL24: + value += local_entry_offset(sym); /* Convert value to relative */ value -= address; if (value + 0x2000000 > 0x3ffffff || (value & 3) != 0) { --- a/kexec/arch/ppc/kexec-elf-rel-ppc.c +++ b/kexec/arch/ppc/kexec-elf-rel-ppc.c @@ -17,8 +17,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { switch(r_type) { case R_PPC_ADDR32: --- a/kexec/arch/s390/kexec-elf-rel-s390.c +++ b/kexec/arch/s390/kexec-elf-rel-s390.c @@ -23,7 +23,8 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *ehdr, +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *loc, unsigned long address, --- a/kexec/arch/sh/kexec-elf-rel-sh.c +++ b/kexec/arch/sh/kexec-elf-rel-sh.c @@ -28,8 +28,9 @@ return 1; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, - void *orig_loc, unsigned long UNUSED(address), unsigned long relocation) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *orig_loc, + unsigned long UNUSED(address), unsigned long relocation) { uint32_t *location = orig_loc; uint32_t value; --- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c +++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c @@ -57,8 +57,9 @@ return name; } -void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type, - void *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { dbgprintf("%s\n", reloc_name(r_type)); switch(r_type) { --- a/kexec/kexec-elf.h +++ b/kexec/kexec-elf.h @@ -129,7 +129,8 @@ /* Architecture specific helper functions */ extern int machine_verify_elf_rel(struct mem_ehdr *ehdr); -extern void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type, - void *location, unsigned long address, unsigned long value); +extern void machine_apply_elf_rel(struct mem_ehdr *ehdr, struct mem_sym *sym, + unsigned long r_type, void *location, unsigned long address, + unsigned long value); #endif /* KEXEC_ELF_H */ --- a/kexec/kexec-elf-rel.c +++ b/kexec/kexec-elf-rel.c @@ -408,7 +408,7 @@ dbgprintf("sym: %s value: %lx addr: %lx\n", name, value, address); - machine_apply_elf_rel(ehdr, rel.r_type, + machine_apply_elf_rel(ehdr, &sym, rel.r_type, (void *)location, address, value); } } debian/patches/distclean_fix.patch0000664000000000000000000000141412675257611014470 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -231,7 +231,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 --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -33,7 +33,7 @@ PURGATORY_SRCS+=$($(ARCH)_PURGATORY_SRCS PURGATORY_OBJS = $(call objify, $(PURGATORY_SRCS)) purgatory/sha256.o PURGATORY_DEPS = $(call depify, $(PURGATORY_OBJS)) -clean += $(PURGATORY_OBJS) $(PURGATORY_DEPS) $(PURGATORY) +clean += $(PURGATORY_OBJS) $(PURGATORY_DEPS) $(PURGATORY) purgatory/purgatory.ro.sym $(PURGATORY_MAP) -include $(PURGATORY_DEPS) debian/kexec.init.d0000664000000000000000000000151412675257611011413 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kexec # Required-Start: # Required-Stop: reboot # X-Stop-After: umountroot # Default-Start: 2 3 4 5 # Default-Stop: 6 # Short-Description: Execute the kexec -e command to reboot system # Description: ### END INIT INFO PATH=/sbin:/bin . /lib/lsb/init-functions test -r /etc/default/kexec && . /etc/default/kexec do_stop () { test "x`cat /sys/kernel/kexec_loaded`y" = "x1y" || exit 0 test -x /sbin/kexec || exit 0 log_action_msg "Will now restart with kexec" # Clear the screen if possible printf "\033[;H\033[2J" /sbin/kexec -e log_failure_msg "kexec failed" } case "$1" in start) # No-op ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac exit 0 debian/control0000664000000000000000000000202112675257611010602 0ustar Source: kexec-tools Section: admin Homepage: http://kernel.org/pub/linux/utils/kernel/kexec/ Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Khalid Aziz Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, gnu-efi (>=3.0a-4)[ia64], libz-dev[ia64], po-debconf Standards-Version: 3.9.6 Package: kexec-tools Architecture: i386 amd64 ppc64el ppc64 powerpc powerpcspe ia64 s390x arm armel armhf sh4 mips mipsel Depends: ${shlibs:Depends}, ${misc:Depends}, debconf 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: i386 amd64 ppc64el ppc64 powerpc powerpcspe ia64 s390x arm armel armhf sh4 mips mipsel XC-Package-Type: udeb Depends: ${misc:Depends}, ${shlibs:Depends} Description: tools to support fast kexec reboots (udeb) debian/kexec-tools.lintian-overrides0000664000000000000000000000056012675257611015022 0ustar # kexec-tools init scripts need special handling because they alter how system # reboots and general rule os special handling required at startup for # init scripts that require special handling at shutdown, does not apply kexec-tools: init.d-script-possible-missing-stop etc/init.d/kexec 0 1 kexec-tools: init.d-script-possible-missing-stop etc/init.d/kexec-load 0 1 debian/rules0000775000000000000000000000544112675257611010270 0ustar #!/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. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) endif CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. dh_autoreconf CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" ./configure --prefix=/usr --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 # Add here commands to compile the package. $(MAKE) $(NJOBS) touch build-stamp clean: tidy tidy: configure-stamp dh_testdir dh_testroot rm -f build-stamp configure-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 # Add here commands to install the package into debian/tmp. $(MAKE) install DESTDIR=$(CURDIR)/debian/kexec-tools ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64 powerpc ppc64 ppc64el ia64)) install -m644 debian/kexec-tools.grub \ debian/kexec-tools/etc/default/grub.d/kexec-tools.cfg endif 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 # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installdebconf dh_installinit -r --name=kexec dh_installinit -r --name=kexec-load dh_installexamples 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 clean binary-indep binary-arch binary install configure debian/docs0000664000000000000000000000001212675257611010050 0ustar News TODO debian/kexec-tools.dirs0000664000000000000000000000003012675257611012315 0ustar sbin etc/default/grub.d debian/po/0000775000000000000000000000000012700700776007614 5ustar debian/po/cs.po0000664000000000000000000000350212675257611010567 0ustar # 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 , 2008, 2011 # msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-03 15:12+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \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 "Should kexec-tools handle reboots?" msgstr "Mají se kexec-tools starat o restarty?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/sk.po0000664000000000000000000000401612675257611010600 0ustar # 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 , 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-08-25 21:13+0200\n" "Last-Translator: Slavko \n" "Language-Team: Slovak \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 "Should kexec-tools handle reboots?" msgstr "Majú reštarty obsluhovať nástroje kexec?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/fr.po0000664000000000000000000000363712675257611010602 0ustar # kexec-tools debconf . # Copyright (C) 2008 Steve Petruzzello # This file is distributed under the same license as the kexec-tools package. # Khalid Aziz # 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-02 10:54+0200\n" "Last-Translator: Steve Petruzzello \n" "Language-Team: French \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 "Should kexec-tools handle reboots?" msgstr "Faut-il gérer les redémarrages avec kexec-tools ?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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. " #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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 »." debian/po/templates.pot0000664000000000000000000000255512675257611012353 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \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 "Should kexec-tools handle reboots?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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 "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 "" debian/po/pt.po0000664000000000000000000000372712675257611010616 0ustar # 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 , 2008. # Rui Branco , 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-08 00:27+0100\n" "Last-Translator: Rui Branco \n" "Language-Team: Portuguese \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" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 msgid "Should kexec-tools handle reboots?" msgstr "Usar o kexec-tools para reiniciar o computador?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/tr.po0000664000000000000000000000376612675257611010623 0ustar # Turkish translation of kexec-tools package # Copyright (C) 2014 Mert Dirik # This file is distributed under the same license as the kexec-tools package. # Mert Dirik , 2014. # msgid "" msgstr "" "Project-Id-Version: kexec-tools 1%3a2.0.7-1\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2014-08-01 17:02+0200\n" "Last-Translator: Mert Dirik \n" "Language-Team: Debian L10n Turkish \n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 msgid "Should kexec-tools handle reboots?" msgstr "kexec-tools yeniden başlatma işlerini idare etsin mi?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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çenek etkinleştirilirse, sistemi yeniden başlatma işlemi sistem " "önyükleme sürecini kullanmayacak, bunun yerine kexec tarafından yüklenmiş " "olan çekirdek ile doğrudan yeniden başlatma yapacaktır." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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çmeniz halinde kexec, yeniden başlatma işleminde hangi " "çekirdeği ve hangi seçenekleri kullanacağına karar vermek için /etc/default/" "kexec dosyası yerine GRUB yapılandırma dosyasını okur." debian/po/vi.po0000664000000000000000000000364012675257611010603 0ustar # Vietnamese translation for Kexec-Tools. # Copyright © 2008 Free Software Foundation, Inc. # Clytie Siddall , 2008. # msgid "" msgstr "" "Project-Id-Version: kexec-tools 20080324-1\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2008-04-28 16:06+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \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 "Should kexec-tools handle reboots?" msgstr "kexec-tools nên quản lý việc khởi động lại không?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 #, 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 "" debian/po/gl.po0000664000000000000000000000340112675257611010562 0ustar # Galician translation of kexec-tools's debconf templates # This file is distributed under the same license as the kexec-tools package. # Jacobo Tarrio , 2008. # msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2008-04-25 21:26+0100\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \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 "Should kexec-tools handle reboots?" msgstr "¿Debe kexec-tools xestionar os reinicios?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 #, 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 "" debian/po/fi.po0000664000000000000000000000327412675257611010566 0ustar msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2008-04-26 08:30+0200\n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \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 "Should kexec-tools handle reboots?" msgstr "Tulisiko kexec-toolsin hallinnoida järjestelmän uudelleenkäynnistystä?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 #, 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 "" debian/po/es.po0000664000000000000000000000526312675257611010577 0ustar # 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 , 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-08-29 12:15+0200\n" "Last-Translator: Camaleón \n" "Language-Team: Debian Spanish \n" "Language: \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 "Should kexec-tools handle reboots?" msgstr "¿Debe kexec-tools gestionar los reinicios del sistema?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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»." debian/po/nl.po0000664000000000000000000000356312675257611010602 0ustar # 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 , 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-08-30 10:41+0200\n" "Last-Translator: Jeroen Schot \n" "Language-Team: Debian l10n Dutch \n" "Language: nl\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 "Should kexec-tools handle reboots?" msgstr "Moet kexec-tools het herstarten afhandelen?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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 hiervoor kiest zal een systeemherstart een kernel via kexec laden in " "plaats van het doorlopen van het volledige bootloader-proces." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "GRUB-configuratie uitlezen om de kernel te laden?" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 hier voor kiest zal kexec het configuratiebestand van GRUB uitlezen om " "te bepalen welke kernel en opties een kexec-herstart moet gebruiken, in " "plaats van de inhoud van /etc/default/kexec." debian/po/POTFILES.in0000664000000000000000000000006012675257611011373 0ustar [type: gettext/rfc822deb] kexec-tools.templates debian/po/da.po0000664000000000000000000000361012675257611010546 0ustar # Danish translation kexec-tools. # Copyright (C) 2011 kexec-tools & nedenstående oversættere. # This file is distributed under the same license as the kexec-tools package. # Joe Hansen , 2010, 2011. # msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-04 05:26+0100\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: \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 "Should kexec-tools handle reboots?" msgstr "Skal kexec-tools håndtere genstarter?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/ru.po0000664000000000000000000000525412675257611010616 0ustar # 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 , 2008. # Yuri Kozlov , 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: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-08-27 08:21+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\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 "Should kexec-tools handle reboots?" msgstr "Использовать kexec-tools для обработки команды на перезагрузку?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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, а не как обычно, с полным " "перезапуском системы с использованием системного загрузчика." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "Использовать файл настройки GRUB для загрузки ядра?" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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." #~ msgid "Should kexec-tools e grub2 config file to load kernel?" #~ msgstr "" #~ "Должен ли kexec-tools использовать файл настройки grub2 для выбора " #~ "загружаемого ядра?" debian/po/it.po0000664000000000000000000000352712675257611010605 0ustar # 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 , 2010. # msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2010-10-13 06:52+0200\n" "Last-Translator: Vincenzo Campanella \n" "Language-Team: Italian \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 "Should kexec-tools handle reboots?" msgstr "Si desidera che kexec-tools gestisca i riavvii?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 #, 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 "" debian/po/de.po0000664000000000000000000000375012675257611010557 0ustar # German translation of the kexec-tools debconf template # Copyright 2008 Kai Wasserbäch # Copyright 2011 Helge Kreutzmann # This file is distributed under the same license as the kexec-tools package. # msgid "" msgstr "" "Project-Id-Version: kexec-tools 20080324-1\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-10 20:36+0200\n" "Last-Translator: Helge Kreutzmann \n" "Language-Team: German \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 "Should kexec-tools handle reboots?" msgstr "Soll »kexec-tools« Neustarts verwalten?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/sv.po0000664000000000000000000000375412675257611010623 0ustar # translation of kexec-tools.po to swedish # Copyright (C) 2011 Martin Bagge # This file is distributed under the same license as the PACKAGE package. # # Martin Bagge , 2008, 2011 msgid "" msgstr "" "Project-Id-Version: kexec-tools\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-09-01 22:40+0100\n" "Last-Translator: Martin Bagge / brother \n" "Language-Team: swedish \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 "Should kexec-tools handle reboots?" msgstr "Ska kexec-tools hantera omstarter?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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." #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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:3001 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." debian/po/ja.po0000664000000000000000000000377712675257611010572 0ustar # Copyright (C) 2008 Khalid Aziz # This file is distributed under the same license as kexec-tools package. # Hideki Yamane (Debian-JP) , 2008. # msgid "" msgstr "" "Project-Id-Version: kexec-tools 20080324-2\n" "Report-Msgid-Bugs-To: kexec-tools@packages.debian.org\n" "POT-Creation-Date: 2011-08-25 18:55+0200\n" "PO-Revision-Date: 2011-08-26 01:55+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\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 "Should kexec-tools handle reboots?" msgstr "kexec-tools で再起動処理を行いますか?" #. Type: boolean #. Description #: ../kexec-tools.templates:2001 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 からロードされたカーネルから再起動するようにシステムの再起動が設定され" "ます。" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 msgid "Read GRUB configuration file to load the kernel?" msgstr "カーネルをロードするための GRUB 設定ファイルを読み込みますか?" #. Type: boolean #. Description #: ../kexec-tools.templates:3001 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 の再起動時にどのカーネル及びオプションをロードす" "るか判断します。" debian/kexec-load.init.d0000664000000000000000000000617412675257611012337 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kexec-load # Required-Start: $local_fs $remote_fs kexec # Required-Stop: $local_fs $remote_fs kexec # Should-Stop: autofs # Default-Start: 2 3 4 5 # Default-Stop: 6 # Short-Description: Load kernel image with kexec # Description: ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin NOKEXECFILE=/tmp/no-kexec-reboot . /lib/lsb/init-functions test -r /etc/default/kexec && . /etc/default/kexec 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) 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) } do_stop () { test "$LOAD_KEXEC" = "true" || exit 0 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`" log_action_begin_msg "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 log_action_end_msg $? } case "$1" in start) # No-op ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) # If running systemd, we want kexec reboot only if current # command is reboot. If not running systemd, check if # runlevel has been changed to 6 which indicates we are # rebooting if [ -d /run/systemd/system ]; then systemctl list-jobs systemd-reboot.service | grep -q systemd-reboot.service if [ $? -ne 0 ]; then exit 0 fi else if [ -x /sbin/runlevel -a "$(runlevel | awk '{ print $2 }')" != "6" ]; then exit 0 fi fi do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac exit 0 debian/compat0000664000000000000000000000000212675257611010402 0ustar 7 debian/conffile0000664000000000000000000000004012675257611010706 0ustar kexec.init.d kexec-load.init.d