-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
feat: reorganize repo for Aurora builds #1091
Changes from 9 commits
709711d
661962c
0b6253c
c23b35d
710811f
5234381
d8470d8
2b5b81d
6e1680e
ba73ee1
4da56d2
fb33dcb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/bash | ||
|
||
set -oue pipefail | ||
|
||
if test "$BASE_IMAGE_NAME" = "silverblue"; then | ||
sed -i '/^PRETTY_NAME/s/Silverblue/Bluefin/' /usr/lib/os-release | ||
elif test "$BASE_IMAGE_NAME" = "kinoite"; then | ||
sed -i '/^PRETTY_NAME/s/Kinoite/Aurora/' /usr/lib/os-release | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/bash | ||
|
||
set -oue pipefail | ||
|
||
. /tmp/build/copr-repos.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be good to just run this in a If you prefer it as-is, I'm okay with that too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That could also work. With this method, we can inline things like that singular rpm-ostree install. But I like the loop method to make us more purposeful with changes. I personally like this source method to not worry about the +x bit. |
||
. /tmp/build/nvidia-explicit-sync.sh | ||
. /tmp/build/install-akmods.sh | ||
. /tmp/build/packages.sh | ||
. /tmp/build/fetch-install.sh | ||
rpm-ostree install ublue-update | ||
. /tmp/build/image-info.sh | ||
. /tmp/build/fetch-quadlets.sh | ||
. /tmp/build/font-install.sh | ||
. /tmp/build/install-tmp.sh | ||
. /tmp/build/systemd.sh | ||
. /tmp/build/branding.sh | ||
. /tmp/build/cleanup.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/bash | ||
|
||
set -ouex pipefail | ||
|
||
rm -f /etc/yum.repos.d/tailscale.repo | ||
rm -f /etc/yum.repos.d/charm.repo | ||
rm -f /etc/yum.repos.d/ublue-os-staging-fedora-"${FEDORA_MAJOR_VERSION}".repo | ||
echo "Hidden=true" >> /usr/share/applications/fish.desktop | ||
echo "Hidden=true" >> /usr/share/applications/htop.desktop | ||
echo "Hidden=true" >> /usr/share/applications/nvtop.desktop | ||
if [ "$BASE_IMAGE_NAME" = "silverblue" ]; then | ||
echo "Hidden=true" >> /usr/share/applications/gnome-system-monitor.desktop | ||
fi | ||
rm -f /etc/yum.repos.d/_copr_che-nerd-fonts-"${FEDORA_MAJOR_VERSION}".repo |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/bash | ||
|
||
set -oue 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 && \ | ||
# 39 gets VRR and Ptyxis | ||
if [ ${FEDORA_MAJOR_VERSION} -eq "39" ]; then \ | ||
m2Giles marked this conversation as resolved.
Show resolved
Hide resolved
|
||
wget https://copr.fedorainfracloud.org/coprs/kylegospo/gnome-vrr/repo/fedora-"${FEDORA_MAJOR_VERSION}"/kylegospo-gnome-vrr-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/_copr_kylegospo-gnome-vrr.repo && \ | ||
rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:kylegospo:gnome-vrr mutter mutter-common gnome-control-center gnome-control-center-filesystem && \ | ||
rm -f /etc/yum.repos.d/_copr_kylegospo-gnome-vrr.repo && \ | ||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:ublue-os:staging \ | ||
gtk4 \ | ||
vte291 \ | ||
vte-profile \ | ||
libadwaita && \ | ||
rpm-ostree install \ | ||
ptyxis \ | ||
; fi && \ | ||
# 40 gets only Ptyxis | ||
if [ ${FEDORA_MAJOR_VERSION} -eq "40" ]; then \ | ||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:ublue-os:staging \ | ||
vte291 \ | ||
vte-profile && \ | ||
rpm-ostree install \ | ||
ptyxis \ | ||
; fi && \ | ||
# Add Nerd Fonts | ||
wget https://copr.fedorainfracloud.org/coprs/che/nerd-fonts/repo/fedora-"${FEDORA_MAJOR_VERSION}"/che-nerd-fonts-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/_copr_che-nerd-fonts-"${FEDORA_MAJOR_VERSION}".repo |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/bash | ||
|
||
set -oue 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" && \ | ||
tar -xzf /tmp/starship.tar.gz -C /tmp && \ | ||
install -c -m 0755 /tmp/starship /usr/bin && \ | ||
echo 'eval "$(starship init bash)"' >> /etc/bashrc | ||
|
||
# Brew Install Script | ||
wget https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh -O /usr/libexec/brew-install && \ | ||
chmod +x /usr/libexec/brew-install | ||
|
||
# Flatpak Remotes | ||
mkdir -p /usr/etc/flatpak/remotes.d && \ | ||
wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /usr/etc/flatpak/remotes.d | ||
|
||
# Topgrade Install | ||
pip install --prefix=/usr topgrade |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/bash | ||
|
||
set -ouex pipefail | ||
fc-cache -f /usr/share/fonts/ubuntu | ||
fc-cache -f /usr/share/fonts/inter |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/bash | ||
|
||
set -ouex pipefail | ||
|
||
find /tmp/just -iname '*.just' -exec printf "\n\n" \; -exec cat {} \; >> /usr/share/ublue-os/just/60-custom.just | ||
|
||
cp /tmp/ublue-update.toml /usr/etc/ublue-update/ublue-update.toml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/bash | ||
|
||
# Install Explicit Sync Patches on Nvidia builds | ||
if [[ "${IMAGE_FLAVOR}" =~ "nvidia" && "${IMAGE_FLAVOR}" =~ "39" ]]; then \ | ||
wget https://copr.fedorainfracloud.org/coprs/gloriouseggroll/nvidia-explicit-sync/repo/fedora-$(rpm -E %fedora)/gloriouseggroll-nvidia-explicit-sync-fedora-$(rpm -E %fedora).repo?arch=x86_64 -O /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo && \ | ||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ | ||
xorg-x11-server-Xwayland && \ | ||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ | ||
egl-wayland \ | ||
|| true && \ | ||
rm /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo \ | ||
; fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/bash | ||
|
||
|
||
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 | ||
systemctl --global enable ublue-flatpak-manager.service | ||
systemctl enable ublue-update.timer | ||
systemctl enable ublue-system-setup.service | ||
systemctl --global enable ublue-user-setup.service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope for this PR, but a thought - would it be good to move this to scripts too, and use skopeo or similar to extract these files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be nicer. We could remove a few of these COPY layers with that.