Forgotten home dir

Frank Morawietz <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <VI1PR06MB4989232EE6F20B92E2D5C218825C0@VI1PR06MB4989.eurprd06.prod.outlook.com>
Hello all,

I came across a strange problem during installation: FAI seems to forget the home directory of the root user in the installation system.

echo $HOME
/

echo ~
/

whoami
root

grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

So, according to /etc/passwd the home directory of the root user is  /root . But in the running installation system, this is forgotten and defaults to / .

This in turn causes major pain, because in the home directory of the root user, I have configuration files e.g. for the package downloads via curl through our company obligatory authenticating WWW-Proxy. If the home dir is wrong, it does not find it's config and fails.

I can manually define "export HOME=/root" and then downloading and installing packages works again. Of course only in the current shell.

I used to have a workaround by just adding this above definition into  /srv/fai/config/hooks/updatebase.OPENSUSE .
This was working for some time, but as I am continuing to build and improve my installation system, this is no longer enough. Looks like the home directory gets forgotten again when the install_packages stage read my config file OPENSUSE . Before this point downloading and installing packages work. At this point it fails.

Any ideas? Anybody else experienced this?

Regards,
Frank
--
Frank Morawietz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.