[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#342344: debian-cd: sed separator should be changed from "/" to "|"

Package: debian-cd
Version: 2.2.24
Severity: normal
Tags: patch
File: /usr/share/debian-cd/tools/boot/etch/boot-i386


the KERNEL_PARAMS variable often contains the "/" carachter, e.g.:

KERNEL_PARAMS="preseed/file=/cdrom/.disk/preseed debconf/priority=high"

Unfortunately the "/" character clashes with the sed separator used in
the boot-i386 and boot-amd64 scripts.

The patch below solves the issues.



--- /usr/share/debian-cd/tools/boot/etch/boot-i386      2005-12-07 10:59:06.000000000 +0100
+++ tools/boot/etch/boot-i386   2005-12-07 11:03:29.000000000 +0100
@@ -167,7 +167,7 @@
        if [ -n "$KERNEL_PARAMS" ]; then
                # Substitute custom kernel params into the isolinux config
                # file.
-               sed -i "s/append /append $KERNEL_PARAMS/" boot$N/isolinux/isolinux.cfg
+               sed -i "s|append |append $KERNEL_PARAMS|" boot$N/isolinux/isolinux.cfg

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (501, 'testing'), (101, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-multimedia-386
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages debian-cd depends on:
ii  apt                    Advanced front-end for dpkg
ii  apt-utils              APT utility programs
ii  bc                        1.06-17        The GNU bc arbitrary precision cal
ii  cpp                       4:4.0.1-3      The GNU C preprocessor (cpp)
ii  debootstrap             Bootstrap a basic Debian system
ii  grep-dctrl                2.6.7          Grep Debian package information
ii  lynx                      2.8.5-2        Text-mode WWW Browser
ii  make                      3.80-11        The GNU version of the "make" util
ii  mkisofs                   4:2.01+01a01-4 Creates ISO-9660 CD-ROM filesystem
ii  perl [libdigest-md5-perl] 5.8.7-3        Larry Wall's Practical Extraction 
ii  sysutils              Miscellaneous small system utiliti

Versions of packages debian-cd recommends:
ii  debianutils                   2.14.3     Miscellaneous utilities specific t
pn  hfsutils                      <none>     (no description available)
pn  jigdo-file                    <none>     (no description available)

-- no debconf information

Reply to: