You are not logged in.

#1 2015-08-05 07:15:54

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Failed systemd-boot upgrade... how to rescue?

https://youtu.be/95oEUAyO0XU

On my NUC, I recently updated from Systemd 223 to 224 with a kernel upgrade too.. from 4.1.3-1-ARCH to 4.1.4-1-ARCH IIRC. However something has gone wrong and I am wondering if I can recover it from systemd-boot? Any tips to pick out the fallback kernel maybe?

Otherwise I guess I will be trying to fix from this from installation media.

Last edited by hendry (2015-08-05 07:16:20)

Offline

#2 2015-08-05 07:28:28

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

Re: Failed systemd-boot upgrade... how to rescue?

Chroot in and make sure /boot is mounted when you upgrade your kernel (which it was not).


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-08-05 07:43:06

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Failed systemd-boot upgrade... how to rescue?

That's probably the cause. Thought I wonder why I can't boot successfully the old kernel and initramfs in that case?

When you say "Chroot in"... from the installation media, right? I can't somehow rescue the situation with some cmdline editing, can I?

Offline

#4 2015-08-05 08:05:24

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

Re: Failed systemd-boot upgrade... how to rescue?

It is simplest just to chroot from a live media and reinstall linux and the regenerate the initramfs.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-08-06 02:09:29

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Failed systemd-boot upgrade... how to rescue?

Ok, I ended up copying /boot to /dev/sda1 and then fixing up fstab. Some notes:

- Console font on the live media is WAY too small and I couldn't install terminus via pacman
- dosfslabel didn't work
- options suggested by https://wiki.archlinux.org/index.php/Fstab for EFI /boot rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro is kinda extreme.

https://youtu.be/Vz0QEcWliuo?t=534

Still find it a bit worrying that my old kernel failed to boot. Also wondering how I should put my root partition in my /etc/fstab.

Offline

Board footer

Powered by FluxBB