Skip to content

Commit

Permalink
feat: automatically use bootc to update system if locklayering is bei…
Browse files Browse the repository at this point in the history
…ng used (#1902)

Co-authored-by: Jorge O. Castro <[email protected]>
  • Loading branch information
tulilirockz and castrojo authored Nov 17, 2024
1 parent 915478e commit 35aac95
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 0 additions & 6 deletions just/bluefin-system.just
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,6 @@ alias switch-channel := rebase-helper
rebase-helper:
@/usr/bin/ublue-rollback-helper

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
toggle-tailscale:
#!/bin/bash
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 35aac95

Please sign in to comment.