One of the non-OS packages that I need to install via kickstart config requires a pre-existing (non-standard) directory, is there a way to create arbitrary directory before %post in kickstart? Modifying the rpm to remove this requirement is not an option but I'd like to get the package installed as part of kickstart. Thanks.
kickstart allows you to have a %pre-install script, which is further on than
%pre, and has the root of the filesystem ready and mounted at
/mnt/sysimage. So to create dir
/abc/def you should try
%pre-install mkdir -p /mnt/sysimage/abc/def %end
If your anaconda doesnt support this yet, you could try this hack: create a user whose home directory is the directory you need. Eg
user --name=hackforrpm --shell=/sbin/nologin --homedir=/abc/def