commit aaf926c3b7257438b3e57631e72059a79b12e1eb
parent dd9799802f1a047e8b9eff019d48e09176a60120
Author: sin <sin@2f30.org>
Date: Fri, 20 Sep 2013 11:20:41 +0100
Set arch and version
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/create-bootable b/create-bootable
@@ -2,7 +2,9 @@
#
# Ensure you've loaded the loop module with max_part=15
-img=morpheus-x86_64-0.0.img
+. ./prepare-env
+
+img=morpheus-$arch-$version.img
dd if=/dev/zero of=$img bs=256M count=1
fdisk $img <<< '
diff --git a/prepare-env b/prepare-env
@@ -1,7 +1,9 @@
top=$(pwd)
root=$top/root
nprocs=4
-mirror=http://dl.2f30.org/morpheus-pkgs
+arch=x86_64
+version=0.0
+mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
export top root nprocs mirror
PATH=$top/cross/bin:$PATH