summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-02-22 13:44:43 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2018-02-22 13:44:43 +0100
commit03a7f2ef5bfc13b5fc708c8eebb06b8c309bc4e8 (patch)
treeb2f6c7c59a57509d6a28329279e7aa41bc1c96f1
parent052c0cfcfff3fdd73636bffd77c2cc4fc07d7e47 (diff)
Refactor rename rootfs to tarball
-rwxr-xr-xbuild.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 93783d0..d5f68c4 100755
--- a/build.sh
+++ b/build.sh
@@ -9,11 +9,11 @@ image=openwrt
name=openwrt
generic_rootfs=lede-${ver}-${arch_dash}-generic-rootfs.tar.gz
-lxc_rootfs=lede-${ver}-${arch_dash}-lxd.tar.gz
+lxc_tar=lede-${ver}-${arch_dash}-lxd.tar.gz
metadata=metadata.yaml
-build_rootfs() {
- fakeroot ./build_rootfs.sh $generic_rootfs $metadata $lxc_rootfs
+build_tarball() {
+ fakeroot ./build_rootfs.sh $generic_rootfs $metadata $lxc_tar
}
build_metadata() {
@@ -41,11 +41,11 @@ EOF
}
build_image() {
- lxc image import $lxc_rootfs --alias $image
+ lxc image import $lxc_tar --alias $image
}
build_metadata
-build_rootfs
+build_tarball
build_image
echo \# start