Bug 110888

Summary: anaconda should have a poweroff option
Product: [Fedora] Fedora Reporter: Stefan Christians <bugzilla>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-05 15:45:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Christians 2003-11-25 09:33:52 UTC
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.

Comment 1 Christoffer Leitet 2004-05-11 15:28:33 UTC
Can't you just make a call to /sbin/poweroff in the %POST section of
the kickstart file?

Comment 2 Stefan Christians 2004-05-12 03:35:56 UTC
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.


Comment 3 Jeremy Katz 2004-10-05 15:45:42 UTC
There are now reboot, halt and poweroff commands implemented for
kickstart.