mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-21 09:39:49 +00:00
feat: Remove update services in preparation for new ublue updater.
feat: Add script for updater to handle paru in bazzite-arch.
This commit is contained in:
parent
a240477fb7
commit
e2a1d416d1
@ -54,8 +54,6 @@ RUN pip install --prefix=/usr yafti && \
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-hl2linux-selinux.repo && \
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
|
||||
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
|
||||
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
||||
systemctl enable rpm-ostreed-automatic.timer && \
|
||||
systemctl enable input-remapper.service && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
|
@ -1,7 +0,0 @@
|
||||
[Unit]
|
||||
Description=distrobox-upgrade Automatic Update
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/distrobox-upgrade --all
|
||||
StandardOutput=null
|
@ -139,11 +139,6 @@ screens:
|
||||
show_terminal: true
|
||||
package_manager: yafti.plugin.run
|
||||
groups:
|
||||
Automatic Distrobox Updates:
|
||||
description: Updates all Distrobox containers automatically
|
||||
default: true
|
||||
packages:
|
||||
- Enable Automatic Updates: systemctl enable --user --now distrobox-upgrade-automatic.timer
|
||||
Automatic Duplicate File Removal:
|
||||
description: Flattens duplicate files to take up no more space than a single copy, a considerable space savings for wine prefixes and compatdata
|
||||
default: true
|
||||
|
@ -1,8 +0,0 @@
|
||||
[Unit]
|
||||
Description=distrobox-upgrade Automatic Update
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/distrobox-upgrade --all
|
||||
ExecStartPost=/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Syu --noconfirm'
|
||||
StandardOutput=null
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=distrobox-upgrade Automatic Update Trigger
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1h
|
||||
OnUnitInactiveSec=1d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=flatpak Automatic Update
|
||||
Documentation=man:flatpak(1)
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/flatpak update -y
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=flatpak Automatic Update Trigger
|
||||
Documentation=man:flatpak(1)
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1h
|
||||
OnUnitInactiveSec=1d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
7
system_files/desktop/etc/update.d/99-bazzite-arch-user-update.sh
Executable file
7
system_files/desktop/etc/update.d/99-bazzite-arch-user-update.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [[ $(distrobox list | grep bazzite-arch) ]]; then
|
||||
/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Syu --noconfirm'
|
||||
else
|
||||
echo "Update skipped: bazzite-arch not installed"
|
||||
fi
|
@ -146,7 +146,6 @@ screens:
|
||||
- Export Steam: distrobox-enter -n bazzite-arch -- ' distrobox-export --app steam'
|
||||
- Export Lutris: distrobox-enter -n bazzite-arch -- ' distrobox-export --app lutris'
|
||||
- Export Protontricks: distrobox-enter -n bazzite-arch -- ' distrobox-export --app protontricks'
|
||||
- Enable Automatic Updates: systemctl enable --user --now distrobox-upgrade-automatic.timer
|
||||
Automatic Duplicate File Removal:
|
||||
description: Flattens duplicate files to take up no more space than a single copy, a considerable space savings for wine prefixes and compatdata
|
||||
default: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user