1+ #! /usr/bin/env bash
2+
3+ set -eoux pipefail
4+
5+ IMAGE_INFO=" $( cat /usr/share/ublue-os/image-info.json) "
6+ IMAGE_TAG=" $( jq -c -r ' ."image-tag"' <<< " $IMAGE_INFO" ) "
7+ IMAGE_REF=" $( jq -c -r ' ."image-ref"' <<< " $IMAGE_INFO" ) "
8+ IMAGE_REF=" ${IMAGE_REF##*:// } "
9+ # sbkey='https://github.com/ublue-os/akmods/raw/main/certs/public_key.der'
10+
11+ # Configure Live Environment
12+
13+ # Remove packages from liveCD to save space
14+ dnf remove -y google-noto-fonts-all ublue-brew ublue-motd yaru-theme || true
15+
16+ # Setup dock
17+ tee /usr/share/glib-2.0/schemas/zz2-org.gnome.shell.gschema.override << EOF
18+ [org.gnome.shell]
19+ welcome-dialog-last-shown-version='4294967295'
20+ favorite-apps = ['anaconda.desktop', 'documentation.desktop', 'discourse.desktop', 'org.mozilla.firefox.desktop', 'org.gnome.Nautilus.desktop']
121EOF
222
23+
324glib-compile-schemas /usr/share/glib-2.0/schemas
425
526systemctl disable rpm-ostree-countme.service
@@ -67,9 +88,8 @@ menu_auto_hide = True
6788[Storage]
6889file_system_type = xfs
6990default_partitioning =
70- / (min 1 GiB, max 70 GiB)
71- /home (min 500 MiB, free 50 GiB)
72- /var
91+ / (min 5 GiB, max 70 GiB)
92+ /var (min 5 GiB)
7393
7494[User Interface]
7595custom_stylesheet = /usr/share/anaconda/pixmaps/silverblue/fedora-silverblue.css
@@ -92,8 +112,7 @@ echo "VARIANT_ID=bluefin-lts" >>/usr/lib/os-release
92112# if [[ "$IMAGE_TAG" =~ gts ]]; then
93113# echo "Bluefin ${IMAGE_TAG^^} release $VERSION_ID (${VERSION_CODENAME:=Big Bird})" >/etc/system-release
94114# else
95- echo " Bluefin release $VERSION_ID Achillobator" > /etc/system-release
96- fi
115+ echo " Bluefin release $VERSION_ID Achillobator" > /etc/system-release
97116sed -i ' s/ANACONDA_PRODUCTVERSION=.*/ANACONDA_PRODUCTVERSION=""/' /usr/{,s}bin/liveinst || true
98117sed -i ' s|^Icon=.*|Icon=/usr/share/pixmaps/fedora-logo-icon.png|' /usr/share/applications/liveinst.desktop || true
99118sed -i ' s| Fedora| Bluefin|' /usr/share/anaconda/gnome/fedora-welcome || true
@@ -107,7 +126,7 @@ rm -rf /root/packages
107126
108127# Interactive Kickstart
109128tee -a /usr/share/anaconda/interactive-defaults.ks << EOF
110- ostreecontainer --url=$IMAGE_REF : $IMAGE_TAG --transport=containers-storage --no-signature-verification
129+ ostreecontainer --url=ghcr.io/ublue-os/bluefin:lts --transport=containers-storage --no-signature-verification
111130%include /usr/share/anaconda/post-scripts/install-configure-upgrade.ks
112131%include /usr/share/anaconda/post-scripts/install-flatpaks.ks
113132EOF
0 commit comments