Forgotten home dir
Frank Morawietz
Frank.Morawietz at merckgroup.com
Thu Dec 5 13:54:08 CET 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20191205/b3e97f15/attachment.html>
More information about the linux-fai
mailing list