Subject: Refactor mkfs handling.

From: Chris Lamb <[email-masked]>
Date: Sun, 15 Jun 2008 16:25:34 +0100

---
 helpers/lh_binary_usb-hdd | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 4b2ba81..a1343b5 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -141,21 +141,23 @@ Losetup $FREELO chroot/binary.img 1
 
 case "${LH_BINARY_FILESYSTEM}" in
 	fat16)
-		MKFS_OPTIONS="-F 16"
+		MKFS="vfat"	
+		MKFS_OPTIONS="-F 16 -n DEBIAN_LIVE"
 		;;
 
 	fat32)
-		MKFS_OPTIONS="-F 32"
+		MKFS="vfat"	
+		MKFS_OPTIONS="-F 32 -n DEBIAN_LIVE"
 		;;
 esac
 
 case "${LH_CHROOT_BUILD}" in
 	enabled)
-		Chroot "mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}"
+		Chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}"
 		;;
 
 	disabled)
-		mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}
+		mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}
 		;;
 esac
 
-- 
cgit v1.0