-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-enable recovery upgrade test #321
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: "installer" | ||
category: "utils" | ||
version: "0.7.5" | ||
version: "0.7.6" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,19 +160,24 @@ upgrade() { | |
export LUET_PRIVILEGED_EXTRACT=true | ||
|
||
args="" | ||
if [ -z "$VERIFY" ]; then | ||
args="--enable-logfile --logfile /tmp/luet.log --plugin image-mtree-check" | ||
if [ -z "$VERIFY" ] || [ "$VERIFY" == true ]; then | ||
args="--enable-logfile --logfile /tmp/luet.log --plugin luet-mtree" | ||
fi | ||
|
||
if [ -n "$CHANNEL_UPGRADES" ] && [ "$CHANNEL_UPGRADES" == true ]; then | ||
echo "Upgrading from release channel" | ||
set -x | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a leftover from debugging? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes/no.. I've added it for debugging, but I'm unsure to keep it or not. It seems useful for debug, but also as a informative output of what's going on.. UX definetly deserve its own story :) |
||
luet install $args --system-target $TARGET --system-engine memory -y $UPGRADE_IMAGE | ||
luet cleanup | ||
set +x | ||
elif [ "$DIRECTORY" == true ]; then | ||
echo "Upgrading from local folder: $UPGRADE_IMAGE" | ||
rsync -axq --exclude='host' --exclude='mnt' --exclude='proc' --exclude='sys' --exclude='dev' --exclude='tmp' ${UPGRADE_IMAGE}/ $TARGET | ||
else | ||
echo "Upgrading from container image: $UPGRADE_IMAGE" | ||
set -x | ||
luet util unpack $args $UPGRADE_IMAGE /usr/local/tmp/rootfs | ||
set +x | ||
rsync -aqzAX --exclude='mnt' --exclude='proc' --exclude='sys' --exclude='dev' --exclude='tmp' /usr/local/tmp/rootfs/ $TARGET | ||
rm -rf /usr/local/tmp/rootfs | ||
fi | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "cos-img" | ||
category: "recovery" | ||
version: "0.5.4" | ||
version: "0.5.5" | ||
brand_name: "cOS" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: "cos-squash" | ||
category: "recovery" | ||
version: "0.5.4" | ||
version: "0.5.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something that sets this var to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be set to true if someone sets it in the
/etc/cos-upgrade-image
file, that file gets sourced to be able to set custom behavior ofcos-upgrade
by default