diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-11-30 01:14:11 +0000 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-11-30 01:14:11 +0000 |
commit | 7885f3e34e6db561fe4ddbf9d748b5273d86a52d (patch) | |
tree | b26253f59ffa6a1da4dc318c5e0e594f7090f852 /build.sh | |
parent | c2cb29e54c24d23d1ee9c3c6ae73c55384d38e95 (diff) |
Avoid using wrong procd package
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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() { |