Closed ampresent closed 8 months ago
Yeah looks like a bug. I think we should even consider to call
systemctl halt
as we have a running systemd inside of the initrd
I tested an image with the provided PR, after deploy you will see messages like
[ OK ] Reached target System Shutdown.
[ OK ] Reached target Late Shutdown Services.
[ OK ] Finished System Halt.
[ OK ] Reached target System Halt.
[ 30.313607][ T1] reboot: System halted
I think this is the expected behavior. Please comment on the PR in case there are objections.
Thanks much
Problem description
<oem-shutdown>true</oem-shutdown>
doesn't really shutdown but reboot the machine.Expected behaviour
The machine is to be shutdown after installation.
Steps to reproduce the behaviour
OS and Software information
I suspect the issue is resulted from this line, where
reboot -p
might mean reboot rather than poweroff. https://github.com/OSInside/kiwi/blob/5e40229b1c75d0a36df17c2565bd23304168ad81/dracut/modules.d/99kiwi-dump-reboot/kiwi-dump-reboot-system.sh#L33