Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Broke my kernel trying to switch to systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 642

PostPosted: Thu Aug 22, 2013 10:15 am    Post subject: [solved] Broke my kernel trying to switch to systemd Reply with quote

    Hi folks,

    Up until a few minutes ago, I ran a 3.10.9 kernel that was working just fine. I recently decided I wanted to switch from OpenRC to systemd, and in doing so I was asked to change some kernel configuration options. IIRC what I changed in my config file was:
    • disable CONFIG_GENTOO_LINUX_INIT_SCRIPT
    • enable CONFIG_GENTOO_LINUX_INIT_SYSTEMD
    • enable CONFIG_FHANDLE
    • enable CONFIG_FANOTIFY
    • disable CONFIG_{EXT4,REISERFS}_FS_SECURITY because I wasn't using security labels and couldn't for the life of me remember why I enabled this option

    And now my kernel doesn't boot any more: http://img856.imageshack.us/img856/411/e1g6.jpg

    This is my new .config from the broken kernel: http://pastebin.com/i9qmindD
    This is my working .config from 3.10.7. My previously working .config for 3.10.9 was generated from this config by using make oldconfig: http://pastebin.com/J0h2ypnv
    (note: changing DRM and RADEON from modules to built-in is a red herring, I did this to be able to capture the stack trace from a full-resolution screen)

    Can anyone help me fix my kernel?


Last edited by Aquous on Sun Aug 25, 2013 11:16 am; edited 1 time in total
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 642

PostPosted: Thu Aug 22, 2013 3:44 pm    Post subject: Reply with quote

"Fixed" by disabling IPV6 and BFQ. Since the error message mentions BFQ, it seems likely that this was the culprit, however since I had been on BFQ all along and the problem didn't begin until I set CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y which changed CONFIG_IPV6 from 'n' to 'y', I'd be tempted to say this was a really, really weird conflict between BFQ and IPV6. Any thoughts?
Back to top
View user's profile Send private message
cauchy49
n00b
n00b


Joined: 15 Sep 2008
Posts: 17
Location: france

PostPosted: Thu Aug 22, 2013 5:25 pm    Post subject: Reply with quote

I have the exact same problem. No idea what to do except use cfq instead of bfq
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 642

PostPosted: Sat Aug 24, 2013 9:41 pm    Post subject: Reply with quote

I've done some more testing around and it's not related to CONFIG_IPV6. It's probably CONFIG_FANOTIFY or CONFIG_FHANDLE. Unfortunately, I can't test this hypothesis any more because I'm now using systemd which requires both these options in order to function :P
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Sat Aug 24, 2013 10:27 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=481820#c6
That explains status of Bfq.

Even if you try to disable it
the Bfq patch invasively changes some return types
EINVAL to 0
Better to use the pure upstream vanilla-sources?
_________________
fun2gen2
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1352

PostPosted: Sun Aug 25, 2013 7:14 am    Post subject: Reply with quote

ulenrich wrote:
https://bugs.gentoo.org/show_bug.cgi?id=481820#c6
That explains status of Bfq.

Even if you try to disable it
the Bfq patch invasively changes some return types
EINVAL to 0
Better to use the pure upstream vanilla-sources?


That's not true, the patches were checked (and I have checked them now again) and they do not invasively do anything if you don't enable the option in the kernel.

In fact, even if you do, no return types appear to be changed as far as I can see...


Last edited by TomWij on Sun Aug 25, 2013 7:17 am; edited 1 time in total
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1352

PostPosted: Sun Aug 25, 2013 7:17 am    Post subject: Re: Broke my kernel trying to switch to systemd Reply with quote

Aquous wrote:
Can anyone help me fix my kernel?


Look at the revision in /var/db/pkg/sys-kernel/gentoo-sources-3.10.9/gentoo-sources-3.10.9.ebuild after ,v; if it is 1.1 you have the broken revision whereas 1.2 works, as per the bug. For 1.1, you can apply the patch https://bfq-iosched.googlegroups.com/attach/46d6e501b377bdef/0001-block-Switch-from-BFQ-v6r2-for-3.10.0-to-BFQ-v6r2-fo.patch?view=1&part=4
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 642

PostPosted: Sun Aug 25, 2013 11:15 am    Post subject: Reply with quote

Thank you both, re-emerging gentoo-sources fixed the issue for me :D
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Sun Aug 25, 2013 11:21 am    Post subject: Reply with quote

TomWij wrote:
That's not true, the patches were checked (and I have checked them now again) and they do not invasively do anything if you don't enable the option in the kernel.

Wow, you have done a lot of work! I just proved ...

(I really cannot believe how this is possible,
to have available the Bfq
but it doesnt touch anything before choosing.
A lot of perl ?)

And I see make menuconfig
now has specific Gentoo preselections.
"Hut ab" - the german guy says.
_________________
fun2gen2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum