Description of problem: There already is a kickstart 'reboot' option. It would be very helpful to have a 'poweroff' option as well. That would allow remote installations on Friday evening and the hosts would not be on all weekend until somebody switches them off on Monday morning. Version-Release number of selected component (if applicable): anaconda-9.2-2 How reproducible: Always Steps to Reproduce: 1. include a line 'poweroff' in the commands section of the ks.cfg file 2. 3. Actual Results: kickstart does not understand the poweroff command Expected Results: the system should shut down after completed installation Additional info: This is really a very simple thing, so I would love to provide a patch. Unfortuantely, I do not speak Python. But for anybody who does, it should be fairly easy to implement a mechanism more or less in parallel to what the 'reboot' option does.
Can't you just make a call to /sbin/poweroff in the %POST section of the kickstart file?
Good point, but actually it depends on how the %post script is executed by anaconda. If anaconda "calls" the %post section and waits for it to finish and give control back to anaconda, /sbin/poweroff should not be called from %post. If the running anaconda process replaces itself with the %post script (like perl's exec function), calling /sbin/poweroff from within %post should be acceptable.
There are now reboot, halt and poweroff commands implemented for kickstart.