Add upgrade safeguards, hardware setup, sign-in options and Taildrop from Omarchy
shellcheck / shellcheck (push) Failing after 19s
shellcheck / shellcheck (push) Failing after 19s
Adapted from Omarchy (github.com/omacom/omarchy) for Arch with GNOME: - A pacman hook stops a full upgrade run without update (pacman -Syu, yay -Syu), which would skip the snapshot and update's checks. update and install.sh set COREDESKTOP_ALLOW_PACMAN=1, which the hook finds on pacman or any process above it; you can set it too. - When the Arch upgrade stops on files no package owns, update lists them and asks to move them to /var/lib/coredesktop/replaced and try again, putting back what the retry didn't replace. When packages conflict, it runs pacman again so you can choose. - update and install keep the computer from sleeping until they finish. - system/hardware.sh (install, and a migration): the Wi-Fi country from the time zone, thermald and intel-lpmd on Intel laptops, and Wi-Fi 6 on Intel BE200/BE211 cards, whose driver gets Wi-Fi 7 wrong. - configure security-key and configure fingerprint: touch a FIDO2 key or a finger instead of typing your password for sudo and polkit, falling back to the password. Each shows only when the hardware is there. The fingerprint skips to the password with the lid shut. - webapp: put a website in the app grid as its own app window. - Taildrop: Files' Scripts > Send with Tailscale, and a user service that saves files sent here to Downloads, started when configure tailscale joins. - A NetworkManager dispatcher script pauses a Tailscale exit node while you sign in to a captive portal, and resumes it once online. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,10 @@ clean_log() {
|
||||
s/\x1b[()][0-9A-Za-z]//g; s/\x1b[=>]//g; s/\r+$//; s/.*\r//' "$1"
|
||||
}
|
||||
|
||||
# Lets this update's pacman and yay upgrade the system past the guard that
|
||||
# stops upgrades run without update (system/pacman-guard)
|
||||
export COREDESKTOP_ALLOW_PACMAN=1
|
||||
|
||||
# Set by updates.d/99-reboot-check.sh when this update needs a reboot
|
||||
REBOOT_NEEDED="$HOME/.local/state/coredesktop/reboot-needed"
|
||||
|
||||
@@ -124,6 +128,7 @@ install_script "$COREDESKTOP/version" ~/.local/bin/version
|
||||
install_script "$COREDESKTOP/configure" ~/.local/bin/configure
|
||||
install_script "$COREDESKTOP/audit" ~/.local/bin/audit
|
||||
install_script "$COREDESKTOP/report" ~/.local/bin/report
|
||||
install_script "$COREDESKTOP/webapp" ~/.local/bin/webapp
|
||||
|
||||
if [[ -z "$UPDATE_REEXECED" ]]; then
|
||||
export UPDATE_REEXECED=1
|
||||
@@ -147,6 +152,14 @@ while kill -0 $$ 2>/dev/null; do sudo -n -v; sleep 60; done > /dev/null 2>&1 &
|
||||
SUDO_KEEPALIVE_PID=$!
|
||||
trap 'kill "$SUDO_KEEPALIVE_PID" 2>/dev/null' EXIT
|
||||
|
||||
# Keep the computer from suspending, from idle or a closed lid, until update
|
||||
# exits: a pacman upgrade cut off part way can leave it unbootable. tail exits
|
||||
# with update, and that ends the inhibitor.
|
||||
if command -v systemd-inhibit > /dev/null; then
|
||||
systemd-inhibit --what=sleep:idle --who=CoreDesktop --why="Updating CoreDesktop" --mode=block \
|
||||
tail --pid=$$ -f /dev/null > /dev/null 2>&1 &
|
||||
fi
|
||||
|
||||
rm -f "$REBOOT_NEEDED"
|
||||
FAILED=()
|
||||
[[ -n "$UPDATE_PULL_FAILED" ]] && FAILED+=("git pull")
|
||||
|
||||
Reference in New Issue
Block a user