Kickstart - IPA Client Install (Fails)

Latest response

Centos 7.5

I am trying to enroll a client to IPA through kickstart -

%post --nochroot --erroronfail --logfile=/mnt/sysimage/root/kickstart.log

Get the hostname to set as the host principal

/bin/hostname > /tmp/hostname.txt

Run the client install script

display otp password

cat /tmp/otp
export otp=$(cat /tmp/otp)

/usr/sbin/ipa-client-install --hostname=$hostname.boulder.us.lmco.com --mkhomedir --password=$otp --server=apex-u-ipa.boulder.lmco.com --domain=boulder.lmco.com --unattended

sleep 10
eject

end of post

%end

Error: /tmp/ks-script-IqWu2g: line 75: /usr/sbin/ipa-client-install: No such file or directory

Responses

is the ipa-client package installed? The error makes me suspect it is not.

Thank you for the Reply Stephen.

Yes for some reason ipa-client isn't installing until after reboot

I do have ipa-client added in the package section as well.