Commit 1c7d4b9
fix: ship rechunker-group-fix service for legacy-rechunk→chunkah migration (#18)
When users bootc switch from ghcr.io/ublue-os/bluefin (legacy-rechunk)
to ghcr.io/projectbluefin/bluefin (chunkah/rpm-ostree build-chunked-oci),
the first boot fails with a black screen. Root cause: legacy-rechunk's
1_prune.sh moves /etc/group entries into /usr/lib/group for nss-altfiles,
but chunkah images don't use nss-altfiles. This desyncs /etc/gshadow
from /etc/group, causing systemd-sysusers to fail on first boot:
systemd-sysusers[1022]: /etc/gshadow: Group "plocate" already exists.
The fix (from ublue-os/aurora, Dec 2025): a oneshot systemd service that
rebuilds /etc/gshadow from /etc/group on every boot. The service is
idempotent and harmless once gshadow is clean.
Files added (verbatim from Aurora):
- system_files/shared/usr/bin/rechunker-group-fix
- system_files/shared/usr/lib/systemd/system/rechunker-group-fix.service
Service enabled in build_files/base/17-cleanup.sh.
Without this fix, the first boot into projectbluefin/bluefin after
switching from ublue-os/bluefin WILL produce a black screen. Second
boot of the same image succeeds, but users will think the image is broken.
Fixes: ublue-os/bluefin#3852
See also:
- ublue-os/bluefin-lts#918 (renner0e test report)
- bootc-dev/bootc#1179
- ublue-os/aurora#1468
- https://github.com/ublue-os/legacy-rechunk/blob/1d2b0c2e/1_prune.sh#L41-L47
Assisted-by: Claude Sonnet 4.6 via GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ec6a12a commit 1c7d4b9
3 files changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments