Package: debian-cd
Version: 3.1.0
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Due to the broken for the current setup which no longer has a 'default' 
statement in isolinux.cfg. 

Therefore I try to fix it with the simple script replace the old one to accept 
the ISOLINUX_DEFAULT setting.
Please review if it helpful for the debian-cd.

Sincerely,
Neutron Soutmun

- -- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-expr1-amd64-neutron-experimental (SMP w/2 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debian-cd depends on:
ii  apt                     0.7.20           Advanced front-end for dpkg
ii  bc                      1.06.94-3        The GNU bc arbitrary precision cal
ii  cpp                     4:4.3.2-2        The GNU C preprocessor (cpp)
ii  curl                    7.18.2-8         Get a file from an HTTP, HTTPS or 
ii  dctrl-tools [grep-dctrl 2.13.1           Command-line tools to process Debi
ii  genisoimage             9:1.1.9-1        Creates ISO-9660 CD-ROM filesystem
ii  libcompress-zlib-perl   2.015-1          Perl module for creation and manip
ii  lynx-cur                2.8.7dev12-1     Text-mode WWW Browser with NLS sup
ii  make                    3.81-5           The GNU version of the "make" util
ii  perl [libdigest-md5-per 5.10.0-19        Larry Wall's Practical Extraction 
ii  tofrodos                1.7.8.debian.1-1 Converts DOS <-> Unix text files, 

Versions of packages debian-cd recommends:
ii  hfsutils                   3.2.6-11      Tools for reading and writing Maci
ii  netpbm                     2:10.0-12     Graphics conversion tools
ii  syslinux-common            2:3.71+dfsg-5 Kernel loader which uses a FAT, ex

debian-cd suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkl0h9QACgkQ1k7Ar9TO/TegXACfcH322f3Ena/XLwFmUnPdBZcn
Ir0An3yTWHoxuBOus1ipnscOuzunigMw
=TVlK
-----END PGP SIGNATURE-----
--- tools/boot/sid/boot-x86.orig        2009-01-19 20:27:11.000000000 +0700
+++ tools/boot/sid/boot-x86     2009-01-19 20:13:04.000000000 +0700
@@ -234,11 +234,18 @@
        cp -f $CDDIR/../syslinux/usr/lib/syslinux/isolinux.bin boot$N/isolinux/
        cp -f $CDDIR/../syslinux/usr/lib/syslinux/vesamenu.c32 boot$N/isolinux/
 
-       # FIXME - this is broken for the current setup which no longer
-       # has a 'default' statement in isolinux.cfg
        if [ -n "$ISOLINUX_DEFAULT" ]; then
-               sed -i "s/^DEFAULT .*$/DEFAULT $ISOLINUX_DEFAULT/" \
-                       boot$N/isolinux/isolinux.cfg
+               default_new=$(grep "label $ISOLINUX_DEFAULT" 
boot$N/isolinux/*.cfg | head -n1 | cut -d: -f1)
+
+               if [ ! -z "$default_new" ]; then
+                       cfglist=$(find boot$N/isolinux -name '*.cfg' | grep -v 
'isolinux.cfg')
+      test -z "$cfglist" || 
+                               sed -i -e "/^default .*/d" -e "/menu default/d" 
$cfglist
+
+                       sed -i -e "s/label ${ISOLINUX_DEFAULT}/default 
${ISOLINUX_DEFAULT}\n&/" \
+                               -e "s/menu label .*/&\n\tmenu default/" \
+                               $default_new
+               fi
        fi
 
        if [ -z "$MULTIARCH" ]; then

Reply via email to