Bug #687956: Prefix kernel and init* image with /boot if it is a separate mount. --- /etc/init.d/kexec-load 2012-01-19 19:59:26.000000000 +0100 +++ /tmp/kexec-load 2012-11-04 14:35:01.610866388 +0100 @@ -22,11 +22,11 @@ while read command args; do if [ "$command" = "linux" ]; then echo "$args" | while read kernel append; do - echo KERNEL_IMAGE=\"${kernel}\" + echo KERNEL_IMAGE=\"${prefix}${kernel}\" echo APPEND=\"${append}\" done elif [ "$command" = "initrd" ]; then - initrd_image=${args} + initrd_image=${prefix}${args} fi done echo INITRD=\"$initrd_image\" @@ -34,6 +34,8 @@ 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)
-- Philipp Matthias Hahn <pmh...@debian.org> GPG/PGP: 9A540E39 @ keyrings.debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org