diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-12-10 10:05:02 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:54:55 +0100 |
commit | 258cbd40cff463f4adb57f40d3338e460c7e90f2 (patch) | |
tree | 583071ab62498bf3213861a09e676e3f22d94b48 /testing/scripts/build-umlrootfs | |
parent | aba43136c262151b3f213a2253eddc62a07c7e88 (diff) | |
download | strongswan-258cbd40cff463f4adb57f40d3338e460c7e90f2.tar.bz2 strongswan-258cbd40cff463f4adb57f40d3338e460c7e90f2.tar.xz |
Unify naming of base,root image settings
Diffstat (limited to 'testing/scripts/build-umlrootfs')
-rwxr-xr-x | testing/scripts/build-umlrootfs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/testing/scripts/build-umlrootfs b/testing/scripts/build-umlrootfs index f6bcaa78e..1c452f476 100755 --- a/testing/scripts/build-umlrootfs +++ b/testing/scripts/build-umlrootfs @@ -20,23 +20,20 @@ echo "Building root image" [ `id -u` -eq 0 ] || die "You must be root to run $0" -[ -f "$ROOTFS" ] || die "Root image $ROOTFS not found" +[ -f "$BASEIMG" ] || die "Base image $BASEIMG not found" check_commands partprobe qemu-nbd load_qemu_nbd -mkdir -p $ROOTFSDIR mkdir -p $LOOPDIR -mkdir -p $ROOTFSCOMPILEDIR -cd $ROOTFSDIR +mkdir -p $ROOTIMGCOMPILEDIR -BASE=$BUILDDIR/base.qcow2 -log_action "Creating $BASE" -execute "cp $ROOTFS $BASE" +log_action "Creating root image $ROOTIMG" +execute "cp $BASEIMG $ROOTIMG" -log_action "Connecting base image to NBD device $NBDEV" -execute "qemu-nbd -c $NBDEV $BASE" +log_action "Connecting root image to NBD device $NBDEV" +execute "qemu-nbd -c $NBDEV $ROOTIMG" do_on_exit qemu-nbd -d $NBDEV partprobe $NBDEV @@ -49,8 +46,8 @@ execute "mount -t proc none $LOOPDIR/proc" do_on_exit umount $LOOPDIR/proc mkdir -p $LOOPDIR/root/compile -log_action "Mounting $ROOTFSCOMPILEDIR as /root/compile" -execute "mount -o bind $ROOTFSCOMPILEDIR $LOOPDIR/root/compile" +log_action "Mounting $ROOTIMGCOMPILEDIR as /root/compile" +execute "mount -o bind $ROOTIMGCOMPILEDIR $LOOPDIR/root/compile" do_on_exit umount $LOOPDIR/root/compile echo "Installing software from source" |