From 7d23ba74016f14469272ce0e580e9545273f76c9 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Tue, 10 Mar 2026 21:44:49 +0100 Subject: [PATCH] Update enable_anaconda.sh --- iso/enable_anaconda.sh | 92 +++++++++++++----------------------------- 1 file changed, 29 insertions(+), 63 deletions(-) diff --git a/iso/enable_anaconda.sh b/iso/enable_anaconda.sh index d4914fc..87fab27 100755 --- a/iso/enable_anaconda.sh +++ b/iso/enable_anaconda.sh @@ -1,18 +1,20 @@ #!/usr/bin/env bash set -eoux pipefail -# ------------------------------------------------------------------- -# Image metadata -# ------------------------------------------------------------------- IMAGE_INFO="$(cat /usr/share/ublue-os/image-info.json)" -IMAGE_TAG="$(jq -r '."image-tag"' <<<"$IMAGE_INFO")" IMAGE_REF="$(jq -r '."image-ref"' <<<"$IMAGE_INFO")" +IMAGE_TAG="$(jq -r '."image-tag"' <<<"$IMAGE_INFO")" IMAGE_REF="${IMAGE_REF##*://}" -# ------------------------------------------------------------------- -# Prevent suspend during installation (Anaconda requirement) -# ------------------------------------------------------------------- -tee /usr/share/glib-2.0/schemas/zz3-fluffy-pancake-installer-power.gschema.override <<'EOF' +# --- Live UX ------------------------------------------------------------- + +tee /usr/share/glib-2.0/schemas/zz-installer.gschema.override <<'EOF' +[org.gnome.shell] +welcome-dialog-last-shown-version='4294967295' +favorite-apps = ['liveinst.desktop', 'org.mozilla.firefox.desktop', 'org.gnome.Nautilus.desktop'] +EOF + +tee /usr/share/glib-2.0/schemas/zz-installer-power.gschema.override <<'EOF' [org.gnome.settings-daemon.plugins.power] sleep-inactive-ac-type='nothing' sleep-inactive-battery-type='nothing' @@ -25,70 +27,34 @@ EOF glib-compile-schemas /usr/share/glib-2.0/schemas -# ------------------------------------------------------------------- -# Install Anaconda (GNOME backend is implicit) -# ------------------------------------------------------------------- +rm -f /etc/xdg/autostart/org.gnome.Software.desktop || true + +# --- Installer ----------------------------------------------------------- + dnf install -y \ - anaconda-webui \ - cockpit-ws \ - cockpit-bridge \ + anaconda \ + anaconda-gui \ + anaconda-live \ libblockdev-btrfs \ libblockdev-lvm \ libblockdev-dm \ firefox -# ------------------------------------------------------------------- -# Anaconda profile (Fluffy Pancake) -# ------------------------------------------------------------------- -tee /etc/anaconda/profile.d/fluffy-pancake.conf <<'EOF' -[Profile] -profile_id = fluffy-pancake - -[Profile Detection] -os_id = fluffy-pancake - -[Network] -default_on_boot = FIRST_WIRED_WITH_LINK - -[Bootloader] -efi_dir = fedora -menu_auto_hide = True - -[Storage] -default_scheme = BTRFS -btrfs_compression = zstd:1 - -[Localization] -use_geolocation = False +tee /usr/share/applications/liveinst.desktop <<'EOF' +[Desktop Entry] +Name=Install System +Comment=Install this system to disk +Exec=anaconda +Icon=system-installer +Terminal=false +Type=Application +Categories=System;Installer; EOF -# ------------------------------------------------------------------- -# OS identity (installer + installed system) -# ------------------------------------------------------------------- -sed -i 's/^ID=.*/ID=fluffy-pancake/' /usr/lib/os-release -grep -q '^VARIANT_ID=' /usr/lib/os-release || \ - echo 'VARIANT_ID=fluffy-pancake' >> /usr/lib/os-release +update-desktop-database /usr/share/applications || true -. /etc/os-release -echo "Fluffy Pancake release $VERSION_ID ($VERSION_CODENAME)" > /etc/system-release +# --- Kickstart ----------------------------------------------------------- -# ------------------------------------------------------------------- -# Minimal Anaconda branding (no GNOME UX tweaks) -# ------------------------------------------------------------------- -sed -i -e 's/Fedora/Fluffy Pancake/g' \ - -e 's/CentOS/Fluffy Pancake/g' \ - /usr/share/anaconda/gnome/org.fedoraproject.welcome-screen.desktop || true - -# ------------------------------------------------------------------- -# Kickstart: install THIS image -# ------------------------------------------------------------------- tee /usr/share/anaconda/interactive-defaults.ks <