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

invalid syslinux config in case of usb-hdd for sid/lenny



I have successfully build and boot usb-hdd with sid after applying the patch
below (live-helper     1.0~a16~2243 from
http://live.debian.net/debian-snapshots/):

diff -u lh_binary_syslinux{-1.0~a16~2243,}
--- lh_binary_syslinux-1.0~a16~2243     2007-06-25 14:15:46.000000000 +0400
+++ lh_binary_syslinux  2007-06-26 16:53:49.000000000 +0400
@@ -424,7 +424,7 @@
                mkdir -p "${DESTDIR}"
                cp chroot/usr/lib/syslinux/isolinux.bin "${DESTDIR}"/syslinux.bin
                cp -r "${LIVE_TEMPLATES}"/syslinux/* "${DESTDIR}"
-               mv binary/isolinux.cfg "${DESTDIR}"/syslinux.cfg
+               mv "${DESTDIR}"/isolinux.cfg "${DESTDIR}"/syslinux.cfg

                # Copying splash screen
                if [ -f config/binary_syslinux/splash.rle ]
@@ -453,8 +453,8 @@
                rm -f "${DESTDIR}"/pxelinux.cfg

                # Workaround for syslinux (<< 3.36) which doesn't support long file/path names
-               if [ "${LIVE_DISTRIBUTION}" = "etch" ]
-               then
+               #if [ "${LIVE_DISTRIBUTION}" = "etch" ]
+               #then
                        if [ "`echo ${LIVE_LINUX_FLAVOURS} | wc -w`" -gt "1" ]
                        then
                                for FLAVOUR in ${LIVE_LINUX_FLAVOURS}
@@ -470,7 +470,7 @@
                                mv "${DESTDIR_LIVE}"/initrd.img-*-${LIVE_LINUX_FLAVOURS} "${DESTDIR_LIVE}"/initrd.img
                                sed -i -e "s/vmlinuz-.*-${LIVE_LINUX_FLAVOURS}/vmlinuz/g" -e "s/initrd.img-.*-${LIVE_LINUX_FLAVOURS}/initrd.img/g" "${DESTDIR}"/syslinux.cfg
                        fi
-               fi
+               #fi
                ;;
 esac


-- 

*********************************
****   Vladimir Stavrinov  ******
*******   vs at inist.ru   ******
*********************************



Reply to: