Description of problem:
Trying to reboot in any of the usual ways (CTRL+ALT+DEL, init 6, "Restart" from gdm) results in a power-off instead.
It turns out that /etc/init.d/halt passes a "-p" parameter to /sbin/reboot (a symlink to systemctl) and unlike upstart, systemd does not ignore it in this case.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have upstart-sysvinit installed.
2. Run "reboot -f -p". Notice it causes a reboot, "-p" is correctly ignored.
3. Uninstall upstart-sysvinit, install systemd-sysvinit instead.
4. Run "reboot -f -p".
It powers off instead of reboot.
The "-p" parameter should be ignored when systemctl is invoked as "reboot".
Adding to F14Beta blocker list per the following Beta release criteria (https://fedoraproject.org/wiki/Fedora_14_Beta_Release_Criteria)
"The desktop's offered mechanisms for shutting down, logging out
and rebooting must work "
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.
More information and reason for this action is here:
Created attachment 435583 [details]
systemctl: ignore "-p" when called as "reboot"
*** Bug 620290 has been marked as a duplicate of this bug. ***
Fix merged upstream.
Michal, thanks for the patch! Much appreciated!