diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-18 11:33:46 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-11-18 11:33:46 +0100 |
commit | 964eab423a6feb72c75dec0ec07846e522609ded (patch) | |
tree | 88eaa8322932c57da937eddb97907a85fe746746 /helpers/lh_source_usb-hdd | |
parent | d26e57998f8b29664f433d403506b462944fc87e (diff) | |
download | vyos-live-build-964eab423a6feb72c75dec0ec07846e522609ded.tar.gz vyos-live-build-964eab423a6feb72c75dec0ec07846e522609ded.zip |
Fixing wrong parted call.
Diffstat (limited to 'helpers/lh_source_usb-hdd')
-rwxr-xr-x | helpers/lh_source_usb-hdd | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd index 59ef267a8..14b32d8c8 100755 --- a/helpers/lh_source_usb-hdd +++ b/helpers/lh_source_usb-hdd @@ -86,12 +86,24 @@ fi echo "!!! The following error/warning messages can be ignored !!!" Losetup $FREELO source.img 0 Chroot "parted -s ${FREELO} mklabel msdos" || true -Chroot "parted -s ${FREELO} mkpart primary 0.0 100%" || true +Chroot "parted -s ${FREELO} mkpart primary ${LH_BINARY_FILESYSTEM} 0.0 100%" || true Chroot "parted -s ${FREELO} set 1 lba off" || true ${LH_LOSETUP} -d ${FREELO} Losetup $FREELO source.img 1 -Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}" + +case "${LH_BINARY_FILESYSTEM}" in + fat16) + MKFS_OPTIONS="-F 16" + ;; + + fat32) + MKFS_OPTIONS="-F 32" + ;; +esac + +Chroot " mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}" + mkdir -p source.tmp ${LH_ROOT_COMMAND} mount ${FREELO} source.tmp cp -r source/* source.tmp |