[systemd-devel] Which kernel options are required?

drdarkraven at gmail.com drdarkraven at gmail.com
Wed Apr 27 07:46:27 PDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110427/a91979e5/attachment.pgp>


More information about the systemd-devel mailing list