#159 Incorrect value for $HOME for first user on Kinoite
Opened by siosm. Modified

See https://discussion.fedoraproject.org/t/the-home-directory/35482:

On Fedora Silverblue, the value of the $HOME variable is /var/home/mysuer.
On Fedora Kinoite it is the classic /home/myuser. But only for the user created during the installation process.
Indeed, if I create a new user, its home will be /var/home/newuser

$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
myuser:x:1000:1000:myuser:/home/myuser:/bin/bash
newuser:x:1001:1001:newuser:/var/home/newuser:/bin/bash

Not a big problem, /home is a symlink to /var/home, but it is a discrepancy.


Metadata Update from @siosm:
- Issue untagged with: kinoite

Metadata Update from @siosm:
- Issue tagged with: kinoite

This is likely due to initial setup not setting up the user correctly.

Correction: Not initial-setup, but Anaconda

Some links to get started:

  • https://github.com/rhinstaller/anaconda
  • Main rpm-ostree module is: https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/payloads/payload/rpm_ostree/rpm_ostree.py
  • This issue might however be related to another module, likely: https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/users/users.py

Metadata Update from @siosm:
- Assignee reset

This gets set in https://github.com/coreos/rpm-ostree/blob/main/rust/src/composepost.rs#L270 for the useradd config (/etc/default/useradd) in the images but the default is not changed for the Anaconda ISO thus the users created this way do not have the "correct" homedir.

So this would be a change in Lorax or in any upcoming Anaconda installer ISO building tool to make sure this value gets set properly.

Draft PR in https://pagure.io/fedora-lorax-templates/pull-request/49

Metadata Update from @siosm:
- Issue assigned to siosm
- Issue marked as blocking: #112

Should be fixed in F44 when we complete the move to KDE Plasma Setup: https://fedoraproject.org/wiki/Changes/Unified_KDE_OOBE

Metadata Update from @siosm:
- Issue set to the milestone: Fedora Linux 44 (was: Future Release)

Metadata