Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bootable-tree-to-removable-img.sh
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2009-07-05 11:43:10 (GMT)
committer Martin Dengler <martin@martindengler.com>2009-07-05 11:43:10 (GMT)
commitf18e05773e947c6254caf36a86a189ed5b208db4 (patch)
treed7fb060a99e17e539d1ddad786c36c947fb49f09 /bootable-tree-to-removable-img.sh
parentb04ad4e58b89899aad86399db690edd9bc03cb05 (diff)
use Makefile instead of 'build'
Diffstat (limited to 'bootable-tree-to-removable-img.sh')
-rwxr-xr-xbootable-tree-to-removable-img.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/bootable-tree-to-removable-img.sh b/bootable-tree-to-removable-img.sh
index 7ec8c7b..f78ff19 100755
--- a/bootable-tree-to-removable-img.sh
+++ b/bootable-tree-to-removable-img.sh
@@ -20,13 +20,13 @@ trap exitclean SIGINT SIGTERM
PATH=/sbin:/usr/sbin:$PATH
ROOT=$1
-output_stem=${2:-soas}
+output=${2:-soas}
-echo "Making removable image $ROOT --> $output_stem"
+echo "Making removable image $ROOT --> $output"
TMP_MNT=$(mktemp -d ./removable.XXXXXX)
-device=`../make_fake_device.sh ${output_stem}.img`
+device=`../make_fake_device.sh $output`
mount -t ext2 $device $TMP_MNT
cp -a $ROOT/* $TMP_MNT
@@ -35,8 +35,6 @@ cp ../olpc.fth.bootmenu $TMP_MNT/boot/olpc.fth
umount $TMP_MNT
losetup -d $device
-tar cf - ${output_stem}.img | lzma -1 > ${output_stem}.img.tar.lzma
-
echo "Done making removable image $ROOT --> $output_stem"
cleanup