Package: extlinux Version: 2:4.05+dfsg-6 Severity: normal Tags: patch Dear Maintainer,
When configured to boot from alternative kernel by setting: EXTLINUX_DEFAULT=o0 in /etc/default/extlinux, extlinux still to first (l0) available kernel. While extlinux-update manpage states: .... EXTLINUX_DEFAULT="l0" This variable specifies the default entry to boot.... extlinux-update in reality only set up default option in /boot/extlinux/extlinux.conf which is not enough. Upsream documentation clearly states that after loading (vesa)menu.c32 "menu default" shoud be used. I created patch against 2:4.05+dfsg-6 extlinux-update script. MZ -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages extlinux depends on: ii debconf [debconf-2.0] 1.5.46 ii libc6 2.13-35 Versions of packages extlinux recommends: ii os-prober 1.56 ii syslinux-common 2:4.05+dfsg-6 ii syslinux-themes-debian 11-1 extlinux suggests no packages.
*** extlinux-update.orig 2012-06-30 14:00:10.000000000 +0200 --- extlinux-update 2012-10-27 23:55:52.159496864 +0200 *************** *** 192,197 **** --- 192,205 ---- linux ${_BOOT_DIRECTORY}/vmlinuz-${_VERSION} append ${_INITRD} ${EXTLINUX_ROOT} ${EXTLINUX_PARAMETERS}" + if [ "o${EXTLINUX_DEFAULT}" = "ol${_NUMBER}" ]; + then + + # Selecting default entry + _CONFIG="${_CONFIG} + menu default" + fi + fi if echo ${EXTLINUX_ALTERNATIVES} | grep -q live *************** *** 208,213 **** --- 216,229 ---- This option boots the system into live mode (non-persistent) endtext" + if [ "o${EXTLINUX_DEFAULT}" = "ol${_NUMBER}l" ]; + then + + # Selecting default entry + _CONFIG="${_CONFIG} + menu default" + fi + fi if echo ${EXTLINUX_ALTERNATIVES} | grep -q recovery *************** *** 224,229 **** --- 240,253 ---- This option boots the system into recovery mode (single-user) endtext" + if [ "o${EXTLINUX_DEFAULT}" = "ol${_NUMBER}r" ]; + then + + # Selecting default entry + _CONFIG="${_CONFIG} + menu default" + fi + fi _NUMBER="$((${_NUMBER} + 1))" *************** *** 302,307 **** --- 326,339 ---- initrd ${_IMAGE} append ${_IMAGE_APPEND}" + if [ "o${EXTLINUX_DEFAULT}" = "om${_NUMBER}" ]; + then + + # Selecting default entry + _CONFIG="${_CONFIG} + menu default" + fi + _NUMBER="$((${_NUMBER} + 1))" done *************** *** 363,368 **** --- 395,408 ---- kernel chain.c32 append hd${_DEVICENAME}" + if [ "o${EXTLINUX_DEFAULT}" = "oo${_NUMBER}" ]; + then + + # Selecting default entry + _CONFIG="${_CONFIG} + menu default" + fi + _NUMBER="$((${_NUMBER} + 1))" done