summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 16:27:35 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commitcc8092771ea2b95cc8e328b7e7042d404379534c (patch)
tree6e24abc44ababfbe1f7f644a505f43cbdc03a4ad /helpers
parentc96228be81fcf23eb7a50e1dbba59bd6f5455627 (diff)
downloadlive-build-cc8092771ea2b95cc8e328b7e7042d404379534c.zip
live-build-cc8092771ea2b95cc8e328b7e7042d404379534c.tar.gz
Add support for usb-hdd on sparc (requires parted 1.8 from experimental).
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary_silo4
-rwxr-xr-xhelpers/lh_binary_usb-hdd26
2 files changed, 28 insertions, 2 deletions
diff --git a/helpers/lh_binary_silo b/helpers/lh_binary_silo
index 8274d39..22248bc 100755
--- a/helpers/lh_binary_silo
+++ b/helpers/lh_binary_silo
@@ -111,7 +111,7 @@ esac
# Setting destination directory
case "${LH_BINARY_IMAGES}" in
- iso)
+ iso|usb-hdd)
case "${LH_INITRAMFS}" in
casper)
DESTDIR_LIVE="binary/casper"
@@ -125,7 +125,7 @@ case "${LH_BINARY_IMAGES}" in
DESTDIR_INSTALL="binary/install"
;;
- net|tar|usb-hdd)
+ net|tar)
Echo_error "not yet supported, aborting (FIXME)."
exit 1
;;
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index a1343b5..6dee10d 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -53,6 +53,20 @@ Check_package chroot/sbin/mkdosfs dosfstools
Check_package chroot/usr/share/doc/mtools mtools
Check_package chroot/sbin/parted parted
+if [ "${LH_ARCHITECTURE}" = "sparc" ]
+then
+ case "${LH_BINARY_FILESYSTEM}" in
+ ext2|ext3)
+ Check_package chroot/sbin/mkfs.ext2 e2fsprogs
+ ;;
+
+ *)
+ Echo_error "Sparc only supports booting from ext2, ext3 (or ufs)"
+ exit 1
+ ;;
+ esac
+fi
+
case "${LH_BOOTLOADER}" in
grub)
Check_package chroot/usr/sbin/grub grub
@@ -92,12 +106,19 @@ echo "!!! The following error/warning messages can be ignored !!!"
Losetup $FREELO chroot/binary.img 0
case "${LH_ARCHITECTURE}" in
+ sparc)
+ PARTITION_TABLE_TYPE="sun"
+ ;;
*)
PARTITION_TABLE_TYPE="msdos"
;;
esac
case "${LH_BINARY_FILESYSTEM}" in
+ ext2|ext3)
+ PARTITION_TYPE="ext2"
+ ;;
+
fat16|fat32)
PARTITION_TYPE="${LH_BINARY_FILESYSTEM}"
;;
@@ -140,6 +161,11 @@ FREELO="$(${LH_LOSETUP} -f)"
Losetup $FREELO chroot/binary.img 1
case "${LH_BINARY_FILESYSTEM}" in
+ ext2|ext3)
+ MKFS="${LH_BINARY_FILESYSTEM}"
+ MKFS_OPTIONS="-L DEBIAN_LIVE -m 0"
+ ;;
+
fat16)
MKFS="vfat"
MKFS_OPTIONS="-F 16 -n DEBIAN_LIVE"