From 8fc5ac96af45365a4a5e401b980e5aeeea169b9b Mon Sep 17 00:00:00 2001
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Mon, 15 Oct 2007 21:14:12 -0200
Subject: lh_binary_syslinux: check for ${INITFS} and not ${LH_INITRAMFS} to
 detect wrong path

---
 helpers/lh_binary_syslinux | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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
-- 
cgit v1.0