Move flatpak remote setup to first boot
ci/woodpecker/push/ci Pipeline failed

This commit is contained in:
qpismont committed 2026-11-01 20:57:45 +01:00
1 parent 95ac8ebb2b
commit e073d18de6
2 files changed
+9 -5

No files matched your search

+8 -5
View File
@@ -71,6 +71,10 @@ RUN wget https://cdn.filen.io/@filen/desktop/release/latest/Filen_linux_x86_64.r
&& dnf clean all \ && dnf clean all \
&& rm -f /tmp/filen.rpm && rm -f /tmp/filen.rpm
#Reconstruit la politique SELinux compilee depuis le store de modules (sans charger
#dans le noyau) : sans ca, les modules installes par les paquets (ex: flatpak ->
#flatpak_helper_exec_t) peuvent manquer et laisser des binaires en "unlabeled_t".
RUN semodule -n -B
#Installation de starship #Installation de starship
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y RUN curl -sS https://starship.rs/install.sh | sh -s -- -y
@@ -114,17 +118,16 @@ RUN mkdir -p /etc/dconf/db/local.d /etc/dconf/profile && \
#Activation du module xpad pour support manette xbox #Activation du module xpad pour support manette xbox
RUN echo "xpad" > /etc/modules-load.d/xpad.conf RUN echo "xpad" > /etc/modules-load.d/xpad.conf
#Ajout de flathub #Le depot flathub est ajoute au premier demarrage (voir flatpak-first-boot.service) :
RUN flatpak remote-add --if-not-exists --system flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true #ecrire dans /var pendant le build est un anti-patron bootc (mauvais labels SELinux).
#Activation du service flatpak-first-boot #Activation du service flatpak-first-boot (active apres preset-all, plus bas)
COPY services/flatpak-first-boot.service /etc/systemd/system/flatpak-first-boot.service COPY services/flatpak-first-boot.service /etc/systemd/system/flatpak-first-boot.service
RUN systemctl enable flatpak-first-boot.service
#Définir le target graphique par défaut #Définir le target graphique par défaut
RUN systemctl set-default graphical.target RUN systemctl set-default graphical.target
#Activation des services + Desactivation de bootc-update automatique #Activation des services + Desactivation de bootc-update automatique
RUN systemctl preset-all && \ RUN systemctl preset-all && \
systemctl enable --force gdm.service NetworkManager.service bluetooth.service podman.socket cups.service mullvad-daemon.service && \ systemctl enable --force gdm.service NetworkManager.service bluetooth.service podman.socket cups.service mullvad-daemon.service flatpak-first-boot.service && \
systemctl mask bootc-fetch-apply-updates.timer systemd-remount-fs.service systemctl mask bootc-fetch-apply-updates.timer systemd-remount-fs.service
+1
View File
@@ -8,6 +8,7 @@ ConditionPathExists=!/var/lib/flatpak/.firstboot-done
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/bin/bash -c '\ ExecStart=/bin/bash -c '\
flatpak remote-add --if-not-exists --system flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \
flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 && \ flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 && \
flatpak install -y --system flathub io.github.kolunmi.Bazaar && \ flatpak install -y --system flathub io.github.kolunmi.Bazaar && \
touch /var/lib/flatpak/.firstboot-done' touch /var/lib/flatpak/.firstboot-done'