summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-03-21 20:38:40 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2018-03-21 20:38:40 +0100
commit1810f6f2f22b642268e334d1dd9af1581337c93c (patch)
treed3628e3c142ca21e2f363d6d86d637c904042271 /build.sh
parent6b320900b70ae1b288d35ca9182a70a933d7834d (diff)
Add upgrade option
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 0d4b24d..800e410 100755
--- a/build.sh
+++ b/build.sh
@@ -155,6 +155,9 @@ build_procd() {
build_tarball() {
export SDK="$(pwd)/${sdk}"
local opts="-m $metadata"
+ if test ${ver} != snapshot; then
+ opts="$opts --upgrade"
+ fi
fakeroot scripts/build_rootfs.sh $rootfs $opts -o $lxc_tar --arch=${arch} --subarch=${subarch} --packages="${packages}" --files="${files}"
}