Last June, Jeremy added 3 new kickstart commands to anaconda: + { KS_CMD_POWEROFF, "poweroff", setPowerOff }, + { KS_CMD_HALT, "halt", setHalt }, + { KS_CMD_SHUTDOWN, "shutdown", setShutdown }, It appears that these new commands are not in the docs, and it's not clear what the differences between them are.
cc'ing Jeremy so he can explain what these commands do.
They're the corollary of reboot but to poweroff, halt and shutdown the system (just like the commands on a normal system)
Just got off the phone with Jeremy, and these were the main ideas... please correct me if I'm off anywhere here! :-) poweroff = '/sbin/shutdown -p' It is highly dependent on hardware BIOS/ASPI, worst case it will halt if the hardware isn't supported. (This option isn't in the man page) :-( halt = '/sbin/shutdown -h' Ejects the CD and halts the box without rebooting. A "halt" keeps the machine on at the end of the install process. shutdown = '/sbin/shutdown' This is a much more general superset of the other commands, functionally. Still a bit fuzzy on this one... reboot = '/sbin/shutdown -r' Ejects the CD and reboots. Good for PXE boot. Bad for CD-based ks installs, as "install looping" occurs. All three eject the CD. Also, does order matter in the ks.cfg file? I thought it did... If it does, I assume this would be the last command in the regular section? If none of these are listed, 'reboot' is the default. THANKS Jeremy! :-)
I wouldn't say equal. Roughly equivalent maybe :) And maybe get rid of the /sbin (and then it maps into what they are) Order doesn't matter. If none of these are listed, then the installer sits at the congratulations screen and waits for you to hit enter to reboot the box.
Great, thanks... I'm going to update it accordingly, and mention that 'reboot' is the default behavior for all successful kickstart installations. I appreciate the comments!