From 1c1e7db6c44d639fd51ee23061087c7d14b6ef6b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 28 Oct 2008 16:44:06 +0100 Subject: Generalizing internal Chroot(); by requiring its first argument to be the chroot directory. --- helpers/lh_source_usb-hdd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'helpers/lh_source_usb-hdd') diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd index c15d22591..7d62afa72 100755 --- a/helpers/lh_source_usb-hdd +++ b/helpers/lh_source_usb-hdd @@ -95,9 +95,9 @@ esac Echo_warning "!!! 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 ${PARTITION_TYPE} 0.0 100%" || true -Chroot "parted -s ${FREELO} set 1 lba off" || true +Chroot chroot "parted -s ${FREELO} mklabel msdos" || true +Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true +Chroot chroot "parted -s ${FREELO} set 1 lba off" || true ${LH_LOSETUP} -d ${FREELO} Losetup $FREELO source.img 1 @@ -119,7 +119,7 @@ case "${LH_BINARY_FILESYSTEM}" in ;; esac -Chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}" +Chroot chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}" mkdir -p source.tmp ${LH_ROOT_COMMAND} mount ${FREELO} source.tmp -- cgit v1.2.3