debian/0000775000000000000000000000000012323511740007166 5ustar debian/kexec-tools.dirs0000664000000000000000000000003012276204643012307 0ustar sbin etc/default/grub.d debian/kexec-tools.postrm0000664000000000000000000000175512276204643012711 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.initramfs0000664000000000000000000000323312276204643012235 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-load.init.d0000664000000000000000000000524012276204643012322 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kexec-load # Required-Start: # Required-Stop: $local_fs $remote_fs kexec # Should-Stop: autofs # Default-Start: # 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) do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac exit 0 debian/kexec-tools.grub0000664000000000000000000000012012276204643012305 0ustar GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT crashkernel=384M-:128M" debian/copyright0000664000000000000000000000222712276204643011134 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/po/0000775000000000000000000000000012276207101007604 5ustar debian/po/vi.po0000664000000000000000000000364012276204643010575 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/fi.po0000664000000000000000000000327412276204643010560 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/ja.po0000664000000000000000000000377712276204643010564 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/po/de.po0000664000000000000000000000375012276204643010551 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/cs.po0000664000000000000000000000350212276204643010561 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/ru.po0000664000000000000000000000525412276204643010610 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/gl.po0000664000000000000000000000340112276204643010554 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/sv.po0000664000000000000000000000375412276204643010615 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/pt.po0000664000000000000000000000372712276204643010610 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/da.po0000664000000000000000000000361012276204643010540 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/sk.po0000664000000000000000000000401612276204643010572 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/templates.pot0000664000000000000000000000255512276204643012345 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/es.po0000664000000000000000000000526312276204643010571 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/it.po0000664000000000000000000000352712276204643010577 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/fr.po0000664000000000000000000000363712276204643010574 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/POTFILES.in0000664000000000000000000000006012276204643011365 0ustar [type: gettext/rfc822deb] kexec-tools.templates debian/po/nl.po0000664000000000000000000000356312276204643010574 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/source/0000775000000000000000000000000012276204643010476 5ustar debian/source/format0000664000000000000000000000001412276204643011704 0ustar 3.0 (quilt) debian/source/lintian-overrides0000664000000000000000000000072512276204643014063 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/changelog0000664000000000000000000007015712323511740011052 0ustar 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/compat0000664000000000000000000000000212276204643010374 0ustar 7 debian/kexec-tools.config0000664000000000000000000000125212276204643012622 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.init.d0000664000000000000000000000150512276204643011405 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kexec # Required-Start: # Required-Stop: reboot # X-Stop-After: umountroot # Default-Start: # 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/rules0000775000000000000000000000532112316362064010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # 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 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. aclocal -I config autoheader autoconf 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) 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_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 --no-start -r --name=kexec -- start 85 6 . dh_installinit --no-start -r --name=kexec-load -- stop 18 6 . 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/control0000664000000000000000000000176412316356161010607 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), autoconf, gnu-efi (>=3.0a-4)[ia64], libz-dev[ia64], po-debconf, automake Standards-Version: 3.9.4 Package: kexec-tools Architecture: i386 amd64 ppc64el ppc64 powerpc ia64 s390 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 ppc64 powerpc ia64 s390 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-overrides0000664000000000000000000000056012276204643015014 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/conffile0000664000000000000000000000004012276204643010700 0ustar kexec.init.d kexec-load.init.d debian/watch0000664000000000000000000000016512276204643010231 0ustar version=3 http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-(.*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) debian/kexec-tools.templates0000664000000000000000000000160712276204643013357 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/docs0000664000000000000000000000001212276204643010042 0ustar News TODO debian/patches/0000775000000000000000000000000012323511351010613 5ustar debian/patches/coldreboot.patch0000664000000000000000000000436612276204643014013 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -177,11 +177,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 @@ -90,6 +90,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) @@ -104,6 +106,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/format-security.patch0000664000000000000000000000362412316360547015011 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/stack-protection.patch0000664000000000000000000000253312323312602015126 0ustar From 7d33c8933ebf8e1788ffff0132b6e08a2388748c Mon Sep 17 00:00:00 2001 From: Laurent Dufour Date: Tue, 8 Apr 2014 16:44:45 +0200 Subject: ppc64/purgatory: Disabling GCC's stack protection Some Linux distributions, like Suse, are turning on the GCC's stack protection mechanism by default (-fstack-protector). When building the purgatory with this option, this leads to link issues that are revealed at runtime when the purgatory is loaded because symbols like __stack_chk_fail are unresolved. This patch forces this stack protection mechanism to be turned off when building the purgatory on ppc64 BE and LE. Signed-off-by: Laurent Dufour Signed-off-by: Simon Horman diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile index 31076e9..712e2b1 100644 --- a/purgatory/arch/ppc64/Makefile +++ b/purgatory/arch/ppc64/Makefile @@ -9,7 +9,7 @@ ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/console-ppc64.c ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/crashdump_backup.c ppc64_PURGATORY_SRCS += purgatory/arch/ppc64/misc.S -ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float +ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float -fno-stack-protector ppc64_PURGATORY_EXTRA_ASFLAGS += -m64 ifeq ($(SUBARCH),BE) ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc -- cgit v0.10.1 debian/patches/debianize.patch0000664000000000000000000000047412276204643013605 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -90,7 +90,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/add_debian_readme.patch0000664000000000000000000000162312276204643015217 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/linker-option.patch0000664000000000000000000000064612276204643014446 0ustar --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -63,7 +63,7 @@ $(PURGATORY): $(PURGATORY_OBJS) $(MKDIR) -p $(@D) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -# $(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 $@ echo:: debian/patches/endianess-initrd.patch0000664000000000000000000000315112323312627015101 0ustar From db3c32babc5279816344be8210ca91a64331f0fe Mon Sep 17 00:00:00 2001 From: Laurent Dufour Date: Fri, 11 Apr 2014 12:10:30 +0200 Subject: kexec/fs2dt : Fix endianess issue with initrd base and size The initrd values exposed in the device tree of the kexeced kernel must be encoded in Big Endian format. Without this patch, kexeced LE kernel are expected to panic when dealing with the initrd image. Signed-off-by: Laurent Dufour Signed-off-by: Simon Horman diff --git a/kexec/fs2dt.c b/kexec/fs2dt.c index 5e6b98d..2a90979 100644 --- a/kexec/fs2dt.c +++ b/kexec/fs2dt.c @@ -531,7 +531,7 @@ static void putnode(void) /* Add initrd entries to the second kernel */ if (initrd_base && initrd_size && !strcmp(basename,"chosen/")) { int len = 8; - unsigned long long initrd_end; + uint64_t bevalue; dt_reserve(&dt, 12); /* both props, of 6 words ea. */ *dt++ = cpu_to_be32(3); @@ -539,7 +539,8 @@ static void putnode(void) *dt++ = cpu_to_be32(propnum("linux,initrd-start")); pad_structure_block(len); - memcpy(dt,&initrd_base,len); + bevalue = cpu_to_be64(initrd_base); + memcpy(dt, &bevalue, len); dt += (len + 3)/4; len = 8; @@ -547,10 +548,10 @@ static void putnode(void) *dt++ = cpu_to_be32(len); *dt++ = cpu_to_be32(propnum("linux,initrd-end")); - initrd_end = initrd_base + initrd_size; + bevalue = cpu_to_be64(initrd_base + initrd_size); pad_structure_block(len); - memcpy(dt,&initrd_end,len); + memcpy(dt, &bevalue, len); dt += (len + 3)/4; reserve(initrd_base, initrd_size); -- cgit v0.10.1 debian/patches/static_binary_warning.patch0000664000000000000000000000124412276204643016227 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/distclean_fix.patch0000664000000000000000000000054012276204643014461 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -230,7 +230,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 debian/patches/series0000664000000000000000000000030112323511413012021 0ustar debianize.patch static_binary_warning.patch distclean_fix.patch add_debian_readme.patch coldreboot.patch linker-option.patch format-security.patch endianess-initrd.patch stack-protection.patch debian/README.debian0000664000000000000000000000122712276204643011301 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.postinst0000664000000000000000000001035212276204643013241 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 # ------------------------- 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