Skip to content

Commit

Permalink
Merge pull request #199 from runcom/fix-bootc-rollback
Browse files Browse the repository at this point in the history
rollback: if no bootc, fallback to rpm-ostree
  • Loading branch information
runcom authored Feb 6, 2025
2 parents 5acd172 + 3840342 commit 275985c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- if: ${{ always() }}
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ function attempt_rollback {
if command -v bootc &> /dev/null; then
status_type=$(bootc status --booted --json 2>/dev/null | jq -r .status.type 2>/dev/null)
if [ "$status_type" == "bootcHost" ]; then
echo "<3> On a bootc managed host, attempting rollback with bootc."
bootc rollback
echo "<3>FALLBACK BOOT DETECTED! Default bootc deployment has been rolled back."
return
fi
return
echo "<3> Not on a bootc managed host, trying rpm-ostree rollback next."
fi
# Check if its ostree based os
if [ -f /run/ostree-booted ]; then
Expand Down

0 comments on commit 275985c

Please sign in to comment.