You are not logged in.

#1 2015-01-21 14:50:38

ecloud
Member
Registered: 2010-09-15
Posts: 20

systemd stopped working after upgrade

Today I did pacman -Syu and rebooted (didn't pay much attention what all got upgraded, but it wasn't a lot).  Now I'm getting

Failed to execute /init (error -2)
Failed to execute /usr/lib/systemd/systemd (error -2)

So I booted from a USB stick and then chrooted to have a look, and /usr/lib/systemd/systemd is still there.  ldd says it's not a dynamic executable, which is apparently not true.  (Why does it say that?  I've been noticing it lately on other libs and executables.)  objdump -x | grep NEEDED shows it linking to libpcap.so.2 and several others, but there is no libpcap.so.2.  So I tried linking libpcap.so -> libpcap.so.2, rebooted, and got the same error.

Surprised nobody ran into this... so I guess I must be missing something stupid.

Offline

#2 2015-01-21 15:50:22

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: systemd stopped working after upgrade

Did you misread 'libcap'; because my init has no dependency on libpcap. If yours really does I'd run a rootkit scanner

Offline

#3 2015-01-21 16:03:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: systemd stopped working after upgrade

What is in your pacman log?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-01-21 19:52:43

ecloud
Member
Registered: 2010-09-15
Posts: 20

Re: systemd stopped working after upgrade

You're right, it's probably libcap.  So the libs it links with probably have nothing to do with this.

I'll look at the log on Friday.

Offline

#5 2015-01-23 16:13:39

ecloud
Member
Registered: 2010-09-15
Posts: 20

Re: systemd stopped working after upgrade

I think it's the init in the initrd that is the problem, because when I remove the "quiet" option by editing the grub config before booting, I don't see any extra messages flying by: it's still just as quiet.  systemd was not upgraded recently (but I upgraded it again just to be sure it wasn't corrupted in some way, while chrooted).  However the initrd had already been rebuilt on the 19th, probably automatically as a result of installing some package.  And I cannot rebuild it now with the chroot because the USB stick has a different kernel than the one on the disk, so the modules don't match (mkinitcpio complains that it can't find modules for 3.17.6-1-ARCH).  Also tried reinstalling grub and regenerating grub.cfg, which of course didn't make a difference.  Using the fallback initramfs also doesn't help.  So maybe I'll copy an alternative kernel and initramfs and matching modules from a working system.  Or build a kernel that can boot without an initramfs.

Offline

#6 2015-01-23 16:35:48

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

Re: systemd stopped working after upgrade

You should be able to rebuild the initramfs while chrooted into the installation. If you can't, you have deeper issues.

Offline

#7 2015-01-26 08:47:35

ecloud
Member
Registered: 2010-09-15
Posts: 20

Re: systemd stopped working after upgrade

OK I got the initramfs rebuilt.  (mkinitcpio with no args complains, whereas mkinitcpio -p linux works... and yeah, I always did it that way too, just have to look at the wiki each time to remember)  That didn't fix it.

Offline

#8 2015-01-26 10:21:14

ecloud
Member
Registered: 2010-09-15
Posts: 20

Re: systemd stopped working after upgrade

And then I got it to boot with a custom kernel, without initramfs.  Just like the good old days...

Offline

Board footer

Powered by FluxBB