Forráskód Böngészése

Fixes to unified tarball

Mikael Magnusson 7 éve
szülő
commit
3ec9b5d825
2 módosított fájl, 5 hozzáadás és 4 törlés
  1. 4 4
      build.sh
  2. 1 0
      build_rootfs.sh

+ 4 - 4
build.sh

@@ -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

+ 1 - 0
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