summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-11-30 01:14:11 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2018-11-30 01:14:11 +0000
commit7885f3e34e6db561fe4ddbf9d748b5273d86a52d (patch)
treeb26253f59ffa6a1da4dc318c5e0e594f7090f852 /build.sh
parentc2cb29e54c24d23d1ee9c3c6ae73c55384d38e95 (diff)
Avoid using wrong procd package
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index ed77846..31a1463 100755
--- a/build.sh
+++ b/build.sh
@@ -81,6 +81,7 @@ procd_extra_ver=lxd-3
tarball=bin/${dist}-${ver}-${arch}-${subarch}-${type}.tar.gz
metadata=bin/metadata.yaml
+pkgdir=bin/${ver}/packages/${arch}/${subarch}
download_rootfs() {
if test $ver = snapshot; then
@@ -195,8 +196,8 @@ build_procd() {
make package/lxd-procd/compile
)
fi
- test -e bin/packages/${arch}/${subarch} || mkdir -p bin/packages/${arch}/${subarch}
- (cd bin/packages/${arch}/${subarch} && ln -sf ../../../../$ipk .)
+ test -e ${pkgdir} || mkdir -p ${pkgdir}
+ (cd ${pkgdir} && ln -sf ../../../../../$ipk .)
}
build_tarball() {
@@ -208,7 +209,11 @@ build_tarball() {
if test ${ver} != snapshot; then
opts="$opts --upgrade"
fi
- fakeroot scripts/build_rootfs.sh $rootfs $opts -o $tarball --arch=${arch} --subarch=${subarch} --packages="${packages}" --files="${files}"
+ local allpkgs="${packages}"
+ for pkg in $pkgdir/*.ipk; do
+ allpkgs=" $pkg"
+ done
+ fakeroot scripts/build_rootfs.sh $rootfs $opts -o $tarball --arch=${arch} --subarch=${subarch} --packages="${allpkgs}" --files="${files}"
}
build_metadata() {