openSuse 13.2 mit custom kernel systemd problem

Hello,

I build a new custom kernel (3.17.5) in openSuse 13.2 .
Unfortunately after I try to boot in the new kernel,
an error message appears an the boot progress stops/hangs.

Here the error message:

[FAILED] Failed to start Load Kernel Modules
See “systemctl status systemd-modules-load.service” for details.

can anybody please help me ?

Best regards
B.-D.

Did you do a mkinitd?

So you built a kernel how?what else did you do?

And,
Do what the error message says.

If you don’t understand the result, post (in CODE tags) the results of the following

systemctl status systemd-modules-load.service

TSU

Hello,

I configured the kernel with the command “zcat /proc/config.gz > .config” .
Than I compiled the kernel with the command “make dep clean bzImage modules modules_install” .
After compiling I did “mkinitrd -k vmlinux-3.17.5 -i initrd-3.17.5” in /boot .
In all older openSuse version it works but now in the new version ist doesn`t work.

I cant boot to kernel 3.17.5, the boot process stops. So I cant execute the command
“systemctl status systemd-modules-load.service” in the new kernel. It works only in
the out of the box kernel from openSuse “3.16.6-2-desktop” .

suse-test:~ # uname -a
Linux suse-test 3.16.6-2-desktop #1 SMP PREEMPT Mon Oct 20 13:47:22 UTC 2014 (feb42ea) x86_64 x86_64 x86_64 GNU/Linux
suse-test:~ # systemctl status systemd-modules-load.service
systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
Active: active (exited) since Sun 2014-12-14 17:55:28 CET; 24min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 718 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
Main PID: 718 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/systemd-modules-load.service

Best regrads
B.-D.

The current openSUSE 13.2 uses dracut instead of mkinitrd to generate the initrd. I suggest, you try that.
And no, I don’t know the right commands :frowning:

Hendrik

The right command is “mkinitrd”. :wink:

This is a (openSUSE specific) script included in dracut, that calls dracut with the correct parameters according to the settings in /etc/sysconfig/kernel.

Hello,

there is no “kernel” file or direcrtoy in “/etc/sysconfig/” .

~ #ls -al /etc/sysconfig/
total 272
drwxr-xr-x 5 root root 4096 Dec 11 14:18 .
drwxr-xr-x 129 root root 12288 Dec 11 16:41 …
-rw-r–r-- 1 root root 34721 Dec 11 14:18 SuSEfirewall2
drwxr-xr-x 3 root root 4096 Oct 26 10:46 SuSEfirewall2.d
-rw-r–r-- 1 root root 10870 Dec 11 14:13 apache2
-rw-r–r-- 1 root root 450 Dec 11 14:08 atd
-rw-r–r-- 1 root root 1304 Dec 11 14:08 avahi
-rw-r–r-- 1 root root 1143 Oct 26 09:58 backup
-rw-r–r-- 1 root root 19 Dec 11 14:18 boot
-rw-r–r-- 1 root root 994 Dec 11 14:18 bootloader
-rw-r–r-- 1 root root 2902 Oct 26 09:59 btrfsmaintenance
-rw-r–r-- 1 root root 55 Dec 11 14:18 clock
-rw-r–r-- 1 root root 1549 Dec 11 14:18 console
-rw-r–r-- 1 root root 2086 Oct 26 09:59 cron
-rw-r–r-- 1 root root 3584 Dec 11 14:18 displaymanager
-rw-r–r-- 1 root root 612 Oct 26 10:00 dmraid
-rw-r–r-- 1 root root 2007 Dec 11 14:07 esound
-rw-r–r-- 1 root root 7621 Oct 26 10:02 fonts-config
-rw-r–r-- 1 root root 1979 Dec 11 14:14 icecream
-rw-r–r-- 1 root root 390 Oct 26 09:58 ide
-rw-r–r-- 1 root root 834 Dec 11 14:06 irqbalance
-rw-r–r-- 1 root root 875 Dec 11 14:08 ispell
-rw-r–r-- 1 root root 2976 Dec 11 14:18 keyboard
-rw-r–r-- 1 root root 3839 Dec 11 14:18 language
-rw-r–r-- 1 root root 1014 Dec 11 14:09 lirc
-rw-r–r-- 1 root root 1144 Oct 26 09:59 mail
-rw-r–r-- 1 root root 386 Dec 11 14:08 mcelog
-rw-r–r-- 1 root root 1755 Oct 26 09:59 mdadm
-rw-r–r-- 1 root root 1119 Oct 26 09:59 mouse
drwxr-xr-x 6 root root 4096 Dec 11 14:18 network
-rw-r–r-- 1 root root 193 Oct 26 09:58 news
-rw-r–r-- 1 root root 6039 Oct 26 09:59 nfs
-rw-r–r-- 1 root root 1936 Dec 11 14:18 ntp
-rw-r–r-- 1 root root 901 Oct 26 09:59 packagekit-background
-rw-r–r-- 1 root root 14776 Oct 26 09:59 postfix
-rw-r–r-- 1 root root 1005 Oct 26 09:58 proxy
-rw-r–r-- 1 root root 172 Oct 26 09:59 rpcbind
-rw-r–r-- 1 root root 182 Dec 11 14:11 samba
drwxr-xr-x 2 root root 4096 Oct 26 10:46 scripts
-rw-r–r-- 1 root root 1836 Dec 11 14:18 security
-rw-r–r-- 1 root root 379 Oct 26 09:58 services
-rw-r–r-- 1 root root 1378 Dec 11 14:07 smartmontools
-rw-r–r-- 1 root root 120 Oct 26 09:58 snapper
-rw-r–r-- 1 root root 756 Oct 26 10:02 sound
-rw-r–r-- 1 root root 162 Oct 26 09:59 ssh
-rw-r–r-- 1 root root 902 Dec 11 14:18 storage
-rw-r–r-- 1 root root 1160 Dec 11 14:10 susehelp
-rw-r–r-- 1 root root 1261 Dec 11 14:18 windowmanager
-rw-r–r-- 1 root root 926 Dec 11 14:05 words
-rw-r–r-- 1 root root 3730 Oct 26 09:59 yast2
-rw-r–r-- 1 root root 1758 Oct 26 09:59 ypbind

I did execute the command “mkinitrd -k vmlinux-3.17.5 -i initrd-3.17.5” in /boot
but the new kernel doesn`t boot .

Here a screen from the boot progress.

http://fs1.directupload.net/images/141217/n9usu4nh.png

Best regards
B.-D.

On Tue, 16 Dec 2014 08:26:09 GMT Bit Devil wrote:

> I configured the kernel with the command “zcat /proc/config.gz >
> .config” .
> Than I compiled the kernel with the command “make dep clean bzImage
> modules modules_install” .
> After compiling I did “mkinitrd -k vmlinux-3.17.5 -i initrd-3.17.5” in
> /boot .
> In all older openSuse version it works but now in the new version ist
> doesn`t work.

Here is the way of mine which results in a working kernel (and i suggest
to take 3.17.6 or 3.17.7). I use only the sources from kernel.org and
the BFQ scheduler patches.

make mrproper

patch WhatYoutWantToHave.patch(es)

make distclean

zcat /proc/config.gz > .config

Comment: For the first step to a new kernel release i even download the
kernel source from the suse kernel repo to take a look at the
kernel-desktop config file during the first “make oldconfig”. You can
use this newer kernel config as “.config” too.

Attention: In the first step to another kernel than the one from suse i
deactivate a lot of CONFIG_DEBUG* to get a “normal” size for the
kernel and the modules. I think this is because suse split the
debug-files in another package.

make oldconfig 2>&1 | tee …/make_oldconfig-$(date --iso-8601).log

make menuconfig => Change CONFIG_LOCALVERSION (example -1-new)

make modules_prepare

make -j4 2>&1 | tee …/make_kernel-$(date --iso-8601).log

make kernelrelease (CHECK Kernel Release Name)

Comment: From here on i run the rest as root.

make INSTALL_FW_PATH=/lib/firmware/3.17.7-1-new modules_install

cp arch/x86/boot/bzImage /boot/vmlinuz-3.17.7-1-new

cp System.map /boot/System.map-3.17.7-1-new

cp .config /boot/config-3.17.7-1-new

cd /boot

mkinitrd -k vmlinuz-3.17.7-1-new -i initrd-3.17.7-1-new

grub2-mkconfig --output=/boot/grub2/grub.cfg

Good luck

Hello Ferenginar,

thanks it works

Best regards
B.-D.