Skip to content

Commit

Permalink
Fixed issues with updates to Bluefin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkrai committed Aug 4, 2024
1 parent 6af533a commit d57c6a3
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 117 deletions.
59 changes: 2 additions & 57 deletions recipes/bazzite-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ image-version: latest # latest is also supported if you want new updates ASAP
# module configuration, executed in order
# you can include multiple instances of the same module
modules:
- type: containerfile
snippets:
- ARG IMAGE_VENDOR="${IMAGE_REGISTRY}"
- ARG FEDORA_MAJOR_VERSION="${OS_VERSION}"
- ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-main}"
- ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-bazzite}"
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/bin/atuin /usr/bin/atuin
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/share/bash-prexec /usr/share/bash-prexec

- type: files
files:
- source: bluefin/system_files/shared/usr/bin
Expand Down Expand Up @@ -56,13 +47,8 @@ modules:
- source: files/kinoite
destination: /

# Activate RPM Fusion repos
- type: script
scripts:
- copr-repos.sh

# Install packages from Bluefin and Bluefin DX
- from-file: packages.yml
# Common steps between both versions
- from-file: common_recipe.yml

# Install KDE Packages
- type: rpm-ostree
Expand All @@ -79,47 +65,6 @@ modules:
- krfb-libs
- plasma-welcome

# Install Starhip and activate RPM Fusion repos
- type: script
snippets:
- "find ${CONFIG_DIRECTORY}/bluefin/build_files -type f -exec chmod +x {} \\;" # Make bluefin scripts executable
scripts:
- ../bluefin/build_files/shared/image-info.sh
- fetch-install.sh
- ../bluefin/build_files/base/fetch-quadlets.sh

# alternatives cannot create symlinks on its own during a container build
- type: script
snippets:
- "ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld"

# Install fonts
- type: fonts
fonts:
nerd-fonts:
- FiraCode # don't add spaces or "Nerd Font" suffix.
- Hack
- SourceCodePro
- Terminus
- JetBrainsMono
- NerdFontsSymbolsOnly
google-fonts:
- Roboto
- Open Sans

# Enable systemd services
- type: systemd
system:
enabled:
- rpm-ostree-countme.service
# - dconf-update.service Already in Bazzite
- docker.socket
- podman.socket
- swtpm-workaround.service
user:
enabled:
- podman-auto-update.timer

# Cleanup repos, etc...
- type: script
scripts:
Expand Down
59 changes: 2 additions & 57 deletions recipes/bazzite-gnome-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ image-version: latest # latest is also supported if you want new updates ASAP
# module configuration, executed in order
# you can include multiple instances of the same module
modules:
- type: containerfile
snippets:
- ARG IMAGE_VENDOR="${IMAGE_REGISTRY}"
- ARG FEDORA_MAJOR_VERSION="${OS_VERSION}"
- ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-main}"
- ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-bazzite}"
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/bin/atuin /usr/bin/atuin
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/share/bash-prexec /usr/share/bash-prexec

- type: files
files:
- source: bluefin/system_files/shared/usr/bin
Expand Down Expand Up @@ -47,13 +38,8 @@ modules:
- source: files/shared
destination: /

# Activate RPM Fusion repos
- type: script
scripts:
- copr-repos.sh

# Install packages from Bluefin and Bluefin DX
- from-file: packages.yml
# Common steps between both versions
- from-file: common_recipe.yml

# Install GNOME packages
- type: rpm-ostree
Expand Down Expand Up @@ -82,47 +68,6 @@ modules:
# - Logo Menu # Already in Bazzite
- Search Light

# Install Starhip and activate RPM Fusion repos
- type: script
snippets:
- "find ${CONFIG_DIRECTORY}/bluefin/build_files -type f -exec chmod +x {} \\;" # Make bluefin scripts executable
scripts:
- ../bluefin/build_files/shared/image-info.sh
- fetch-install.sh
- ../bluefin/build_files/base/fetch-quadlets.sh

# alternatives cannot create symlinks on its own during a container build
- type: script
snippets:
- "ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld"

# Install fonts
- type: fonts
fonts:
nerd-fonts:
- FiraCode # don't add spaces or "Nerd Font" suffix.
- Hack
- SourceCodePro
- Terminus
- JetBrainsMono
- NerdFontsSymbolsOnly
google-fonts:
- Roboto
- Open Sans

# Enable systemd services
- type: systemd
system:
enabled:
- rpm-ostree-countme.service
# - dconf-update.service Already in Bazzite
- docker.socket
- podman.socket
- swtpm-workaround.service
user:
enabled:
- podman-auto-update.timer

# Cleanup repos, etc...
- type: script
scripts:
Expand Down
64 changes: 61 additions & 3 deletions recipes/packages.yml → recipes/common_recipe.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
modules:
- type: containerfile
snippets:
- ARG IMAGE_VENDOR="${IMAGE_REGISTRY}"
- ARG FEDORA_MAJOR_VERSION="${OS_VERSION}"
- ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-main}"
- ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-bazzite}"
- ARG NVIDIA_TYPE="${NVIDIA_TYPE:-}"
- ARG UBLUE_IMAGE_TAG="${UBLUE_IMAGE_TAG:-latest}"
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/bin/atuin /usr/bin/atuin
- COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/share/bash-prexec /usr/share/bash-prexec

# Activate RPM Fusion repos
- type: script
scripts:
- copr-repos.sh

# Install packages from Bluefin and Bluefin DX
- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-%OS_VERSION%/ublue-os-staging-fedora-%OS_VERSION%.repo
Expand All @@ -10,7 +27,7 @@ modules:
- https://copr.fedorainfracloud.org/coprs/hikariknight/looking-glass-kvmfr/repo/fedora-%OS_VERSION%/hikariknight-looking-glass-kvmfr-fedora-%OS_VERSION%.repo

install:
# Base Bluefin packages
# Base Bluefin packages
- bash-color-prompt
- bcache-tools
- evtest
Expand Down Expand Up @@ -48,7 +65,7 @@ modules:
- wl-clipboard
- zsh

# DX Bluefin packages
# DX Bluefin packages
- adobe-source-code-pro-fonts
- android-tools
- cascadia-code-fonts
Expand Down Expand Up @@ -105,4 +122,45 @@ modules:
- ubuntu-family-fonts
- udica
- virt-manager
- virt-viewer
- virt-viewer

# Install Starhip and activate RPM Fusion repos
- type: script
snippets:
- "find ${CONFIG_DIRECTORY}/bluefin/build_files -type f -exec chmod +x {} \\;" # Make bluefin scripts executable
scripts:
- ../bluefin/build_files/shared/image-info.sh
- fetch-install.sh
- ../bluefin/build_files/base/fetch-quadlets.sh

# alternatives cannot create symlinks on its own during a container build
- type: script
snippets:
- "ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld"

# Install fonts
- type: fonts
fonts:
nerd-fonts:
- FiraCode # don't add spaces or "Nerd Font" suffix.
- Hack
- SourceCodePro
- Terminus
- JetBrainsMono
- NerdFontsSymbolsOnly
google-fonts:
- Roboto
- Open Sans

# Enable systemd services
- type: systemd
system:
enabled:
- rpm-ostree-countme.service
# - dconf-update.service Already in Bazzite
- docker.socket
- podman.socket
- swtpm-workaround.service
user:
enabled:
- podman-auto-update.timer

0 comments on commit d57c6a3

Please sign in to comment.