Preserve $HOME in %post?

Patrick ks at puzzled.xs4all.nl
Wed Mar 8 17:00:14 UTC 2006


Hi all,

I noticed that $HOME becomes /tmp when I use it in the %post section of
my ks file. Is there a way to preserve "$HOME"? What happens now is
something like this:

cat <<EOF >>/home/test/.rpmmacros
%_topdir %(echo $HOME)/redhat
EOF
chown test.test /home/test/.rpmmacros

After the install & reboot I see:
$ cat /home/test/.rpmmacros
%_topdir %(echo /tmp)/redhat

And I would like it to say:
%_topdir %(echo $HOME)/redhat

Thanks for any suggestions.

Regards,
Patrick




More information about the Kickstart-list mailing list