Your message dated Wed, 08 Oct 2014 21:20:19 +0000
with message-id <[email protected]>
and subject line Bug#699008: fixed in kexec-tools 1:2.0.7-2
has caused the Debian Bug report #699008,
regarding kexec-tools: systemd vs. kexec-load
to be marked as done.

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

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


-- 
699008: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699008
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kexec-tools
Version: 1:2.0.3-2
Severity: whishlist

Since I switched to Systemd, /etc/init.d/kexec-load no longer works as I
expect. This is caused by /lib/lsb/init-functions being changed by
Systemd to integrate traditional LSB init scripts into how Systemd
works.

My current work-around was to juse out-comment that line:
-- /tmp/x/etc/init.d/kexec-load        2013-01-12 23:04:53.000000000 +0100
+++ /etc/init.d/kexec-load      2013-01-16 22:50:55.969207479 +0100
@@ -13,7 +13,7 @@
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 NOKEXECFILE=/tmp/no-kexec-reboot
 
-. /lib/lsb/init-functions
+#. /lib/lsb/init-functions
 
 test -r /etc/default/kexec && . /etc/default/kexec
 
That now produces some warnings about the log_* functions being no
longer found, but otherwise works okay (for me).

I've done that because I like the easy way of just invoking
 /etc/init.d/kexec-load stop
to load my next kernel after an kernel update, because that script
figures out the right name of the vmlinux and initrd files, and kernel
command line. I could do that by invoking kexec myself with the right
arguments, but I find the init script easier.

It would be nice if the init script would work again with systemd
installed or if the logic would be moved to an sbin/ script callable by
hand.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kexec-tools depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  libc6                  2.13-38

kexec-tools recommends no packages.

kexec-tools suggests no packages.

-- Configuration Files:
/etc/init.d/kexec-load changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NOKEXECFILE=/tmp/no-kexec-reboot
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 ^menuentry | 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


-- debconf information:
* kexec-tools/use_grub_config: true
* kexec-tools/load_kexec: true

--- End Message ---
--- Begin Message ---
Source: kexec-tools
Source-Version: 1:2.0.7-2

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

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

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

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

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 08 Oct 2014 11:01:58 -0600
Source: kexec-tools
Binary: kexec-tools kexec-tools-udeb
Architecture: source amd64
Version: 1:2.0.7-2
Distribution: unstable
Urgency: medium
Maintainer: Khalid Aziz <[email protected]>
Changed-By: Khalid Aziz <[email protected]>
Description:
 kexec-tools - tools to support fast kexec reboots
 kexec-tools-udeb - tools to support fast kexec reboots (udeb) (udeb)
Closes: 699008 729451 734697 747119 754609 756127 757510 764360
Changes:
 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)
Checksums-Sha1:
 c089457998a0fc6948ab6920b96e6c087d940c92 1468 kexec-tools_2.0.7-2.dsc
 f3143c33a1446eaa4c6c9143243a23ffd539ee8f 19740 
kexec-tools_2.0.7-2.debian.tar.xz
 cc8ee228fbe9611b380374dfc7c319c3ac4c41c8 80002 kexec-tools_2.0.7-2_amd64.deb
 2a89652d20cfa776856d8cd7c6058da64636ca44 52002 
kexec-tools-udeb_2.0.7-2_amd64.udeb
Checksums-Sha256:
 dce81d5f2988b444894edd332406bebaa1ebaea85780188b12d2161cd2651d8b 1468 
kexec-tools_2.0.7-2.dsc
 8ac249575288e2575b508ad640ee05c40d5898e2ff7e8ee0b57ffb1523a6bbbd 19740 
kexec-tools_2.0.7-2.debian.tar.xz
 e0dcb95401acc65945b6024c575eb4a8e4d3305a28cb98e6753a9a0ab19447a4 80002 
kexec-tools_2.0.7-2_amd64.deb
 f3d0a5344e580ef6755e2338d75004628ccd4dce1514d79a2ed8398508afe3fc 52002 
kexec-tools-udeb_2.0.7-2_amd64.udeb
Files:
 99392378a10e6fe1804483ed559dd3ae 1468 admin optional kexec-tools_2.0.7-2.dsc
 986ad08eea6ffa88d98a8eb85114be72 19740 admin optional 
kexec-tools_2.0.7-2.debian.tar.xz
 993ac34aad596ad4ed328ccdad9bc1df 80002 admin optional 
kexec-tools_2.0.7-2_amd64.deb
 1802d6bf3955bbc89c34a84fed6697f0 52002 debian-installer optional 
kexec-tools-udeb_2.0.7-2_amd64.udeb
Package-Type: udeb

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

iEYEARECAAYFAlQ1lC4ACgkQlQEY26iVtiGBCwCfcHaCnem5RXw6KYrVl23zioiO
g0UAn1TwPkPYBES346ee26vHryXfbOEQ
=f4Jx
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to