+2010-06-28 Colin Watson <cjwatson@ubuntu.com>
+
+ * util/grub-install.in: Add --debug-image= option.
+
2010-06-28 Colin Watson <cjwatson@ubuntu.com>
Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
force_lba=
recheck=no
debug=no
+debug_image=
if [ "${target_cpu}-${platform}" = "i386-pc" ] ; then
disk_module=biosdisk
# This is an undocumented feature...
--debug)
debug=yes ;;
+ --debug-image)
+ debug_image=`argument $option "$@"`; shift;;
+ --debug-image=*)
+ debug_image=`echo "$option" | sed 's/--debug-image=//'` ;;
+
-f | --force)
setup_force="--force" ;;
prefix_drive=
config_opt=
+rm -f ${grubdir}/load.cfg
+
+if [ "x${debug_image}" != x ]; then
+ echo "set debug='${debug_image}'" >> ${grubdir}/load.cfg
+ config_opt="-c ${grubdir}/load.cfg "
+fi
+
if [ "x${devabstraction_module}" = "x" ] ; then
if [ x"${install_device}" != x ]; then
if echo "${install_device}" | grep -qx "(.*)" ; then
echo "UUID needed with ata mod, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
exit 1
fi
- echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
+ echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
config_opt="-c ${grubdir}/load.cfg "
modules="$modules search_fs_uuid"
echo "You attempted a cross-disk install, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
exit 1
fi
- echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
+ echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
config_opt="-c ${grubdir}/load.cfg "
modules="$modules search_fs_uuid"