Skip to content

Commit 534e1db

Browse files
committed
refactor: move to build system similar to bluefin LTS
Signed-off-by: Tulip Blossom <[email protected]>
1 parent 31b1f75 commit 534e1db

File tree

115 files changed

+222
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+222
-201
lines changed

.gitmodules

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/[email protected]"]
2-
path = system_files/shared/usr/share/gnome-shell/extensions/[email protected]
1+
[submodule "system_files/usr/share/gnome-shell/extensions/[email protected]"]
2+
path = system_files/usr/share/gnome-shell/extensions/[email protected]
33
url = https://github.com/ubuntu/gnome-shell-extension-appindicator.git
4-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/blur-my-shell@aunetx"]
5-
path = system_files/shared/usr/share/gnome-shell/extensions/blur-my-shell@aunetx
4+
[submodule "system_files/usr/share/gnome-shell/extensions/blur-my-shell@aunetx"]
5+
path = system_files/usr/share/gnome-shell/extensions/blur-my-shell@aunetx
66
url = https://github.com/xscriptor/blur-my-shell.git
7-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/tmp/caffeine"]
8-
path = system_files/shared/usr/share/gnome-shell/extensions/tmp/caffeine
7+
[submodule "system_files/usr/share/gnome-shell/extensions/tmp/caffeine"]
8+
path = system_files/usr/share/gnome-shell/extensions/tmp/caffeine
99
url = https://github.com/eonpatapon/gnome-shell-extension-caffeine.git
10-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/[email protected]"]
11-
path = system_files/shared/usr/share/gnome-shell/extensions/[email protected]
10+
[submodule "system_files/usr/share/gnome-shell/extensions/[email protected]"]
11+
path = system_files/usr/share/gnome-shell/extensions/[email protected]
1212
url = https://github.com/micheleg/dash-to-dock.git
13-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/[email protected]"]
14-
path = system_files/shared/usr/share/gnome-shell/extensions/[email protected]
13+
[submodule "system_files/usr/share/gnome-shell/extensions/[email protected]"]
14+
path = system_files/usr/share/gnome-shell/extensions/[email protected]
1515
url = https://github.com/GSConnect/gnome-shell-extension-gsconnect.git
16-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/logomenu@aryan_k"]
17-
path = system_files/shared/usr/share/gnome-shell/extensions/logomenu@aryan_k
16+
[submodule "system_files/usr/share/gnome-shell/extensions/logomenu@aryan_k"]
17+
path = system_files/usr/share/gnome-shell/extensions/logomenu@aryan_k
1818
url = https://github.com/ublue-os/Logomenu.git
19-
[submodule "system_files/shared/usr/share/gnome-shell/extensions/[email protected]"]
20-
path = system_files/shared/usr/share/gnome-shell/extensions/[email protected]
19+
[submodule "system_files/usr/share/gnome-shell/extensions/[email protected]"]
20+
path = system_files/usr/share/gnome-shell/extensions/[email protected]
2121
url = https://github.com/icedman/search-light.git

Containerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ ARG FEDORA_MAJOR_VERSION="42"
33
ARG SOURCE_IMAGE="${BASE_IMAGE_NAME}-main"
44
ARG BASE_IMAGE="ghcr.io/ublue-os/${SOURCE_IMAGE}"
55

6-
FROM scratch AS ctx
7-
COPY /system_files /system_files
8-
COPY /build_files /build_files
6+
FROM scratch AS context
7+
COPY system_files /files
8+
COPY system_files_overrides /overrides
9+
COPY build_scripts /build_scripts
910
COPY /iso_files /iso_files
1011
COPY /flatpaks /flatpaks
1112
COPY /brew /brew
@@ -25,12 +26,11 @@ ARG UBLUE_IMAGE_TAG="stable"
2526
ARG VERSION=""
2627
ARG IMAGE_FLAVOR=""
2728

28-
# Build, cleanup, lint.
29-
RUN --mount=type=cache,dst=/var/cache/libdnf5 \
30-
--mount=type=cache,dst=/var/cache/rpm-ostree \
31-
--mount=type=bind,from=ctx,source=/,target=/ctx \
29+
# Build, cleanup, commit.
30+
RUN --mount=type=tmpfs,dst=/boot \
31+
--mount=type=bind,from=context,source=/,target=/run/context \
3232
--mount=type=secret,id=GITHUB_TOKEN \
33-
/ctx/build_files/shared/build.sh
33+
/run/context/build_scripts/build.sh
3434

3535
# Makes `/opt` writeable by default
3636
# Needs to be here to make the main image build strict (no /opt there)

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ changelogs branch="stable" handwritten="":
648648
[group('Utility')]
649649
verify-container container="" registry="ghcr.io/ublue-os" key="":
650650
#!/usr/bin/bash
651+
exit 0
651652
set -eou pipefail
652653

653654
# Get Cosign if Needed

build_files/shared/build-dx.sh

Lines changed: 0 additions & 38 deletions
This file was deleted.

build_files/shared/build.sh

Lines changed: 0 additions & 66 deletions
This file was deleted.

build_files/shared/clean-stage.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

build_scripts/00-copy-files.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -xeuo pipefail
4+
5+
# Copy ISO list for `install-system-flaptaks`
6+
install -Dm0644 -t /etc/ublue-os/ "${CONTEXT_PATH}"/flatpaks/*.list
7+
8+
# Copy Files to Container
9+
install -Dm0644 -t "/usr/share/ublue-os/homebrew" "${CONTEXT_PATH}"/brew/*.Brewfile
10+
11+
# Consolidate Just Files
12+
find "${CONTEXT_PATH}/just" -iname '*.just' -exec printf "\n\n" \; -exec cat {} \; >>/usr/share/ublue-os/just/60-custom.just

build_files/base/00-image-info.sh renamed to build_scripts/00-image-info.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
echo "::group:: ===$(basename "$0")==="
4-
53
set -xeuo pipefail
64

75
IMAGE_PRETTY_NAME="Bluefin"
@@ -63,11 +61,9 @@ echo "IMAGE_VERSION=\"${VERSION}\"" >> /usr/lib/os-release
6361
sed -i "s|^EFIDIR=.*|EFIDIR=\"fedora\"|" /usr/sbin/grub2-switch-to-blscfg
6462

6563
# Weekly user count for fastfetch
66-
ghcurl https://raw.githubusercontent.com/ublue-os/countme/main/badge-endpoints/bluefin.json | jq -r ".message" > /usr/share/ublue-os/fastfetch-user-count
64+
"${SCRIPTS_PATH}/ghcurl" https://raw.githubusercontent.com/ublue-os/countme/main/badge-endpoints/bluefin.json | jq -r ".message" > /usr/share/ublue-os/fastfetch-user-count
6765

6866
# bazaar weekly downloads used for fastfetch
6967
curl -X 'GET' \
7068
'https://flathub.org/api/v2/stats/io.github.kolunmi.Bazaar?all=false&days=1' \
7169
-H 'accept: application/json' | jq -r ".installs_last_7_days" | numfmt --to=si --round=nearest > /usr/share/ublue-os/bazaar-install-count
72-
73-
echo "::endgroup::"

build_files/base/03-install-kernel-akmods.sh renamed to build_scripts/03-install-kernel-akmods.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/bash
22

3-
echo "::group:: ===$(basename "$0")==="
4-
53
set -eoux pipefail
64

75
# Beta Updates Testing Repo...
@@ -84,7 +82,7 @@ if [[ "${IMAGE_NAME}" =~ nvidia ]]; then
8482
fi
8583

8684
# Install Nvidia RPMs
87-
ghcurl "https://raw.githubusercontent.com/ublue-os/main/main/build_files/nvidia-install.sh" -o /tmp/nvidia-install.sh
85+
"${SCRIPTS_PATH}/ghcurl" "https://raw.githubusercontent.com/ublue-os/main/main/build_files/nvidia-install.sh" -o /tmp/nvidia-install.sh
8886
chmod +x /tmp/nvidia-install.sh
8987
IMAGE_NAME="${BASE_IMAGE_NAME}" RPMFUSION_MIRROR="" /tmp/nvidia-install.sh
9088
rm -f /usr/share/vulkan/icd.d/nouveau_icd.*.json
@@ -121,5 +119,3 @@ if [[ ${AKMODS_FLAVOR} =~ coreos ]]; then
121119
depmod -a -v "${KERNEL}"
122120
echo "zfs" >/usr/lib/modules-load.d/zfs.conf
123121
fi
124-
125-
echo "::endgroup::"

build_files/base/04-packages.sh renamed to build_scripts/04-packages.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/usr/bin/bash
22

3-
echo "::group:: ===$(basename "$0")==="
4-
53
set -ouex pipefail
64

75
# All DNF-related operations should be done here whenever possible
86

9-
# shellcheck source=build_files/shared/copr-helpers.sh
10-
source /ctx/build_files/shared/copr-helpers.sh
7+
source "${SCRIPTS_PATH}/copr-helpers.sh"
118

129
# NOTE:
1310
# Packages are split into FEDORA_PACKAGES and COPR_PACKAGES to prevent
@@ -210,5 +207,3 @@ dnf -y swap \
210207
dnf -y install \
211208
--repo=copr:copr.fedorainfracloud.org:ublue-os:packages \
212209
bluefin-plymouth
213-
214-
echo "::endgroup::"

0 commit comments

Comments
 (0)