Bug 150127 - 3 new kickstart features undocumented
Summary: 3 new kickstart features undocumented
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhel-sag
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Andrius Benokraitis
QA Contact: John Ha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-02 19:49 UTC by Brent Fox
Modified: 2015-07-14 04:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-04 02:22:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brent Fox 2005-03-02 19:49:46 UTC
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.

Comment 1 Brent Fox 2005-03-02 19:50:24 UTC
cc'ing Jeremy so he can explain what these commands do.

Comment 2 Jeremy Katz 2005-03-02 20:11:09 UTC
They're the corollary of reboot but to poweroff, halt and shutdown the
system (just like the commands on a normal system)

Comment 3 Andrius Benokraitis 2005-03-03 22:07:30 UTC
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! :-)

Comment 4 Jeremy Katz 2005-03-03 22:27:15 UTC
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.

Comment 5 Andrius Benokraitis 2005-03-04 01:53:32 UTC
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!


Note You need to log in before you can comment on or make changes to this bug.