mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 09:32:55 +00:00
fix: check donefiles in system services + do not check flatpak donefile
This commit is contained in:
parent
d6667e85bf
commit
9452a41b31
@ -2,10 +2,6 @@
|
|||||||
source /etc/default/bazzite
|
source /etc/default/bazzite
|
||||||
|
|
||||||
DONEFILE=/etc/bazzite/hardware_setup_done
|
DONEFILE=/etc/bazzite/hardware_setup_done
|
||||||
if [[ -e "$DONEFILE" ]] ; then
|
|
||||||
printf "Hardware was already properly set up. To run this script again, delete %s\n" "$DONEFILE"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# GLOBAL
|
# GLOBAL
|
||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source /etc/default/bazzite
|
source /etc/default/bazzite
|
||||||
|
|
||||||
DONEFILE="/etc/bazzite/sys_flatpak_done"
|
|
||||||
|
|
||||||
if [[ -f "$DONEFILE" ]] ; then
|
|
||||||
printf "System flatpaks were already installed. To run this script again, delete %s\n" "$DONEFILE"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
||||||
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||||
/usr/bin/fedora-third-party disable
|
/usr/bin/fedora-third-party disable
|
||||||
@ -36,5 +29,3 @@ if [[ -f '/etc/flatpak/deck' ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf /etc/flatpak/{deck,flathub,objects}
|
rm -rf /etc/flatpak/{deck,flathub,objects}
|
||||||
mkdir -p "$(dirname "$DONEFILE")"
|
|
||||||
touch "$DONEFILE"
|
|
||||||
|
@ -7,6 +7,7 @@ Before=systemd-user-sessions.service jupiter-biosupdate.service jupiter-controll
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/bin/bazzite-hardware-setup
|
ExecStart=/usr/bin/bazzite-hardware-setup
|
||||||
|
ConditionPathExists=!/etc/bazzite/hardware_setup_done
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user