Skip to content

Commit

Permalink
feat: Switch to TuneD from PPD (F39+) (#836)
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge O. Castro <jorge.castro@gmail.com>
  • Loading branch information
KyleGospo and castrojo authored Jan 29, 2024
1 parent cbe6532 commit 3df0332
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
15 changes: 11 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ RUN if [ ${FEDORA_MAJOR_VERSION} -ge "39" ]; then \
vte-profile && \
rpm-ostree install \
prompt && \
rm -f /etc/yum.repos.d/_copr_kylegospo-prompt.repo \
rm -f /etc/yum.repos.d/_copr_kylegospo-prompt.repo && \
rpm-ostree override remove \
power-profiles-daemon \
|| true && \
rpm-ostree override remove \
tlp \
tlp-rdw \
|| true \
; fi

COPY usr /usr
Expand Down Expand Up @@ -81,6 +88,9 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$
printf "\n\n[Install]\nWantedBy=bluefin-cli.target" >> /usr/etc/containers/systemd/users/bluefin-cli.container && \
sed -i '/AutoUpdate.*/ s/^#*/#/' /usr/etc/containers/systemd/users/bluefin-cli.container && \
sed -i 's/ContainerName=bluefin/ContainerName=bluefin-cli/' /usr/etc/containers/systemd/users/bluefin-cli.container && \
if [[ "${FEDORA_MAJOR_VERSION}" -ge "39" ]]; then \
systemctl enable tuned.service \
; fi && \
systemctl enable rpm-ostree-countme.service && \
systemctl enable tailscaled.service && \
systemctl enable dconf-update.service && \
Expand Down Expand Up @@ -139,9 +149,6 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ganto/lxc4/repo/fedora-"${FEDOR
RUN /tmp/build.sh && \
/tmp/image-info.sh

## power-profiles-daemon with amd p-state support, remove when this is upstream
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:ublue-os:staging power-profiles-daemon

RUN wget https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -O /tmp/docker-compose && \
install -c -m 0755 /tmp/docker-compose /usr/bin

Expand Down
7 changes: 6 additions & 1 deletion packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
"bluefin": [
"gnome-shell-extension-tailscale-gnome-qs",
"input-leap",
"nautilus-open-any-terminal"
"nautilus-open-any-terminal",
"tuned",
"tuned-ppd",
"tuned-utils",
"tuned-utils-systemtap",
"tuned-profiles-atomic"
],
"bluefin-dx": [],
"bluefin-framework": []
Expand Down

0 comments on commit 3df0332

Please sign in to comment.