Package: bootcd
Version: 2.48
Severity: normal

How to reproduce the bug

- Change the default configuration to COMPRESS="no".
- Specify a working chroot environment in the SRCDISK option
  In my case it is "/sarge".
- Specify a cron job name in the DISABLE_CRON setting, which exists in
  the chroot environment but does not exist in the external environment.
  In my case it is "etc/cron.daily/exim4-base" and exim4 isn't
  installed on the external (/) environment.
- Run bootcdwrite

the error message will be something similar:

--- OUTPUT from <mkisofs -graft-points -R -b isolinux/isolinux.bin -c 
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o 
/var/spool/bootcd/cdimage -x /sarge/proc -x /var/spool/bootcd -x 
/var/log/bootcdwrite.log -x /sarge/etc -x /sarge/var -x /sarge/tmp -x 
/sarge/dev -x /sarge/home -x /sarge/root -x /sarge/etc/mtab -x 
/sarge/etc/cron.daily/find -x /sarge/etc/cron.daily/standard -x 
/sarge/etc/fstab -x /sarge/usr/share/bootcd/bootcd-run.lib /=/sarge/ 
/=/var/spool/bootcd/changes /home.ro/=/sarge/home /root.ro/=/sarge/root 
/var.ro/=/sarge/var /etc.ro/=/sarge/etc /dev.ro/=/sarge/dev> ---
mkisofs: Error: '/sarge/etc/cron.daily/exim4-base' and 
'/var/spool/bootcd/changes/etc.ro/cron.daily/exim4-base' have the same Rock 
Ridge name 'exim4-base'.
mkisofs: Unable to sort directory /var/spool/bootcd/changes/etc.ro/cron.daily
exit=255

This is caused by a simple bug in bootcdwrite.  When the script makes up
the exclude list it examines the possible name collision between
/var/spool/bootcd/changes/foo and /foo.  It should examine the existence
of $SRCDISK/foo instead of /foo.  The following micropatch fixes the
bug.

Gabor

--- /usr/bin/bootcdwrite.orig   2005-04-22 00:00:41.000000000 +0200
+++ /usr/bin/bootcdwrite        2006-06-04 21:00:31.000000000 +0200
@@ -809,7 +809,7 @@
                                  # i=./etc.ro/mtab
     j=`echo $i|sed "s|^\.||"`    # j=/etc.ro/mtab
     k=`echo $j|sed "s|\.ro/|/|"` # k=/etc/mtab
-    if [ -f $k ]; then
+    if [ -f $SRCDI$k ]; then
       EXCLUDE="$EXCLUDE -x $SRCDI$k"
     fi
   done


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)

Versions of packages bootcd depends on:
ii  bootcd-i386               2.48           bootcd extension to create images 
ii  cpio                      2.5-1.3        GNU cpio -- a program to manage ar
ii  dosfstools                2.11-2         Utilities to create and check MS-D
ii  fdutils                   5.4-20040228-1 Linux floppy utilities
ii  file                      4.12-1         Determines file type using "magic"
ii  mkisofs                   4:2.01+01a01-2 Creates ISO-9660 CD-ROM filesystem
ii  realpath                  1.9.21         Return the canonicalized absolute 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to