Bootstrapping your OS
Go to file
Adam Williamson 8dd55415d1 Revert "Use upstream sysusers configuration"
This reverts commit 8d38ba4971.
It doesn't work, because of a chicken-and-egg problem: we need
to create the user account in %pre, but the configuration file
is obviously not present on the filesystem when %pre runs.

This is a fairly well-known gotcha that's been discussed on
devel@ a few times, e.g.:

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/EXUGSSEMY2MVVGOFZIK4NBMQB5PWWWNG
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/HFAB4HY2J66367V5HR7XSCFGIIV5ZOVY

In the second thread, Rathann and zbyszek recommend using
tmpfiles.d snippets for this kind of purpose (needing something
in /var owned by a user you want to have created by sysusers),
but that's a bit more of a complex change, so I think it makes
sense to just revert first then maybe attempt that later.

This causes a practical problem: on current Rawhide Workstation
live the first two steps of g-i-s are repeated on first boot
after install. The way we try to avoid this is by having
/var/lib/gnome-initial-setup/state copied to the installed
system, but because of this problem, /var/lib/gnome-initial-setup
is owned by root.root and g-i-s cannot write to it, so the file
is not there to be copied.

Note I edited the reversion not to add back the line:
BuildRequires:  gnome-desktop4 >= %{gnome_desktop_version}
because it looks like the removal of that line wasn't really a
part of this sysusers change. I also added a comment warning
that this problem needs to be handled if anyone attempts to
convert to sysusers again.
2024-02-07 13:16:36 -08:00
.gitignore Update to 43.alpha; Switch to WebKitGTK API 4.1 (using libsoup3) 2022-07-19 17:15:39 +02:00
changelog Convert to rpm-autospec 2022-06-21 12:28:53 -05:00
gnome-initial-setup.spec Revert "Use upstream sysusers configuration" 2024-02-07 13:16:36 -08:00
live-user-mode.patch Update live-user-mode.patch again 2024-01-22 14:18:16 -06:00
sources Update to 46.alpha 2024-01-17 13:11:03 -06:00
vendor.conf Add liveuser mode and switch vendor.conf to accomodate it 2023-08-21 11:44:11 -04:00