I use kickstart to automate the installation of custom centos 7. And everything is fine until this line in the kickstart config inside the %post
section.
echo "#!/bin/bash" >> /script.sh
echo "bash /tmp/dcos/dcos_install.sh slave" >> /script.sh
chmod 755 /script.sh
chmod 755 /tmp/dcos/dcos_install.sh
/script.sh
I'm not sure whether it's permission problem or the kickstart totally skip executing these lines. Is there a way to run command as root in kickstart?