summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-11-27 02:34:01 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2018-11-27 12:07:36 +0000
commitf419b8dad42b1d3012d2227ddc5c9d9c3743aaf0 (patch)
treea79cc39e8bfc48db24ffbb38996dcb8a80384677
parent33a3d78dd065316bf00c2abc30ca313a98f93290 (diff)
Remove dependency on lxd daemon
Closes GH-4
-rw-r--r--README11
-rwxr-xr-xbuild.sh10
2 files changed, 12 insertions, 9 deletions
diff --git a/README b/README
index 4c4fd32..7e5cfbf 100644
--- a/README
+++ b/README
@@ -16,3 +16,14 @@ It's recommended you use Debian or Ubuntu on the build system. The following add
Configuration
-------------
Refer to the top of build.sh.
+
+Usage
+-----
+./build.sh [-a|--arch <x86_64|i686>] [-v|--version <version>] [-p|--packages <packages>] [-f|--files] [--help]
+
+Example
+-------
+./build.sh -v 18.06.1
+lxc image import bin/openwrt-18.06.1-x86-64-lxd.tar.gz --alias openwrt
+lxc launch openwrt router
+lxc exec router passwd root
diff --git a/build.sh b/build.sh
index 5ab166d..adb2e4c 100755
--- a/build.sh
+++ b/build.sh
@@ -221,19 +221,11 @@ EOF
# template: hostname.tpl
}
-build_image() {
- lxc image import $lxc_tar
-}
-
download_rootfs
download_sdk
download_procd
build_procd
build_metadata
build_tarball
-build_image
-echo \# start
-echo "lxc launch $image <name>"
-echo \# set root password
-echo "lxc exec <name> passwd root"
+echo "Tarball built: $lxc_tar"