Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Aurora): Restore x11 for 40 #1214

Merged
merged 4 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build_files/base/aurora-changes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

if [[ "${BASE_IMAGE_NAME}" = "kinoite" ]]; then
ln -sf ../places/distributor-logo.svg /usr/share/icons/hicolor/scalable/apps/start-here.svg
Expand Down
3 changes: 1 addition & 2 deletions build_files/base/branding.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/bash

set -oue pipefail

set -ouex pipefail

# Branding for Bluefin/Aurora
if test "$BASE_IMAGE_NAME" = "silverblue"; then
Expand Down
7 changes: 3 additions & 4 deletions build_files/base/build-base.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!/usr/bin/bash
# shellcheck disable=SC1091

set -oue pipefail
set -ouex pipefail

. /tmp/build/copr-repos.sh
. /tmp/build/nvidia-explicit-sync.sh
. /tmp/build/install-akmods.sh
. /tmp/build/packages.sh
. /tmp/build/fetch-install.sh
. /tmp/build/nvidia.sh
. /tmp/build/image-info.sh
. /tmp/build/fetch-install.sh
. /tmp/build/fetch-quadlets.sh
. /tmp/build/font-install.sh
. /tmp/build/install-tmp.sh
. /tmp/build/systemd.sh
. /tmp/build/bluefin-changes.sh
. /tmp/build/aurora-changes.sh
Expand Down
2 changes: 1 addition & 1 deletion build_files/base/copr-repos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

# Add Staging 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
Expand Down
10 changes: 8 additions & 2 deletions build_files/base/fetch-install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

# Starship Shell Prompt
curl -Lo /tmp/starship.tar.gz "https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz"
Expand All @@ -21,4 +21,10 @@ wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /usr/etc/flatpak/remo
pip install --prefix=/usr topgrade

# Install ublue-update -- breaks with packages.json
rpm-ostree install ublue-update
rpm-ostree install ublue-update

# Consolidate Just Files
find /tmp/just -iname '*.just' -exec printf "\n\n" \; -exec cat {} \; >> /usr/share/ublue-os/just/60-custom.just

# Copy over ublue-update config
cp /tmp/ublue-update.toml /usr/etc/ublue-update/ublue-update.toml
2 changes: 1 addition & 1 deletion build_files/base/fetch-quadlets.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -oue pipefail
set -ouex pipefail

# Make Directory
mkdir -p /usr/etc/containers/systemd/users
Expand Down
2 changes: 1 addition & 1 deletion build_files/base/install-akmods.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -oue pipefail
set -ouex pipefail

sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
wget https://negativo17.org/repos/fedora-multimedia.repo -O /etc/yum.repos.d/negativo17-fedora-multimedia.repo
Expand Down
7 changes: 0 additions & 7 deletions build_files/base/install-tmp.sh

This file was deleted.

16 changes: 0 additions & 16 deletions build_files/base/nvidia-explicit-sync.sh

This file was deleted.

11 changes: 11 additions & 0 deletions build_files/base/nvidia.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/bash

set -ouex pipefail

# Nvidia Configurations
if [[ "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then
# Restore x11 for Nvidia Images
if [[ "${BASE_IMAGE_NAME}" =~ "kinoite" && "${FEDORA_MAJOR_VERSION}" -gt "39" ]]; then
rpm-ostree install plasma-workspace-x11
fi
fi
2 changes: 1 addition & 1 deletion build_files/dx/branding-dx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

if test "$BASE_IMAGE_NAME" = "silverblue"; then
sed -i '/^PRETTY_NAME/s/Bluefin/Bluefin-dx/' /usr/lib/os-release
Expand Down
2 changes: 1 addition & 1 deletion build_files/dx/build-dx.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash
# shellcheck disable=SC1091

set -oue pipefail
set -ouex pipefail

# Apply IP Forwarding before installing Docker to prevent messing with LXC networking
sysctl -p
Expand Down
2 changes: 1 addition & 1 deletion build_files/dx/copr-repos-dx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

#incus, lxc, lxd
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
Expand Down
2 changes: 1 addition & 1 deletion build_files/dx/fetch-install-dx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

curl -Lo ./kind "https://github.com/kubernetes-sigs/kind/releases/latest/download/kind-$(uname)-amd64"
chmod +x ./kind
Expand Down
2 changes: 1 addition & 1 deletion build_files/dx/systemd-dx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

set -oue pipefail
set -ouex pipefail

systemctl enable docker.socket
systemctl enable podman.socket
Expand Down
4 changes: 2 additions & 2 deletions build_files/shared/image-info.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

set -oue pipefail
set -ouex pipefail

IMAGE_INFO="/usr/share/ublue-os/image-info.json"
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"

case $FEDORA_MAJOR_VERSION in
38)
39)
IMAGE_TAG="gts"
;;
*)
Expand Down
Loading