Files

61 lines
1.7 KiB
Bash
Raw Permalink Normal View History

2026-03-08 20:42:12 +01:00
#!/usr/bin/env bash
2026-03-09 21:10:02 +01:00
set -eoux pipefail
2026-03-08 16:11:49 +01:00
2026-03-09 21:10:02 +01:00
IMAGE_INFO="$(cat /usr/share/ublue-os/image-info.json)"
IMAGE_REF="$(jq -r '."image-ref"' <<<"$IMAGE_INFO")"
2026-03-10 21:44:49 +01:00
IMAGE_TAG="$(jq -r '."image-tag"' <<<"$IMAGE_INFO")"
2026-03-09 21:10:02 +01:00
IMAGE_REF="${IMAGE_REF##*://}"
2026-03-08 20:25:14 +01:00
2026-03-10 21:44:49 +01:00
# --- 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'
2026-03-09 21:10:02 +01:00
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout=0
sleep-inactive-battery-timeout=0
[org.gnome.desktop.session]
idle-delay=uint32 0
EOF
glib-compile-schemas /usr/share/glib-2.0/schemas
2026-03-10 21:44:49 +01:00
rm -f /etc/xdg/autostart/org.gnome.Software.desktop || true
# --- Installer -----------------------------------------------------------
2026-03-08 20:25:14 +01:00
dnf install -y \
2026-03-10 21:44:49 +01:00
anaconda \
anaconda-gui \
anaconda-live \
2026-03-09 21:10:02 +01:00
libblockdev-btrfs \
libblockdev-lvm \
libblockdev-dm \
2026-03-09 19:56:42 +01:00
firefox
2026-03-10 21:44:49 +01:00
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;
2026-03-09 19:56:42 +01:00
EOF
2026-03-10 21:44:49 +01:00
update-desktop-database /usr/share/applications || true
2026-03-09 19:56:42 +01:00
2026-03-10 21:44:49 +01:00
# --- Kickstart -----------------------------------------------------------
2026-03-09 21:10:02 +01:00
tee /usr/share/anaconda/interactive-defaults.ks <<EOF
2026-03-10 21:44:49 +01:00
ostreecontainer --url=${IMAGE_REF}:${IMAGE_TAG} --transport=containers-storage --no-signature-verification
2026-03-09 21:10:02 +01:00
EOF