My code in message #16 generated an invalid grub.cfg if one of the detected
Linux OSes had no submenu items.
Attached is a diff of an updated os-prober script which fixes that problem.--- 30_os-prober2016-07-22 20:09:25.0 -0400
+++ 15_os-prober2017-03-07 19:55:47.108820452
This package has been requested of playdeb.net also:
https://bugs.launchpad.net/getdeb.net/+bug/1670370
Package: wnpp
Severity: wishlist
* Package name : egoboo
Version : 2.8.1
Upstream Author : Johan Jansen , SourceForge.net
user "pf5234"
* URL : http://egoboo.sourceforge.net/
* License : GPLv2
Programming Lang: C
Description : 3D-rendered dungeon-crawling action-RPG
This game was in Ubuntu 12.04
X-Debbugs-No-Ack: yes
That time, whitespace was preserved in the BTS.
The attached has minor tweaks to the whitespace.
15_os-prober
Description: Binary data
X-Debbugs-No-Ack: yes
The patch has had its whitespace mangled by the bug-tracking system, even in
my Web browser's View Source option. I will try attaching my version of the
os-prober script to this e-mail.
15_os-prober
Description: Binary data
Here is an updated patch with the following improvements:
* Preserves an "advanced options" description, such as "(recovery mode)", in
the submenu entries.
* Suppresses options in the submenu that are equivalent to an option in the
main menu.
* Main-menu entries that open submenus are now indent
X-Debbugs-No-Ack:
I later installed another Debian-derived OS in a different partition on the
same PC. This 3rd OS is Linux Mint (main edition) 18.1 Serena, which is based
on Ubuntu 16.04 Xenial. The "grub-efi-amd64" APT package is version
2.02~beta2-36ubuntu3.7
This 3rd install partition happens
0-35-generic
+
+printf "Adding '%s' to menu\n" "${OS}" >&2
+
found_other_os=1
onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
recovery_params="$(echo "${LPARAMS}" | grep 'single\|recovery')" || true
@@ -283,10 +353,11 @@
cat << EOF
}
EOF
- echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" |
grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id'
{"
+ echo "submenu '$(gettext_printf "Advanced options for %s" "${OS_SUBMENU}
$onstr" | grub_quote)' \$menuentry_id_option
'osprober-gnulinux-advanced-$boot_device_id' {"
+
is_top_level=false
fi
- title="${LLABEL} $onstr"
+ title="${OS} $onstr"
cat << EOF
menuentry '$(echo "$title" | grub_quote)' --class gnu-linux --class gnu --class
os \$menuentry_id_option
'osprober-gnulinux-$LKERNEL-${recovery_params}-$boot_device_id' {
EOF
Thanks for considering this.
-dg1727
Package: ukopp
Version: 4.9-1
Please consider updating this package to the current upstream version (6.2 as
of this writing).
The download URL (needed for the Debian watch script) is
http://www.kornelix.net/downloads/downloads.html
Thanks in advance.
-dg1727
on.
Specifically, there appears to be a function called
"make_system_path_relative_to_its_root" which seems to detect that
/boot/vmlinuz is really at /@/boot/vmlinuz.
Thanks in advance for reviewing this.
-dg1727
10 matches
Mail list logo