How to modify /etc contents using %pre script in kickstart?
I have been trying to add some custom configuration file while installing the operating system using kickstart. I have used following %pre configuration in my kickstart configuration, but it is not working. I am using Fedora 25 Netinstall ISO for my kickstart installation. Note: I don't want to do it in %post configuration. I need to create these files under /etc only using %pre configuration.
%pre --log=/mnt/sysimage/root/ks-pre.log
mkdir -p /mnt/sysimage/etc/skel/.config/hexchat
echo "v=2.12.4 N=Developers E=UTF-8 (Unicode) F=19 D=0 S=irc.devel.customserver.com J=#developers N=freenode L=6 E=UTF-8 (Unicode) F=23 D=0 S=chat.freenode.net S=irc.freenode.net" > /mnt/sysimage/etc/skel/.config/hexchat/servlist.conf
%end