Am Montag, 4. Januar 2010 schrieben Sie: > Package: bootcd > Severity: normal > Tags: moreinfo Hi Bernd,
sorry for my late response. > > Because there have been more bugs in bootcd I built a new Version 3.17 > which hopefully fixes most bugs. But I could not reproduce bug #562560. > The last check I did was a fresh installation of squeeze with the new > created bootcd version 3.17 and then running bootcd2disk. And everything > seems to work fine. So I have set the severity to normal. > Yes, setting it to normal is ok for me. In the meantime I am using version 3.19, which is the latest in "testing". You are running the command "bootcd2disk" ? Well, am I doing wrong with the following command? bootcdwrite -s -c /home/testuser1/BACKUP/bootcd/ The configuration file, I am using, resides in /home/testuser1/BACKUP/bootcd/ > Could you pleases recheck the problem with bootcd 3.17 (I have uploaded it > a few minutes ago, so it may need some time until you find it in sid) and > if you can reproduce the bug, send me more information. Please also send > me the file /var/log/bootcdwrite.log. I will send you the whole log below. > > The behavior, that /var/log/bootcd is deleted, after bootcd2disk has > deleted all own temporary created files and directories in /var/log/bootcd > may be normal. It is normal if the directory is empty. And this seems to > have happened in your case. > Yes, I checked the script in /usr/bin, and discovered, that at start, /var/spool/bootcd is always deleted. So that might be normal. > But normally after running bootcd2disk a file called cdimage.iso should > have been created. This did not happen and this may be an error. So I > think the real problem comes from: --- > /usr/bin/genisoimage: No such file or directory. Invalid node - '/=/' > --- > But this is not enough information to see what happened. > IMO it is looking, as the command "genisoimage" is not found somehow (although it is there). Maybe some environment is set wrong? I will send you my log and my configuration. The system is debian/testing on 32-bit processor. > Regards > Bernd > Thank you very much for your help! Best regards Hans-J. Ullrich P.S. Just an idea: Maybe bootcdwrite should better reside in /sbin or /usr/sbin, as it might be a security hole, if everybody can make images of a system. IMO only root should be able to do so. But maybe I am wrong... Additional files:
--- /usr/bin/bootcdwrite 17.04.2010 --- To see full output: tail -f /home/testuser1/BACKUP/bootcd/log/bootcdwrite.log --- CONFVARS from Config --- APPEND ARCH auto BOOTCDMODPROBE standard BOOTFLOPPY no BOOT_ONLY_WITH_FLOPPY no CDDEV auto /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 /dev/scd1 CLEAN_VAR yes COMPRESS auto DEVFS no DISABLE_CRON /etc/cron.daily/find /etc/cron.daily/standard /etc/cron.daily/security DISPLAY /usr/share/bootcd/default.txt DO_CHECK yes ERRLOG /home/testuser1/BACKUP/bootcd/log/bootcdwrite.log FASTBOOT yes FLOPPY_RUNTIME_DEV /dev/fd0 INITRD /initrd.img ISOLINUX auto KERNEL /vmlinuz MKISOFS_CHNG NOTCOMPRESSED NOT_TO_CD /var/log /home/testuser1/BACKUP NOT_TO_RAM //home/testuser1 //root/.debtags //root/.aptitude //root/.mc //root/.gnupg //root/.subversion //root/Desktop RAMDISK_SIZE 65535 SRCDISK / SSHHOSTKEY yes SYSLINUX_SAVE yes TO_FSTAB TYP DVD UDEV_FIXNET yes VAR /var/spool/bootcd --- Checking for possible Problems --- --- CONFVARS checked by check_config --- APPEND ARCH i386 BOOTCDMODPROBE standard BOOTFLOPPY no BOOT_ONLY_WITH_FLOPPY no CDDEV auto /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 /dev/scd1 CDDEV1 auto CDDEVR /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 /dev/scd1 CHANGES /var/spool/bootcd/changes CLEAN_VAR yes COMPRESS auto DEVFS no DISABLE_CRON /etc/cron.daily/find /etc/cron.daily/standard /etc/cron.daily/security DISPLAY /usr/share/bootcd/default.txt DO_CHECK yes ERRLOG /home/testuser1/BACKUP/bootcd/log/bootcdwrite.log FASTBOOT yes FLOPPY_RUNTIME_DEV /dev/fd0 INITRD /boot/initrd.img-2.6.32-3-686 ISOLINUX yes KERNEL /boot/vmlinuz-2.6.32-3-686 MKISOFS_CHNG NOTCOMPRESSED NOT_TO_CD /var/log /home/testuser1/BACKUP NOT_TO_RAM /home/testuser1 /root/.debtags /root/.aptitude /root/.mc /root/.gnupg /root/.subversion /root/Desktop RAMDISK_SIZE 65535 REL_INITRD /boot/initrd.img-2.6.32-3-686 REL_KERNEL /boot/vmlinuz-2.6.32-3-686 SRCDI SRCDISK / SSHHOSTKEY yes SYSLINUX_SAVE yes TO_FSTAB TYP DVD UDEV_FIXNET yes VAR /var/spool/bootcd VERSION 3.19 /var/cache/apt will be cleaned (apt-get clean) ! --- Cleanup --- du -klsc /home/testuser1/BACKUP /tmp /var/log 768640 /home/testuser1/BACKUP 32 /tmp 50780 /var/log 819452 total S_NOT_TO_CD=<819452> du -klsc /home /cdrom /floppy /lost+found /initrd.img /vmlinuz /.subversion /bin /opt /dev /etc /initrd /lib /lib64 /media /mnt /root /sbin /selinux /srv /tmp /usr /var /boot /initrd.img.old /vmlinuz.old 768704 /home 0 /cdrom 0 /floppy 4 /lost+found 0 /initrd.img 0 /vmlinuz 44 /.subversion 5716 /bin 213928 /opt 140 /dev 37652 /etc 4 /initrd 160248 /lib 3060 /lib64 12 /media 4 /mnt 192 /root 5032 /sbin 4 /selinux 4 /srv 32 /tmp 2092772 /usr 397564 /var 35690 /boot 0 /initrd.img.old 0 /vmlinuz.old 3720806 total S_CD_ALL=<3720806> S_VAR=<5160340> S_NEED_COMPRESS=<5802708> S_CD=<4700000> du -klsc /home/testuser1 /root/.aptitude /root/.debtags /root/.gnupg /root/.mc /root/.subversion /root/Desktop /var/log 768700 /home/testuser1 20 /root/.aptitude 4 /root/.debtags 24 /root/.gnupg 28 /root/.mc 52 /root/.subversion 20 /root/Desktop 50780 /var/log 819628 total S_NOT_TO_RAMCD=<819628> du -klsc /etc /home /root /var/log 37652 /etc 768704 /home 192 /root 50780 /var/log 857328 total S_RAM_ALL=<857328> S_NEED_RAM=<37700> S_RAM=<58981> S_NEED_COMPRESS > S_VAR (5802708 ) 5160340) To enable compression (COMPRESS=yes) there must be much space (S_VAR) available in /var/spool/bootcd to hold extra space for compression. We need double as much space (S_NEED_COMPRESS) as will be copied to CD. but the space available is not enough => COMPRESS=no --- WARNING --- CONFIG_BLK_DEV_RAM=y seems not to be configured in /boot/vmlinuz-2.6.32-3-686 To run bootcd some features have to be compiled in the kernel. Please read the FAQ and check if all necessary features are enabled. --- (e)xit (i)gnore --- i (SCRIPT) --- Sizes in KByte (du -klsc ) --- NOT_TO_CD = . . . . . . . . . . . . . . . . . . . . . . . . . . . 819452 CD_ALL (SRCDISK v NOT_TO_CD) = . . . . . . . . . . . . . . . . . . 3720806 Needed = CD_ALL - NOT_TO_CD . . . . . . . . . . . . . . . . . . . 2901354 DVD+ (4.7 billion bytes) = . . . . . . . . . . . . . . . . . . . . 4700000 OK - SRCDISK does fit on DVD (Needed <= DVD) VAR = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5160340 OK - enough space in /var/spool/bootcd (Needed <= VAR) NOT_TO_RAMCD (NOT_TO_RAM v NOT_TO_CD) = . . . . . . . . . . . . . 819628 RAM_ALL (etc v home v root v NOT_TO_RAM v NOT_TO_CD) = . . . . . . 857328 Needed RAM (RAM_ALL - NOT_TO_RAMCD) = . . . . . . . . . . . . . . 37700 90 % of RAM = . . . . . . . . . . . . . . . . . . . . . . . . . . 58981 OK - enough RAM (Needed RAM <= 90 % of RAM) --- Building Modifications --- Creating OpenSSH_2 ssh_host_rsa_key Generating public/private rsa key pair. Your identification has been saved in /var/spool/bootcd/changes/etc.ro/ssh/ssh_host_rsa_key. Your public key has been saved in /var/spool/bootcd/changes/etc.ro/ssh/ssh_host_rsa_key.pub. The key fingerprint is: 3c:3e:d4:27:b9:93:c7:dd:ed:19:62:e8:f1:45:d2:f0 r...@uit-secure-1 The key's randomart image is: +--[ RSA 1024]----+ | | | | | . | | . . . + | | S + .. E | | o . *..o..| | o +ooo.oo| | ..o+ o.o| | . . ..| +-----------------+ Creating OpenSSH_2 ssh_host_dsa_key Generating public/private dsa key pair. Your identification has been saved in /var/spool/bootcd/changes/etc.ro/ssh/ssh_host_dsa_key. Your public key has been saved in /var/spool/bootcd/changes/etc.ro/ssh/ssh_host_dsa_key.pub. The key fingerprint is: 26:f3:27:c9:d8:1a:12:0f:38:fd:81:ad:7d:7e:de:ab r...@uit-secure-1 The key's randomart image is: +--[ DSA 1024]----+ | | | | | | | o o | | o = = S | | . B X . | | o * B . | | . = o.. | | . .oE.o. | +-----------------+ add kernel /boot/vmlinuz-2.6.32-3-686 --- Creating /ram[1|2].cpio.gz for FASTBOOT --- FG (FASTBOOT GREP) = <grep -v -e ^home/testuser1 -e ^root/.debtags -e ^root/.aptitude -e ^root/.mc -e ^root/.gnupg -e ^root/.subversion -e ^root/Desktop -e ^var/log -e ^home/testuser1/BACKUP> --- Creating CD-Image --- NOT_TO_CD arguments for /usr/bin/genisoimage = <-x /var/log -x /home/testuser1/BACKUP > GRAFTPOINTS=<> /usr/bin/genisoimage: No such file or directory. Invalid node - '/=/'. exit=2 --- OUTPUT from </usr/bin/genisoimage -x /var/log -x /home/testuser1/BACKUP -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 /proc -x /sys -x /var/spool/bootcd -x /home/testuser1/BACKUP/bootcd/log/bootcdwrite.log -x /etc -x /var -x /tmp -x /dev -x /home -x /root -x /etc/udev/rules.d/70-persistent-net.rules -x /etc/mtab -x /etc/cron.daily/standard -x /etc/fstab -x /etc/ssh/ssh_host_rsa_key -x /etc/ssh/ssh_host_dsa_key -x /etc/ssh/ssh_host_rsa_key.pub -x /etc/ssh/ssh_host_dsa_key.pub -x /usr/share/bootcd/bootcd-run.lib -x /usr/share/bootcd/bootcd2disk.lib /=/ /=/var/spool/bootcd/changes /home.ro/=/home /root.ro/=/root /var.ro/=/var /etc.ro/=/etc /dev.ro/=/dev> --- /usr/bin/genisoimage: No such file or directory. Invalid node - '/=/'. exit=2 --- (e)xit (r)edo (i)gnore --- r /usr/bin/genisoimage: No such file or directory. Invalid node - '/=/'. exit=2 --- OUTPUT from </usr/bin/genisoimage -x /var/log -x /home/testuser1/BACKUP -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 /proc -x /sys -x /var/spool/bootcd -x /home/testuser1/BACKUP/bootcd/log/bootcdwrite.log -x /etc -x /var -x /tmp -x /dev -x /home -x /root -x /etc/udev/rules.d/70-persistent-net.rules -x /etc/mtab -x /etc/cron.daily/standard -x /etc/fstab -x /etc/ssh/ssh_host_rsa_key -x /etc/ssh/ssh_host_dsa_key -x /etc/ssh/ssh_host_rsa_key.pub -x /etc/ssh/ssh_host_dsa_key.pub -x /usr/share/bootcd/bootcd-run.lib -x /usr/share/bootcd/bootcd2disk.lib /=/ /=/var/spool/bootcd/changes /home.ro/=/home /root.ro/=/root /var.ro/=/var /etc.ro/=/etc /dev.ro/=/dev> --- /usr/bin/genisoimage: No such file or directory. Invalid node - '/=/'. exit=2 --- (e)xit (r)edo (i)gnore ---
# # bootcdwrite.conf # # look for man bootcdwrite.conf(5) for more informations # # this path was added as prefix to KERNEL, INITRD, DISABLE_CRON, NOT_TO_CD # and NOT_TO_RAM, if this are relativ paths (without starting "/") SRCDISK=/ # Define the kernel which is used KERNEL=vmlinuz # additional options for the kernel APPEND="" # path to initrd INITRD="initrd.img" # define multiple kernels with KERNEL<number> and label KLABEL<number> # default label is "linux<number> # KLABEL1=686-3 # KERNEL1=/boot/vmlinuz-2.6.18-3-686-bigmem # INITRD1=/boot/initrd.img-2.6.18-3-686-bigmem # APPEND1= # Text to Display at Boottime (see syslinux doku) # This option is not supported for hppa # display info files on boot prompt (F1 = DISPLAY, F2 = DISPLAY2 ...) # (kernelinfo is replaced with a file which includes the kernelinfo) DISPLAY="/usr/share/bootcd/default.txt" DISPLAY2="kernelinfo" # size of each ramdisk ram1 and ram2 (ram1: /dev /etc /home /root /tmp, # (ram2: /var) RAMDISK_SIZE=65535 # typ is CD or DVD TYP=DVD # specify one or more CD devices to boot from, first is default # "auto" try to find the bootcd on all SCSI and IDE CDROMS CDDEV="auto /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 /dev/scd1" # do some checks or not DO_CHECK=yes # exclude some files or directories from writing to cd NOT_TO_CD="/var/log /home/testuser1/BACKUP" # exclude some files or directories from loading to ram # Because most people's home and root dir are to large to include # in RAM, subdirectories can be excluded: NOT_TO_RAM="$(find $SRCDISK/home $SRCDISK/root -maxdepth 1 -mindepth 1 -type d)" # If you are using ssh it is helpful to have a unique ssh hostkey for # each CD. SSHHOSTKEY=yes # If you are using udev filesystem and install the image only on other # machines you need to set this to "yes" because the network interfaces are # hardwired in /etc/udev/rules.d/z25_persistent-net.rules (etch) or in # /etc/udev/rules.d/70-persistent-net.rules (lenny) and we must remove # them. You can do this also on bootcd2disk. UDEV_FIXNET="yes" # logfile ERRLOG=/home/testuser1/BACKUP/bootcd/log/bootcdwrite.log # where the image resists after build VAR=/var/spool/bootcd # FLOPPY_RUNTIME_DEV=<floppy device>|"" # When you boot from cd you read changes from this device. FLOPPY_RUNTIME_DEV=/dev/fd0 # BOOTFLOPPY=yes|no # If you want to boot from FLOPPY specify BOOTFLOPPY=yes. This reduces # space on floppy used by bootcdflopcp. For this to work FLOPPY_CREATE_DEV # has to be specified. # For hppa this option is not supported and must be set to no. # Default: # BOOTFLOPPY=no BOOTFLOPPY=no # If you want to boot several machines from the same cdrom, you must have # the individual configuartion (exp: /etc/network/interfaces) on floppy. # If one can not be mounted it is a good idea to stop booting and to wait # for manual interaction instead of comming up with a wrong configuration. BOOT_ONLY_WITH_FLOPPY=no # delete some chached files in /var CLEAN_VAR=yes # If FASTBOOT=yes then additional images for the ramdisk will be created # by bootcdwrite and copied to CD. This allows faster booting, # but needs extra space on CD FASTBOOT=yes # use isolinux (yes,no,auto), auto check for isolinux and use it ISOLINUX=auto # use -s (save, slow, stupid) option on syslinux SYSLINUX_SAVE=yes # choose the architecture # ARCH=auto|hppa|i386|ia64 ARCH=auto # use devfs or not DEVFS=no # addiditionel entries to fstab # TO_FSTAB="/dev/hdc1 /home ext3 defaults 1 1 # /dev/usb0 /mnt/usb ext3 defaults 1 1 " TO_FSTAB="" # transparent compression of ISO 9660/Rock Ridge filessytem # ("auto" checks for space to compress the image on the local system) # COMPRESS=<yes|no|auto> COMPRESS="auto" # Files or Directory-Trees that should never be compressed on CD can be listed # here. You have to define the Path as it is on the CD, (with /var.ro # instead of /var) NOTCOMPRESSED="" # Files listed in DISABLE_CRON will be on the cdrom with a .no_run_on_bootcd # suffix so run-parts won't execute them. The original file will be a link to # /bin/true. # DISABLE_CRON="etc/cron.daily/find etc/cron.daily/standard etc/cron.daily/security" # With this variable you can add or delete some options # given to mkisofs by bootcdwrite. # Please create debian-bugreports if you have to use special # options, not mentioned here. Then I can list this options here. # MKISOFS_CHNG="" # function extra_changes() # It is possible to define a function called extra_changes to have some # files modified on the ISO image. Here is an example: # # function extra_changes() { # echo "noname" >$VAR/changes/etc.ro/hostname # # mkdir -p $VAR/changes/etc.ro/network # ( echo "auto lo" # echo "iface lo inet loopback" # echo "" # echo "auto eth0" # echo "iface eth0 inet static" # echo " address 0.0.0.0" # echo " netmask 255.255.255.0" # ) >$VAR/changes/etc.ro/network/interfaces # # echo "127.0.0.1 localhost noname" >$VAR/changes/etc.ro/hosts # # cat $SRCDISK/etc/passwd | # grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc.ro/passwd # # cat $SRCDISK/etc/shadow | # grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc.ro/shadow # # cat $SRCDISK/etc/group | # grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc.ro/group # } # # # BOOTCDMODPROBE=standard|bootcd|auto # If booted from initrd bootcd has to load the necessary modules. # If only modules provided by initramfs-tools are needed you can # specify "standard" here. If bootcd should try extra hard to load # neccessary modules you can specify "bootcd" here. # Bootcd will use discover for this purpose. So discover has to be installed. # If you specify auto, bootcd will check if discover is installed. # If it is installed # BOOTCDMODPROBE=bootcd will be set, if not # BOOTCDMODPROBE=standard will be set. # Be aware that people have reported, that sometimes BOOTCDMODPROBE=bootcd # may not work but sometimes it is needed. BOOTCDMODPROBE=standard