* Add OpenPGP signature checking configuration to watch file.
* Drop mkconfig_skip_dmcrypt.patch; it breaks GRUB_ENABLE_CRYPTODISK=y,
which is a better fix for the original problem (closes: #732245).
+ * Fix mismerge of mkconfig_loopback.patch.
-- Colin Watson <cjwatson@debian.org> Tue, 10 Dec 2013 17:39:47 +0000
===================================================================
--- a/util/grub-mkconfig_lib.in
+++ b/util/grub-mkconfig_lib.in
-@@ -133,6 +133,21 @@
+@@ -133,6 +133,22 @@
esac
done
+ loop_file=
-+ case ${device} in
++ case $1 in
+ /dev/loop/*|/dev/loop[0-9])
-+ grub_loop_device="${device#/dev/}"
-+ loop_file=`losetup "${device}" | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
++ grub_loop_device="${1#/dev/}"
++ loop_file=`losetup "$1" | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
+ case $loop_file in
+ /dev/*) ;;
+ *)
-+ loop_device="${device}"
-+ device=`"${grub_probe}" --target=device "${loop_file}"`
++ loop_device="$1"
++ shift
++ set -- `"${grub_probe}" --target=device "${loop_file}"` "$@"
+ ;;
+ esac
+ ;;
# Abstraction modules aren't auto-loaded.
abstraction="`"${grub_probe}" --device $@ --target=abstraction`"
for module in ${abstraction} ; do
-@@ -234,6 +249,14 @@
- else
- return 1
+@@ -165,6 +181,14 @@
+ echo "fi"
fi
+ IFS="$old_ifs"
+
+ if [ "x${loop_file}" != x ]; then
+ loop_mountpoint="$(awk '"'${loop_file}'" ~ "^"$2 && $2 != "/" { print $2 }' /proc/mounts | tail -n1)"
+ fi
}
- version_test_gt ()
+ grub_get_device_id ()
Index: b/util/grub.d/10_linux.in
===================================================================
--- a/util/grub.d/10_linux.in
===================================================================
--- a/util/grub-mkconfig_lib.in
+++ b/util/grub-mkconfig_lib.in
-@@ -142,7 +142,7 @@
- /dev/*) ;;
+@@ -143,7 +143,7 @@
*)
- loop_device="${device}"
-- device=`"${grub_probe}" --target=device "${loop_file}"`
-+ device=`"${grub_probe}" --target=device "${loop_file}"` || return 0
+ loop_device="$1"
+ shift
+- set -- `"${grub_probe}" --target=device "${loop_file}"` "$@"
++ set -- `"${grub_probe}" --target=device "${loop_file}"` "$@" || return 0
;;
esac
;;
done
loop_file=
- case ${device} in
+ case $1 in
/dev/loop/*|/dev/loop[0-9])
- grub_loop_device="${device#/dev/}"
- loop_file=`losetup "${device}" | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
+ grub_loop_device="${1#/dev/}"
+ loop_file=`losetup "$1" | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
case $loop_file in
/dev/*) ;;
*)
- loop_device="${device}"
- device=`"${grub_probe}" --target=device "${loop_file}"` || return 0
+ loop_device="$1"
+ shift
+ set -- `"${grub_probe}" --target=device "${loop_file}"` "$@" || return 0
;;
esac
;;
echo "fi"
fi
IFS="$old_ifs"
+
+ if [ "x${loop_file}" != x ]; then
+ loop_mountpoint="$(awk '"'${loop_file}'" ~ "^"$2 && $2 != "/" { print $2 }' /proc/mounts | tail -n1)"
+ if [ "x${loop_mountpoint}" != x ]; then
+ echo "loopback ${grub_loop_device} ${loop_file#$loop_mountpoint}"
+ echo "set root=(${grub_loop_device})"
+ fi
+ fi
}
grub_get_device_id ()
else
return 1
fi
-
- if [ "x${loop_file}" != x ]; then
- loop_mountpoint="$(awk '"'${loop_file}'" ~ "^"$2 && $2 != "/" { print $2 }' /proc/mounts | tail -n1)"
- if [ "x${loop_mountpoint}" != x ]; then
- echo "loopback ${grub_loop_device} ${loop_file#$loop_mountpoint}"
- echo "set root=(${grub_loop_device})"
- fi
- fi
}
version_test_gt ()