diff options
-rw-r--r-- | README | 11 | ||||
-rwxr-xr-x | build.sh | 10 |
2 files changed, 12 insertions, 9 deletions
@@ -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 @@ -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" |