By charlie, Wed, 06/10/2009 - 00:41
Commands placed in the %post section are run after the system has finished installing. Normally these commands are run in the chrooted environment of the new host, if you wish to run the commands outsite the chroot, append --nochroot to the %post section. The --interpreter command may be used similar to that used in the %pre section.

Later we will configure puppet to talk to our new server in the %post section. One useful thing to put in the post section is to change the virtual console to vt3, so that you can see the output of any commands you may have put in this section.

%post
chvt 3
echo "executing post install"
sleep 20
chvt 1
We'll now look at our complete example.