1

I followed these instructions to install the lts kernel, but the last command grub-mkconfig -o /boot/grub/grub.cfg did not go through and now I cannot boot into Arch. I have a usb stick with Arch on it and I think I need to change the config in /boot/loader/entries/arch.conf but I don't know how. Also I have installed Arch in a LVM.

Can someone help?

ajgringo619
  • 3,113
  • 1
  • 11
  • 37
Barsch
  • 21
  • 2
  • Are you using [GRUB](https://wiki.archlinux.org/title/GRUB) or [systemd-boot](https://wiki.archlinux.org/title/systemd-boot)? – stefan0xC Jan 31 '22 at 13:36
  • it uses uefi, so I think it is systemd-boot. How can I verify this? I followed this guide https://wiki.archlinux.de/title/Installation_mit_UEFI_und_Verschl%C3%BCsselung#UEFI-Bootloader_installieren_und_konfigurieren it says systemd for uefi – Barsch Jan 31 '22 at 13:39
  • GRUB can be used with [UEFI](https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface) too but if you just followed the guide you are probably using `systemd-boot`. (How to verify this would be a topic on its own. If you did not install `grub` and the command `grub-mkconfig` did not go through because the command was missing you most definitely are not using GRUB as boot loader.) – stefan0xC Jan 31 '22 at 16:36

1 Answers1

0

Note, for syslinux you'll need to edit the syslinux config file in /boot/syslinux/syslinux.cfg accordingly, just point everything to the -lts kernel.

It seems you are using systemd-boot as bootloader. syslinux would be another alternative but you could have inferred (from the other answers to that question) that this also applies to your situation if you are not using GRUB.

To fix your boot issue you should make the appropriate modifications in the entry /boot/loader/entries/arch.conf (i.e. append -lts to linux /vmlinuz-linux and insert -lts into initrd /initramfs-linux.img).

To access the file you can simply mount the EFI system partition from any live environment (i.e. the Arch Linux installation CD/USB).

stefan0xC
  • 1,508
  • 10
  • 20
  • I tried to mount /mnt earlier today, but it didn't work. I've setup the system last week and as I need it tomorrow, so I went with a fresh install. but this looks like what I was looking for. Thanks nevertheless for your effort – Barsch Jan 31 '22 at 18:45
  • I think the error was that there was no /mnt and I think this was due to the lvm, but I'm not sure. I should have to login before mounting, amirite? – Barsch Jan 31 '22 at 18:46