Enable cups.socket on the live ISO #95

Open
Breadway wants to merge 1 commit from fix/bos-93-live-cups-socket into main
Owner

How it was found

BOS-93: a fresh BOS ISO in QEMU shows "Scheduler is not running" on the Printers page. systemctl is-enabled cups.service cups.socket reports disabled/disabled in the live session. Installed systems already enable cups.socket in iso/airootfs/etc/calamares/post-install.sh, so the gap is live-media only. Confirmed from source: the live airootfs has symlinks only for NetworkManager and bos-live-setup, and no cups entry.

What changed

  • iso/airootfs/etc/systemd/system/sockets.target.wants/cups.socket: absolute symlink to /usr/lib/systemd/system/cups.socket, the same form NetworkManager uses in multi-user.target.wants.
  • scripts/ci-verify-bake.sh: when a staged image is checked, assert the cups.socket link exists. Uses -L because the absolute target only resolves on the booted system.
  • CHANGELOG.md: one plain-language line under [Unreleased].

Tests

  • bash -n scripts/ci-verify-bake.sh: pass.
  • Fixture check in /tmp/opencode/bos93-fixture: a staged tree with the link passes the new check, a tree without it fails.
  • Not run: shellcheck (not installed on this host), and a full ci-verify-bake.sh run (needs a builder home and staged image). No ISO was baked and nothing was tested live.

Refs BOS-93

## How it was found BOS-93: a fresh BOS ISO in QEMU shows "Scheduler is not running" on the Printers page. `systemctl is-enabled cups.service cups.socket` reports disabled/disabled in the live session. Installed systems already enable cups.socket in `iso/airootfs/etc/calamares/post-install.sh`, so the gap is live-media only. Confirmed from source: the live airootfs has symlinks only for NetworkManager and bos-live-setup, and no cups entry. ## What changed - `iso/airootfs/etc/systemd/system/sockets.target.wants/cups.socket`: absolute symlink to `/usr/lib/systemd/system/cups.socket`, the same form NetworkManager uses in multi-user.target.wants. - `scripts/ci-verify-bake.sh`: when a staged image is checked, assert the cups.socket link exists. Uses `-L` because the absolute target only resolves on the booted system. - `CHANGELOG.md`: one plain-language line under [Unreleased]. ## Tests - `bash -n scripts/ci-verify-bake.sh`: pass. - Fixture check in `/tmp/opencode/bos93-fixture`: a staged tree with the link passes the new check, a tree without it fails. - Not run: shellcheck (not installed on this host), and a full `ci-verify-bake.sh` run (needs a builder home and staged image). No ISO was baked and nothing was tested live. Refs BOS-93
The live medium never enabled cups.socket, so Settings > Printers
reported 'Scheduler is not running' until the user started CUPS by hand.
Installed systems already enable it in post-install.sh.

Add the same socket link to the live airootfs as NetworkManager uses,
and assert it in ci-verify-bake.sh when a staged image is checked.

Refs BOS-93
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/bos-93-live-cups-socket:fix/bos-93-live-cups-socket
git switch fix/bos-93-live-cups-socket

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/bos-93-live-cups-socket
git switch fix/bos-93-live-cups-socket
git rebase main
git switch main
git merge --ff-only fix/bos-93-live-cups-socket
git switch fix/bos-93-live-cups-socket
git rebase main
git switch main
git merge --no-ff fix/bos-93-live-cups-socket
git switch main
git merge --squash fix/bos-93-live-cups-socket
git switch main
git merge --ff-only fix/bos-93-live-cups-socket
git switch main
git merge fix/bos-93-live-cups-socket
git push origin main
Sign in to join this conversation.
No description provided.