From c6212a774b18782e17e126150d67736345e77cff Mon Sep 17 00:00:00 2001 From: rickpeters Date: Sun, 27 Sep 2026 21:50:24 +0200 Subject: [PATCH] fix: The live session's name is set after the packages (a package overwrote airootfs' os-release) --- TODO.md | 14 +++++++++----- steamify-customize.sh | 10 ++++++++++ util-iso.sh | 4 ++++ 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100755 steamify-customize.sh diff --git a/TODO.md b/TODO.md index 52a091a..2bd0d9a 100644 --- a/TODO.md +++ b/TODO.md @@ -2,11 +2,10 @@ ## Open -1. **Test the live session** after the next build (`build-live-modules.sh` - runs in the container before buildiso.sh): Vapor look and layout at the - live login, `lsmod | grep steamify` in the live session (on the Steam - Machine it loads; in the VM with `--fremont` too), and shutting down from - the live session on the real Steam Machine stays off. +1. **Check the live name** after the next build: Hello's subtitle should say + "Steamify CachyOS, based on CachyOS rolling" (`steamify-customize.sh`, + run by mkarchiso after the packages; the airootfs copy of os-release is + overwritten by a package). 2. **Steamify PR**: `feat/defaults-mode` (2.6.0, `b948c20`) in steamify-cachyos, pushed, no PR yet (checked 2026-09-27: not on main, newest release v2.5.2). Ready: open it; the user @@ -17,6 +16,11 @@ ## Done +- **Live session** (VM, `--fremont`): Vapor look and layout (Steam Deck + wallpaper) at the live login; the power-off module is built for both ISO + kernels and loaded at boot, in the VM it returns "No such device" (no + AMDI0030 GPIO controller), as designed. Whether it keeps the real Steam + Machine off is part of the hardware test. - **Regression test 2.6.0 on an existing desktop install** (test VM from ssh-ready, `--fremont`): full first run, re-apply, notifications/CEC/theme off and on again. No errors; user units enabled and running, theme applied diff --git a/steamify-customize.sh b/steamify-customize.sh new file mode 100755 index 0000000..07a6f30 --- /dev/null +++ b/steamify-customize.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# steamify-customize.sh : changes to the live system after its +# packages are installed (mkarchiso runs it, see modify_mkarchiso in +# util-iso.sh); files in airootfs are copied before the packages, which +# overwrite them. +set -euo pipefail +root="$1" +# The name CachyOS Hello shows ("Steamify CachyOS, based on CachyOS rolling"). +sed -i -e 's/^NAME=.*/NAME="Steamify CachyOS, based on CachyOS"/' \ + -e 's/^PRETTY_NAME=.*/PRETTY_NAME="Steamify CachyOS, based on CachyOS"/' "$root/etc/os-release" diff --git a/util-iso.sh b/util-iso.sh index da76a99..5406835 100755 --- a/util-iso.sh +++ b/util-iso.sh @@ -129,6 +129,10 @@ modify_mkarchiso() { else msg "mkarchiso is already patched!" fi + # Steamify: live-system changes after the packages (they overwrite airootfs). + if ! grep -q 'steamify-customize.sh' /usr/bin/mkarchiso; then + sudo sed "s#_run_once _make_customize_airootfs#_run_once _make_customize_airootfs\n\t${src_dir}/steamify-customize.sh \"\${pacstrap_dir}\"#" -i /usr/bin/mkarchiso + fi } prepare_profile(){