# HG changeset patch # User Richard Dunbar # Date 1333499123 0 # Node ID c46b598e48aa0cab17c947474248dda44d431c40 # Parent dc371fa292f41091dc61c403853f922e54c4c73d tazlito/writeiso: source kernel and boot files from loop mounted iso diff -r dc371fa292f4 -r c46b598e48aa tazlito --- a/tazlito Sun Apr 01 16:43:17 2012 +0100 +++ b/tazlito Wed Apr 04 00:25:23 2012 +0000 @@ -2289,17 +2289,21 @@ mv -f /rootfs.gz $ROOTCD/boot # Now we need the kernel and isolinux files. - if mount /dev/cdrom /media/cdrom 2>/dev/null; then + if mount /dev/cdrom /media/cdrom 2>/dev/null; then cp /media/cdrom/boot/bzImage $ROOTCD/boot cp -a /media/cdrom/boot/isolinux $ROOTCD/boot unmeta_boot $ROOTCD umount /media/cdrom - else + elif mount |grep /media/cdrom; then + cp /media/cdrom/boot/bzImage $ROOTCD/boot + cp -a /media/cdrom/boot/isolinux $ROOTCD/boot + unmeta_boot $ROOTCD + umount /media/cdrom; + else echo -e " -Unable to mount the cdrom to copy the Kernel and needed files. When SliTaz -is running in RAM the kernel and bootloader files are kept on the cdrom. -Please insert a LiveCD or unmount the current cdrom to let Tazlito handle -the media.\n" +When SliTaz is running in RAM the kernel and bootloader files are kept +on the cdrom. Please insert a LiveCD or loop mount the slitaz.iso to +/media/cdrom to let Tazlito copy the files.\n" echo -en "----\nENTER to continue..."; read i exit 1 fi