Skip to content

Commit

Permalink
Cos deploy fixups (#603)
Browse files Browse the repository at this point in the history
* Disable privileged extract on cos-deploy

A follow up of #509

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Bump cOS

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
  • Loading branch information
mudler authored Sep 6, 2021
1 parent edbb45e commit a195cd5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/cos/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
packages:
- name: "cos"
category: "system"
version: 0.6.8+2
version: 0.6.8+3
description: "cOS base image, used to build cOS live ISOs"
brand_name: "cOS"
labels:
autobump.revdeps: "true"
autobump.revbump_related: "recovery/cos-img recovery/cos-squash"
- name: "cos"
category: "recovery"
version: 0.6.8+2
version: 0.6.8+3
brand_name: "cOS recovery"
description: "cOS recovery image, used to boot cOS for troubleshooting"
labels:
autobump.revdeps: "true"
autobump.revbump_related: "recovery/cos-img recovery/cos-squash"
- name: "cos-container"
category: "system"
version: 0.6.8+1
version: 0.6.8+3
brand_name: "cOS"
description: "cOS container image, used to build cOS derivatives from scratch"
labels:
Expand Down
2 changes: 1 addition & 1 deletion packages/cos/recovery-img/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "cos-img"
category: "recovery"
version: 0.6.8+2
version: 0.6.8+3
brand_name: "cOS"
2 changes: 1 addition & 1 deletion packages/cos/recovery-img/squash/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: "cos-squash"
category: "recovery"
version: 0.6.8+2
version: 0.6.8+3
2 changes: 1 addition & 1 deletion packages/installer/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: "installer"
category: "utils"
version: 0.16.3+1
version: "0.16.4"
5 changes: 4 additions & 1 deletion packages/installer/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ upgrade() {
# FIXME: Define default /var/tmp as tmpdir_base in default luet config file
export XDG_RUNTIME_DIR=$temp_upgrade
export TMPDIR=$temp_upgrade
export LUET_PRIVILEGED_EXTRACT=true

if [ -n "$CHANNEL_UPGRADES" ] && [ "$CHANNEL_UPGRADES" == true ]; then
if [ -z "$VERIFY" ]; then
Expand All @@ -143,6 +142,10 @@ upgrade() {
if [ -z "$VERIFY" ]; then
args="--enable-logfile --logfile /tmp/luet.log --plugin luet-mtree"
fi

# unpack doesnt like when you try to unpack to a non existing dir
mkdir -p $upgrade_state_dir/tmp/rootfs || true

luet util unpack $args $UPGRADE_IMAGE $upgrade_state_dir/tmp/rootfs
rsync -aqzAX --exclude='mnt' --exclude='proc' --exclude='sys' --exclude='dev' --exclude='tmp' $upgrade_state_dir/tmp/rootfs/ $TARGET
rm -rf $upgrade_state_dir/tmp/rootfs
Expand Down

0 comments on commit a195cd5

Please sign in to comment.