On Mon, Jul 29, 2013 at 03:01:39PM +0200, Michal Hocko wrote: [...] > * Fixed kexec-load init script to parse newer grub.cfg files correctly > (closes: Bug#714016) > > Is it possible that both old and the new grub configurations would be > supported?
Hmm, I was't able to find a patch which fixed the named bug but diff between the two versions points to: diff -uprN old/kexec-tools-2.0.3/debian/kexec-load.init.d new/kexec-tools-2.0.3/debian/kexec-load.init.d --- old/kexec-tools-2.0.3/debian/kexec-load.init.d 2013-01-12 23:04:53.000000000 +0100 +++ new/kexec-tools-2.0.3/debian/kexec-load.init.d 2013-07-25 21:56:22.000000000 +0200 @@ -47,7 +47,7 @@ get_grub_kernel() { # grub entries start with "menuentry" commands. Get the line # numbers that surround the first entry - offsets=$(echo "$data" | grep -n ^menuentry | cut -d: -f1) + 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) And it doesn't seem to break grub-legacy support. So is the hard dependency on the newer version really needed? Or was the dependency change motivated by something else which wasn't mentioned in the changelog? Thanks! -- Michal Hocko -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org