Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

[pull] bluefin-main from ublue-os:main #88

Merged
merged 12 commits into from
Jan 30, 2024
19 changes: 14 additions & 5 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 @@ -132,15 +142,13 @@ RUN sysctl -p

RUN wget https://copr.fedorainfracloud.org/coprs/ganto/lxc4/repo/fedora-"${FEDORA_MAJOR_VERSION}"/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"${FEDORA_MAJOR_VERSION}"/ublue-os-staging-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/ublue-os-staging-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
wget https://copr.fedorainfracloud.org/coprs/karmab/kcli/repo/fedora-"${FEDORA_MAJOR_VERSION}"/karmab-kcli-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/karmab-kcli-fedora-"${FEDORA_MAJOR_VERSION}".repo
wget https://copr.fedorainfracloud.org/coprs/karmab/kcli/repo/fedora-"${FEDORA_MAJOR_VERSION}"/karmab-kcli-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/karmab-kcli-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
wget https://copr.fedorainfracloud.org/coprs/atim/ubuntu-fonts/repo/fedora-"${FEDORA_MAJOR_VERSION}"/atim-ubuntu-fonts-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/atim-ubuntu-fonts-fedora-"${FEDORA_MAJOR_VERSION}".repo

# Handle packages via packages.json
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 Expand Up @@ -175,6 +183,7 @@ RUN /tmp/workarounds.sh
RUN rm -f /etc/yum.repos.d/ublue-os-staging-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
rm -f /etc/yum.repos.d/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
rm -f /etc/yum.repos.d/karmab-kcli-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
rm -f /etc/yum.repos.d/atim-ubuntu-fonts-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
rm -f /etc/yum.repos.d/vscode.repo && \
rm -f /etc/yum.repos.d/docker-ce.repo && \
rm -f /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo && \
Expand Down
9 changes: 8 additions & 1 deletion packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
],
"bluefin-dx": [
"adobe-source-code-pro-fonts",
"cascadia-code-fonts",
"cockpit-machines",
"cockpit-networkmanager",
"cockpit-ostree",
Expand Down Expand Up @@ -96,6 +97,7 @@
"qemu-user-binfmt",
"qemu-user-static",
"qemu",
"ubuntu-family-fonts",
"virt-manager",
"virt-viewer"
]
Expand Down Expand Up @@ -132,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
31 changes: 8 additions & 23 deletions usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Script Version
VER=1
VER=2
VER_FILE="/etc/ublue/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)

Expand All @@ -11,11 +11,16 @@ if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
exit 0
fi

# Remove fedora flatpak repo
# Opt out of and remove Fedora's flatpak repo
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete --user fedora --force
/usr/lib/fedora-third-party/fedora-third-party-opt-out
/usr/bin/fedora-third-party disable
flatpak remote-delete fedora --force
fi

# Ensure Flathub is enabled
flatpak remote-modify --system --enable flathub

# Lists of flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
INSTALL_LIST=$(cat /etc/flatpak/system/install)
Expand All @@ -34,25 +39,5 @@ if [[ ! -f $VER_FILE && -n $REMOVE_LIST ]]; then
flatpak remove --system --noninteractive ${REMOVE_LIST[@]}
fi

# Opt out of and remove Fedora's flatpak repo
if grep -qz 'fedora' <<< $(flatpak remotes); then
/usr/lib/fedora-third-party/fedora-third-party-opt-out
/usr/bin/fedora-third-party disable
flatpak remote-delete fedora --force

# Remove flatpak apps from origin fedora
FEDORA_FLATPAKS=$(flatpak list --app --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
flatpak remove --system --noninteractive ${FEDORA_FLATPAKS[@]}

# Remove flatpak runtimes from origin fedora
FEDORA_FLATPAKS=$(flatpak list --runtime --columns=application,arch,branch,origin | grep -w 'fedora' | awk '{print $1"/"$2"/"$3}')
flatpak remove --system --noninteractive ${FEDORA_FLATPAKS[@]}
fi

# Disable the system variant of the flathub repo
flatpak remote-modify flathub --disable --system

notify-send "Flatpak installer" "Finished installing system flatpaks" --app-name="Flatpak installer" -u NORMAL

mkdir -p /etc/ublue
echo $VER > $VER_FILE
6 changes: 5 additions & 1 deletion usr/bin/ublue-user-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
exit 0
fi

# Setup Flathub
# Enable Flathub
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete --user fedora --force
fi
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
flatpak remote-modify --user --enable flathub

# Lists of flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
Expand Down
24 changes: 24 additions & 0 deletions usr/etc/flatpak/system/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
org.mozilla.firefox
org.freedesktop.Platform.ffmpeg-full//22.08
org.gnome.Calculator
org.gnome.Calendar
org.gnome.Characters
org.gnome.Connections
org.gnome.Contacts
org.gnome.Evince
org.gnome.Loupe
org.gnome.Logs
org.gnome.Maps
org.gnome.NautilusPreviewer
org.gnome.TextEditor
org.gnome.Weather
org.gnome.baobab
org.gnome.clocks
org.gnome.font-viewer
com.mattjakeman.ExtensionManager
com.github.tchx84.Flatseal
io.github.flattool.Warehouse
com.github.marhkb.Pod
org.fedoraproject.MediaWriter
io.missioncenter.MissionCenter
io.github.celluloid_player.Celluloid
24 changes: 0 additions & 24 deletions usr/etc/flatpak/user/install
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
org.mozilla.firefox
org.freedesktop.Platform.ffmpeg-full//22.08
org.gnome.Calculator
org.gnome.Calendar
org.gnome.Characters
org.gnome.Connections
org.gnome.Contacts
org.gnome.Evince
org.gnome.Loupe
org.gnome.Logs
org.gnome.Maps
org.gnome.NautilusPreviewer
org.gnome.TextEditor
org.gnome.Weather
org.gnome.baobab
org.gnome.clocks
org.gnome.font-viewer
com.mattjakeman.ExtensionManager
com.github.tchx84.Flatseal
io.github.flattool.Warehouse
com.github.marhkb.Pods
org.fedoraproject.MediaWriter
io.missioncenter.MissionCenter
io.github.celluloid_player.Celluloid
24 changes: 24 additions & 0 deletions usr/etc/flatpak/user/remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
org.mozilla.firefox
org.freedesktop.Platform.ffmpeg-full//22.08
org.gnome.Calculator
org.gnome.Calendar
org.gnome.Characters
org.gnome.Connections
org.gnome.Contacts
org.gnome.Evince
org.gnome.Loupe
org.gnome.Logs
org.gnome.Maps
org.gnome.NautilusPreviewer
org.gnome.TextEditor
org.gnome.Weather
org.gnome.baobab
org.gnome.clocks
org.gnome.font-viewer
com.mattjakeman.ExtensionManager
com.github.tchx84.Flatseal
io.github.flattool.Warehouse
com.github.marhkb.Pod
org.fedoraproject.MediaWriter
io.missioncenter.MissionCenter
io.github.celluloid_player.Celluloid
7 changes: 0 additions & 7 deletions usr/etc/profile.d/user-motd.sh

This file was deleted.

2 changes: 1 addition & 1 deletion usr/share/ublue-os/motd/bluefin.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to Bluefin (󰂡eta)
# 󱍢 Welcome to Bluefin (󰂡eta)
: `%IMAGE_NAME%:%IMAGE_TAG%`

| Command | Description |
Expand Down
12 changes: 9 additions & 3 deletions usr/share/ublue-os/motd/tips/10-tips.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
The Project Bluefin team will use this banner to share important information and occasional tips.
Check out Justin Garrison's [Introduction to Bluefin](https://www.youtube.com/watch?v=Nz-yyDwTfRM)
Check out the Bluefin [introductory video](https://www.youtube.com/watch?v=YFXufAVdrw4)
The Project Bluefin team will use this banner to share important information and occasional tips
Follow us on 󰫑 [@[email protected]](https://fosstodon.org/@UniversalBlue)
Bluefin is your gateway to Kubernetes 󱃾 `kind create cluster` to [get started](https://kind.sigs.k8s.io/)
Bluefin is your gateway to Cloud Native - find your flock at [landscape.cncf.io](https://l.cncf.io)
Support the app store! Donate to  [Flatpak](https://opencollective.com/flatpak)
Bluefin is proudly built using 󰣛 Fedora technology with a bit of  Ubuntu flavor
Check out Justin Garrison's 󰗃[Introduction to Bluefin](https://www.youtube.com/watch?v=Nz-yyDwTfRM)
Check out the Bluefin 󰗃[announcement video](https://www.youtube.com/watch?v=YFXufAVdrw4)
Need more indepth technical information? Check out the [Bluefin Administrator's Guide](https://universal-blue.discourse.group/docs?topic=40)
Support [Bluefin's Paleoartists](https://universal-blue.discourse.group/docs?topic=299)
Like servers? Check out [ucore](https://github.com/ublue-os/ucore)
Update break something? You can roll back and pin the previous release or rebase by build date: [View our guide](https://universal-blue.discourse.group/docs?topic=513)