Skip to content

Commit

Permalink
Merge branch 'main' into switch-channels
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz authored Nov 17, 2024
2 parents c38a0cc + 35aac95 commit b3b065a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
7 changes: 0 additions & 7 deletions just/bluefin-system.just
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ alias rollback-helper := rebase-helper
rebase-helper:
@/usr/bin/ublue-rollback-helper
[group('System')]
update-ng:
echo "Note: This command doesn't work if you have locally layered packages"
sudo bootc upgrade
flatpak update -y
brew upgrade
# Toggle tailscale
[group('System')]
toggle-tailscale:
Expand Down
11 changes: 8 additions & 3 deletions system_files/shared/usr/bin/ublue-rollback-helper
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ function rebase_helper(){
fi
echo "Rebase Target is ${rebase_target}"
echo "Confirm Rebase"
if [[ $(Confirm) -eq "0" ]]; then
rpm-ostree rebase ostree-image-signed:docker://"${rebase_target}"
else
if [[ $(Confirm) -ne "0" ]]; then
return 1
fi

if /usr/bin/grep "^LockLayering=true" /etc/rpm-ostreed.conf &> /dev/null; then
pkexec bootc switch --enforce-container-sigpolicy "${rebase_target}"
return 0
fi
rpm-ostree rebase ostree-image-signed:docker://"${rebase_target}"
return 0
}

echo "Choose your action."
Expand Down
4 changes: 3 additions & 1 deletion system_files/shared/usr/share/ublue-os/just/10-update.just
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ alias upgrade := update
# Update system, flatpaks, and containers all at once
update:
#!/usr/bin/bash
/usr/bin/topgrade --config /usr/share/ublue-os/topgrade.toml --keep
TOPGRADE_CONFIG="/usr/share/ublue-os/topgrade"
/usr/bin/grep "^LockLayering=true" /etc/rpm-ostreed.conf &>/dev/null && TOPGRADE_CONFIG="${TOPGRADE_CONFIG}-bootc"
/usr/bin/topgrade --config "${TOPGRADE_CONFIG}.toml" --keep

alias auto-update := toggle-updates

Expand Down
9 changes: 9 additions & 0 deletions system_files/shared/usr/share/ublue-os/topgrade-bootc.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[misc]
no_self_update = true
disable = ["self_update", "toolbx", "containers", "helm", "system"]
ignore_failures = ["distrobox", "flatpak", "brew_cask", "brew_formula", "nix", "node", "pip3", "home_manager", "firmware"]
assume_yes = true
no_retry = false

[commands]
"System Upgrade" = "sudo bootc upgrade"

0 comments on commit b3b065a

Please sign in to comment.