I recently started to use systemd. But I experienced a very annoying problem. When I try 'systemctl poweroff', everything goes fine first, systemd says 'Detaching DM Device' and exits, the kernel stopped my hard disk and disabled non-boot cpus, but then my computer just hang there. I wait for about 20-30 second, then kernel compliant that something tries to read the stopped disk.
(kernel message: 'ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0 frozen ata1.00: cmd 60/00:00:ab:f9:21/00:00:00:0b:00:00/40 tag 0 .....') I've tried adding a sleep(3) just before the reboot() call. Doesn't work. I wrote code to read the /proc dir before the reboot() call. The result shows that there is only systemd-shutdown and some kernel threads running. So I tried switching to the Archlinux official kernel and shutdown. This time everything works fine, the system poweroff instantly after systemd says the 'Detaching DM Device'. So I think maybe I forget to enable some kernel options, but I don't know what are they. I've enabled every option listed on ArchWiki[1]. And while this problem persists with systemd, sysvinit works just fine. I've tried zen-kernel version 2.6.38.4-zen and vanilla kernel 2.6.39-rc4, problem exists with both kernel. The Archlinux official kernel version is 2.6.38.4 [1]: https://wiki.archlinux.org/index.php/Systemd#What_kernel_options_do_I_need_to_enable_in_my_kernel_in_case_I_don.27t_use_the_official_Arch_kernel.3F -- ---- Dark Raven @rorvn -Waiting for chaos to begin
pgpeS99DzQb2J.pgp
Description: PGP signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
