FS#52580 - [gnome-initial-setup] RFC: use /run/gnome-initial-setup as home dir

Attached to Project: Community Packages
Opened by Marcos Mello (marcosfrm) - Monday, 16 January 2017, 17:28 GMT
Last edited by Balló György (City-busz) - Tuesday, 24 January 2017, 11:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Arch's package install script puts gnome-initial-setup's home dir in /var/lib/gnome-initial-setup. This is problematic, because after a successful completion of initial setup, if we exclude the newly created user, initial setup will not run again until /var/lib/gnome-initial-setup contents are erased. I am not sure why this occurs. May be due to permissions inside /var/lib/gnome-initial-setup (they are from the created user, not from gnome-initial-setup). Other distributions like Fedora[1] and openSUSE[2] put g-i-s home in /run/gnome-initial-setup. As by default it is a tmpfs, it will go away on each reboot and things will work.

Tested with:

usermod -d /run/gnome-initial-setup gnome-initial-setup

exclude all regular users, reboot

g-i-s runs, create user foo

exclude user foo, reboot

g-i-s runs again, create user bar

[1] https://src.fedoraproject.org/cgit/rpms/gnome-initial-setup.git/tree/gnome-initial-setup.spec#n87
[2] https://build.opensuse.org/package/view_file/openSUSE:Factory/gnome-initial-setup/gnome-initial-setup.spec?expand=1
This task depends upon

Closed by  Balló György (City-busz)
Tuesday, 24 January 2017, 11:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  gnome-initial-setup 3.22.1-2
Comment by Balló György (City-busz) - Sunday, 22 January 2017, 03:40 GMT
I'm not sure that it would be good. If I put home directory to '/run/gnome-initial-setup', then pwck shows a warning, because the directory is deleted after each reboot:

# pwck
user 'gnome-initial-setup': directory '/run/gnome-initial-setup' does not exist

I think that gnome-initial-setup should clear its home directory itself when needed. So please report this problem to the upstream developers:
https://bugzilla.gnome.org/page.cgi?id=browse.html&product=gnome-initial-setup
Comment by Marcos Mello (marcosfrm) - Sunday, 22 January 2017, 17:59 GMT
> I'm not sure that it would be good. If I put home directory to '/run/gnome-initial-setup', then pwck shows a warning, because the directory is deleted after each reboot:

Upstream is relying on this behaviour:

https://bugzilla.gnome.org/show_bug.cgi?id=701100
https://git.gnome.org/browse/gnome-initial-setup/commit/?id=1f9c2bdf8f3c098a3c4af4b91f3df9efb4d5785b
Comment by Balló György (City-busz) - Sunday, 22 January 2017, 18:49 GMT
Okay, now I implemented this. Please test gnome-initial-setup 3.22.1-2.
Comment by Marcos Mello (marcosfrm) - Tuesday, 24 January 2017, 09:15 GMT
Thanks. Now it works.

Loading...