diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-22 13:27:49 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-22 13:27:49 +0100 |
commit | 3ec9b5d8251c362f81df2e3734e4aff14f2183bc (patch) | |
tree | 0b4dfeae52b448ac4f9e4054a0634bb1ec8890b0 | |
parent | 0db029286e62bef881642cad8ae84aba636dec3e (diff) |
Fixes to unified tarball
-rwxr-xr-x | build.sh | 8 | ||||
-rwxr-xr-x | build_rootfs.sh | 1 |
2 files changed, 5 insertions, 4 deletions
@@ -9,7 +9,7 @@ image=openwrt name=openwrt generic_rootfs=lede-${ver}-${arch_dash}-generic-rootfs.tar.gz -lxc_rootfs=lede-${ver}-${arch_dash}-lxc-rootfs.tar.gz +lxc_rootfs=lede-${ver}-${arch_dash}-lxd.tar.gz metadata=metadata.yaml build_rootfs() { @@ -17,7 +17,7 @@ build_rootfs() { } build_metadata() { - stat=`stat -c %Y $lxc_rootfs` + stat=`stat -c %Y $generic_rootfs` date=`date -R -d "@${stat}"` cat > $metadata <<EOF @@ -33,12 +33,12 @@ EOF } build_image() { - lxc image import metadata.tar.gz $lxc_rootfs --alias $image + lxc image import $lxc_rootfs --alias $image } build_metadata build_rootfs -#build_image +build_image echo \# start echo lxc launch --config "raw.lxc=lxc.aa_profile=lxc-container-default-without-dev-mounting" --profile openwrt $image $name diff --git a/build_rootfs.sh b/build_rootfs.sh index 4497605..fee62fc 100755 --- a/build_rootfs.sh +++ b/build_rootfs.sh @@ -65,5 +65,6 @@ add_files() { unpack add_files $files_dir $dir/rootfs/ add_file $metadata $metadata_dir $dir +add_files templates/ $dir/templates/ pack #pack_squashfs |