[SCM] debian-live/live-helper branch, master, updated. 1.0_a31-1-13-gb1d10e6

Otavio Salvador otavio at ossystems.com.br
Wed Oct 17 18:46:24 UTC 2007


The branch, master has been updated
       via  b1d10e6a28fa8585f9e21fde1cb9f84553e481f6 (commit)
       via  763a576d887113eba4601340e2992b813edfc1cc (commit)
       via  293ef95b91b1d7be423dcadf864c8abe27df9351 (commit)
      from  cede7843d2c4a932f182edddd616e2721ce01f3b (commit)


- Shortlog ------------------------------------------------------------
b1d10e6 lh_binary_syslinux: always put splash image as splash.{rle,png} to avoid filename issues
763a576 lh_binary_syslinux: check for ${INITFS} and not ${LH_INITRAMFS} to detect wrong path
293ef95 lh_binary_syslinux: fix usb-hdd etch images

Summary of changes:
 helpers/lh_binary_linux-image |   27 ++---------
 helpers/lh_binary_memtest     |   36 ++-------------
 helpers/lh_binary_syslinux    |   99 +++++++++++++++++++++++++----------------
 3 files changed, 70 insertions(+), 92 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit b1d10e6a28fa8585f9e21fde1cb9f84553e481f6
Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Mon Oct 15 21:23:08 2007 -0200

    lh_binary_syslinux: always put splash image as splash.{rle,png} to avoid filename issues

diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 7353461..68fa0f3 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -211,32 +211,31 @@ Copy_syslinux_templates ()
 		# Copying custom splash screen
 		if [ "${LH_SYSLINUX_SPLASH}" = "none" ] 
 		then
-         # no splash screen
+			# no splash screen
 			SPLASH=""
 			rm -f ${SCREEN_PATH}/splash.rle
 			rm -f ${DATA_PATH}/splash.png
 		else
-         if [ -z "${LH_SYSLINUX_SPLASH}" ]
-         then
-			   if [ "${LH_SYSLINUX_MENU}" = "disabled" ]
-			   then
-			      SPLASH="${LIVE_DATA_PATH}/splash.rle"
-			   else
-			      SPLASH="${LIVE_DATA_PATH}/splash.png"
+			if [ "${LH_SYSLINUX_MENU}" = "disabled" ]
+			then
+			    SPLASH="${LIVE_DATA_PATH}/splash.rle"
+			else
+			    SPLASH="${LIVE_DATA_PATH}/splash.png"
             fi
-         else
-			   if [ ! -e "${LH_SYSLINUX_SPLASH}" ]
-			   then
-			      Echo_error "${LH_SYSLINUX_SPLASH} doen't exist"
-				   exit 1
-            else
-			      rm -f ${SCREEN_PATH}/splash.rle
-			      rm -f ${DATA_PATH}/splash.png
-			      cp -f "${LH_SYSLINUX_SPLASH}" ${DATA_PATH}
-			      SPLASH="${LIVE_DATA_PATH}/$(basename ${LH_SYSLINUX_SPLASH})"
-			   fi
-		   fi
-      fi
+
+			if [ -n "${LH_SYSLINUX_SPLASH}" ]
+			then
+				if [ ! -e "${LH_SYSLINUX_SPLASH}" ]
+				then
+					Echo_error "${LH_SYSLINUX_SPLASH} doen't exist"
+					exit 1
+				else
+					rm -f ${SCREEN_PATH}/splash.rle
+					rm -f ${DATA_PATH}/splash.png
+					cp -f "${LH_SYSLINUX_SPLASH}" ${DATA_PATH}/`basename ${SPLASH}`
+				fi
+			fi
+		fi
 }
 
 Configure_syslinux_templates ()

commit 763a576d887113eba4601340e2992b813edfc1cc
Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Mon Oct 15 21:14:12 2007 -0200

    lh_binary_syslinux: check for ${INITFS} and not ${LH_INITRAMFS} to detect wrong path

diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index e52c5d3..7353461 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -433,11 +433,11 @@ LH_BOOTAPPEND_LIVE="$(echo ${LH_BOOTAPPEND_LIVE} | sed -e 's/  //')"
 FAILSAFE="noapic noapm nodma nomce nolapic nosmp vga=normal"
 
 # Moving kernels into place
-if [ "binary/${LH_INITRAMFS}" != "${KERNEL_PATH}" ]
+if [ "binary/${INITFS}" != "${KERNEL_PATH}" ]
 then
-	mv binary/${LH_INITRAMFS}/vmlinuz* ${KERNEL_PATH}
-	mv binary/${LH_INITRAMFS}/initrd* ${KERNEL_PATH}
-	mv binary/${LH_INITRAMFS}/memtest ${KERNEL_PATH}
+	mv binary/${INITFS}/vmlinuz* ${KERNEL_PATH}
+	mv binary/${INITFS}/initrd* ${KERNEL_PATH}
+	mv binary/${INITFS}/memtest ${KERNEL_PATH}
 fi
 
 # Default entries

commit 293ef95b91b1d7be423dcadf864c8abe27df9351
Author: Jesse Hathaway <jesse at mbuki-mvuki.org>
Date:   Mon Oct 15 18:04:48 2007 -0400

    lh_binary_syslinux: fix usb-hdd etch images
    
    I did not realize that the syslinux boot methods,
    iso, net, & hdd do not have feature parity for any
    given version. As per old comments etch syslinux
    v3.31 does not support sub directories on FAT images

diff --git a/helpers/lh_binary_linux-image b/helpers/lh_binary_linux-image
index 33c2fbb..6795ec4 100755
--- a/helpers/lh_binary_linux-image
+++ b/helpers/lh_binary_linux-image
@@ -47,32 +47,13 @@ Check_lockfile .lock
 # Creating lock file
 Create_lockfile .lock
 
-# Setting destination directory
-case "${LH_BINARY_IMAGES}" in
-	iso)
-		case "${LH_INITRAMFS}" in
-			casper)
-				DESTDIR="binary/casper"
-				;;
-
-			live-initramfs)
-				DESTDIR="binary/live"
-				;;
-		esac
-		;;
-
-	net)
-		DESTDIR="tftpboot"
+case "${LH_INITRAMFS}" in
+	casper)
+		DESTDIR="binary/casper"
 		;;
 
-	tar|usb-hdd)
+	live-initramfs)
 		DESTDIR="binary/live"
-
-		# Workaround for syslinux (<< 3.36) which doesn't support long file/path names
-		if [ "${LH_DISTRIBUTION}" = "etch" ] && [ "${LH_BOOTLOADER}" = "syslinux" ]
-		then
-			DESTDIR="binary"
-		fi
 		;;
 esac
 
diff --git a/helpers/lh_binary_memtest b/helpers/lh_binary_memtest
index 946729b..557b945 100755
--- a/helpers/lh_binary_memtest
+++ b/helpers/lh_binary_memtest
@@ -88,39 +88,13 @@ Restore_cache cache/packages_binary
 Install_package
 
 # Setting destination directory
-case "${LH_BINARY_IMAGES}" in
-	iso)
-		case "${LH_INITRAMFS}" in
-			casper)
-				DESTDIR="binary/casper"
-				;;
-
-			live-initramfs)
-				DESTDIR="binary/live"
-				;;
-		esac
+case "${LH_INITRAMFS}" in
+	casper)
+		DESTDIR="binary/casper"
 		;;
 
-	net)
-		DESTDIR="tftpboot"
-		;;
-
-	tar|usb-hdd)
-		case "${LH_INITRAMFS}" in
-			casper)
-				DESTDIR="binary/casper"
-				;;
-
-			live-initramfs)
-				DESTDIR="binary/live"
-				;;
-		esac
-
-		# Workaround for syslinux (<< 3.36) which doesn't support long file/path names
-		if [ "${LH_DISTRIBUTION}" = "etch" ] && [ "${LH_BOOTLOADER}" = "syslinux" ]
-		then
-			DESTDIR="binary"
-		fi
+	live-initramfs)
+		DESTDIR="binary/live"
 		;;
 esac
 
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 8732c1c..e52c5d3 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -166,9 +166,11 @@ Copy_syslinux_templates ()
 
 		if [ "${LH_SYSLINUX_MENU}" = "disabled" ]
 		then
-			cp -r "${TEMPLATES}"/normal/* ${SCREEN_PATH}
+			cp "${TEMPLATES}"/normal/*.cfg ${SCREEN_PATH}
+			cp "${TEMPLATES}"/normal/data/* ${DATA_PATH}
 		else
-			cp -r "${TEMPLATES}"/menu/* ${SCREEN_PATH}
+			cp "${TEMPLATES}"/menu/*.cfg ${SCREEN_PATH}
+			cp "${TEMPLATES}"/menu/data/* ${DATA_PATH}
          # Grab menu binary from chroot
          MENUMODULE=$(grep 'menu.c32' ${TEMPLATES}/menu/header.cfg | sed 's,default\s*.*/\(.*menu.c32\)$,\1,g')
 			cp chroot/usr/lib/syslinux/"${MENUMODULE}" ${DATA_PATH}
@@ -257,27 +259,36 @@ Configure_syslinux_templates ()
              $template_file
    done
 
-   # Syslinux v3.31 in etch does not support include statement
+	# Syslinux v3.31 in etch does not support include statements
 	if [ "${LH_DISTRIBUTION}" = "etch" ]
 	then
-		while grep -q ^include ${SYSLINUX_PATH}/syslinux.cfg
+		while grep -q ^include ${SCREEN_PATH}/syslinux.cfg
 	   do
-			INCLUDES=$(grep ^include ${SYSLINUX_PATH}/syslinux.cfg |awk '{print $2}')
+			INCLUDES=$(grep ^include ${SCREEN_PATH}/syslinux.cfg |awk '{print $2}')
 			for FILE_PATH in ${INCLUDES}
 			do
 			   FILE_NAME=$(basename ${FILE_PATH})
 			   sed -i -e '\@include '${FILE_PATH}'@ {
-	         r '${SYSLINUX_PATH}/${FILE_NAME}'
-	         d  
-	         }' ${SYSLINUX_PATH}/syslinux.cfg
+				r '${SCREEN_PATH}/${FILE_NAME}'
+				d  
+				}' ${SCREEN_PATH}/syslinux.cfg
             # remove the files, which were included
-            if [ -e ${SYSLINUX_PATH}/${FILE_NAME} ]
+				if [ -e ${SCREEN_PATH}/${FILE_NAME} ]
             then
-               rm ${SYSLINUX_PATH}/${FILE_NAME}
+					rm ${SCREEN_PATH}/${FILE_NAME}
             fi
 			done
       done
-   fi
+		# Syslinux v3.31 in etch does not support sub directories, /path/kernel,
+		# when using FAT hard drive images, remove leading /'s
+		if [ "${LH_BINARY_IMAGES}" = "usb-hdd" ]
+		then
+			for FILE in ${SCREEN_PATH}/syslinux.cfg ${SCREEN_PATH}/boot.txt
+			do
+				sed -i -e 's@/@@' ${FILE}
+			done
+		fi
+	fi
 }
 
 # Setting up common variables
@@ -326,7 +337,20 @@ case "${LH_BINARY_IMAGES}" in
       LIVE_INSTALL_KERNEL_PATH="/install"
       LIVE_SCREEN_PATH="/syslinux"
       LIVE_DATA_PATH="${LIVE_SCREEN_PATH}/data"
-      MEDIA="hd-media"
+		# Syslinux v3.31 in etch does not support sub directories, /path/kernel,
+		# when using FAT hard drive images
+		if [ "${LH_DISTRIBUTION}" = "etch" ] && [ "${LH_BINARY_IMAGES}" = "usb-hdd" ]
+		then
+			SYSLINUX_PATH="binary"
+			KERNEL_PATH="binary"
+			SCREEN_PATH="binary"
+			DATA_PATH="binary"
+			LIVE_KERNEL_PATH=""
+			LIVE_INSTALL_KERNEL_PATH=""
+			LIVE_SCREEN_PATH=""
+			LIVE_DATA_PATH=""
+		fi
+		MEDIA="hd-media"
 		;;
 esac
 
@@ -408,12 +432,12 @@ LH_BOOTAPPEND_LIVE="$(echo ${LH_BOOTAPPEND_LIVE} | sed -e 's/  //')"
 # Parameters are listed at: linux/Documentation/kernel-parameters.txt
 FAILSAFE="noapic noapm nodma nomce nolapic nosmp vga=normal"
 
-# Assembling kernel configuration
-if [ ${LH_BINARY_IMAGES} = "net" ]
+# Moving kernels into place
+if [ "binary/${LH_INITRAMFS}" != "${KERNEL_PATH}" ]
 then
-   mv ${SYSLINUX_PATH}/vmlinuz* ${KERNEL_PATH}
-   mv ${SYSLINUX_PATH}/initrd* ${KERNEL_PATH}
-   mv ${SYSLINUX_PATH}/memtest ${KERNEL_PATH}
+	mv binary/${LH_INITRAMFS}/vmlinuz* ${KERNEL_PATH}
+	mv binary/${LH_INITRAMFS}/initrd* ${KERNEL_PATH}
+	mv binary/${LH_INITRAMFS}/memtest ${KERNEL_PATH}
 fi
 
 # Default entries

-- 
debian-live/live-helper



More information about the debian-live-changes mailing list