You are not logged in.

#1 2013-03-06 08:38:31

Zuiop
Member
Registered: 2013-03-06
Posts: 7

[Solved] Init not found for new kernels

Hello everyone,

I am experiencing this error message when booting using either the linux-3.7.x or linux-ck-3.8.x kernels. I would investigate towards something being wrong with systemd (i.e. the init= line suggested), but the system boots perfectly fine using linux-lts-3.0.56.1.

Relevant information I can think of:
/ is ext4, LVM. The lvm -3 update has not been done yet.
mkinitcpio 0.13.0-1

I am mostly interested in any direction towards what to investigate -- the fact that there is something wrong with the init not being found, but only for certain kernels, perplexes me.


Thanks for any help,
Jan

(My apologies for the quality.)
http://i.imgur.com/Tv276ds.jpg




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by Zuiop (2013-03-06 20:35:51)

Offline

#2 2013-03-06 11:32:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Init not found for new kernels

What is your current kernel line (in your bootloader) and do you have an /sbin/init?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-03-06 11:47:44

Zuiop
Member
Registered: 2013-03-06
Posts: 7

Re: [Solved] Init not found for new kernels

Here we go:

Kernel lines:

/vmlinuz-linux-lts root=/dev/mapper/VG0-LVroot ro   init=/usr/lib/systemd/systemd fbcon=scrollback:128k elevator=bfq

/vmlinuz-linux-ck root=/dev/mapper/VG0-LVroot ro   init=/usr/lib/systemd/systemd fbcon=scrollback:128k elevator=bfq

/vmlinuz-linux root=/dev/mapper/VG0-LVroot ro   init=/usr/lib/systemd/systemd fbcon=scrollback:128k elevator=bfq


and:

~  l /sbin/init
lrwxrwxrwx 1 root 26 Nov 22 15:21 /sbin/init -> ../usr/lib/systemd/systemd*



Cheers and thanks for any help!

Offline

#4 2013-03-06 11:56:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Init not found for new kernels

And is /usr a directory on your root partition, or is it a separate partition?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-03-06 11:59:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved] Init not found for new kernels

Can you break into the initramfs, and see if /usr/bin/init exists in it. Alternatively boot into a working kernel and use lsinitcpio to check that the specific images have it.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2013-03-06 15:04:50

Zuiop
Member
Registered: 2013-03-06
Posts: 7

Re: [Solved] Init not found for new kernels

/usr is on /.

Here is what lsinitcpio gives me. They all include /usr/bin/init, and in fact the same init related things.

~ /boot    for i in initramfs-linux-lts.img initramfs-linux.img initramfs-linux-ck.img ; do
print $i
lsinitcpio $i | grep init
done                     


initramfs-linux-lts.img
./init
./init_functions
./usr/bin/init
./usr/lib/udev/rules.d/11-dm-initramfs.rules
./etc/initrd-release

initramfs-linux.img
./init
./init_functions
./usr/bin/init
./usr/lib/udev/rules.d/11-dm-initramfs.rules
./etc/initrd-release

initramfs-linux-ck.img
./init
./init_functions
./usr/bin/init
./usr/lib/udev/rules.d/11-dm-initramfs.rules
./etc/initrd-release

Full output (is there a spoiler tag? couldn't find one)
http://paste.kde.org/688802/


Thanks for your continuing help!

Offline

#7 2013-03-06 16:11:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved] Init not found for new kernels

It looks like your initramfs-linux.img and initramfs-linux-ck.img are missing a lot of important files, the lack of ./usr/lib/libc.so.6 and ./usr/lib/ld-linux-x86-64.so.2 in particular will cause problems. A vimdiff between all three outputs will how much you're missing from the two images.

Try rebuilding the images with mkinitcpio. Pay attention to any warnings that pop up.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2013-03-06 17:12:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Init not found for new kernels

WorMzy wrote:

It looks like your initramfs-linux.img and initramfs-linux-ck.img are missing a lot of important files, the lack of ./usr/lib/libc.so.6 and ./usr/lib/ld-linux-x86-64.so.2 in particular will cause problems. A vimdiff between all three outputs will how much you're missing from the two images.

Try rebuilding the images with mkinitcpio. Pay attention to any warnings that pop up.

WorMzy, he did a grep init with that

Offline

#9 2013-03-06 17:30:48

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved] Init not found for new kernels

I think you missed the link to the full output, Scimmia. tongue


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2013-03-06 18:02:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Init not found for new kernels

You're right, I did hmm

Last edited by Scimmia (2013-03-06 18:03:21)

Offline

#11 2013-03-06 20:35:29

Zuiop
Member
Registered: 2013-03-06
Posts: 7

Re: [Solved] Init not found for new kernels

Thanks alot for your help, I'm writing from the -ck kernel now.

What I did was to uninstall gcc-multilib and gcc-libs-multilib, replacing them with their native 64bit counterparts. I saw that e.g. lib32-devmapper wasn't installed. Am I expected to check for this sort of omission? I expected that, unless I specifically need such a library, installing the multilib and multilib-devel group should have been enough.

When I have more time I will try to go back to multilib and install all lib32-... which seem to be missing from the initramfs.

Offline

#12 2013-03-07 01:01:44

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] Init not found for new kernels

Zuiop wrote:

Relevant information I can think of:
/ is ext4, LVM. The lvm -3 update has not been done yet.
mkinitcpio 0.13.0-1

You do know that partial upgrades are not supported? Is that what you meant, though? I'm a bit unclear.

lsinitcpio | grep lib32 returns nothing here so I'm not sure why you would need it in the initramfs.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#13 2013-03-07 06:39:48

Zuiop
Member
Registered: 2013-03-06
Posts: 7

Re: [Solved] Init not found for new kernels

About the partial updates:I know that. At that time, I didn't consider 64bit -> multilib a (whole system) upgrade, but I probably should have.

"lsinitcpio | grep lib32" returns nothing here either. What I was saying was that all working kernels include libdevmapper.so.x.y, whereas the non-working ones didn't. And simply switching back to non-multilib gcc/gcc-lib (nothing else was changed, apart from rebuilding the initramfs) fixed it. So I was wondering how the multilib switch did that.

Offline

#14 2013-03-07 22:48:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] Init not found for new kernels

I've got the multilib versions installed.

I don't really know what you mean by 64bit -> multilib. And isn't the point that *not* upgrading the "whole system" is a problem?

I meant that you said that you had not upgraded lvm and that suggested that you are doing partial upgrades. That's not supported at all. It doesn't matter whether it is a "whole system" upgrade or not.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB