feat: nuke fedora flatpaks on boot (#1208)
* feat: nuke fedora flatpaks * start the service on boot * remove extra space :C Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4e1353822b
commit
28adc2ecb2
2 changed files with 23 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ systemctl --global enable podman-auto-update.timer
|
|||
systemctl enable check-sb-key.service
|
||||
systemctl enable input-remapper.service
|
||||
|
||||
# Nuke possible Fedora flatpak repos
|
||||
systemctl enable flatpak-nuke-fedora.service
|
||||
|
||||
# TODO: Reinvestigate when bazaar gains dbus activation
|
||||
systemctl --global enable bazaar.service
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Remove Fedora flatpak repositories
|
||||
Before=flatpak-preinstall.service
|
||||
Before=flatpak-system-helper.service
|
||||
# Make sure we run before the Fedora service if it exists
|
||||
Before=flatpak-add-fedora-repos.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/flatpak remote-delete --system fedora
|
||||
ExecStart=/usr/bin/flatpak remote-delete --system fedora-testing
|
||||
# Make sure even if flatpak-add-fedora-repos.service exists, it
|
||||
# won't run.
|
||||
ExecStart=/usr/bin/touch /var/lib/flatpak/.fedora-initialized
|
||||
# Flatpak will fail if the remote doesn't exist, but we don't mind
|
||||
SuccessExitStatus=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in a new issue