Completely broken system after updating mkinitcpio 39.1

Manjaro Unstable branch i installed kernel69 and removed kernel68 . After updating mkinitcpio Manjaro Linux was missing from grub. I used manjaro-chroot and installed linux66 but it caused booting into bios instead of GRUB which was completely erased . After restoring from timeshift snapshot it made Manjaro boot again normally. But 2 Manjaro Linux are appearing on GRUB now and Advance Options in GRUB does not show currently used linux information. Why Manjaro Unstable uses linux68 till end of life (what i see in the past in linux6 series) instead of switching quickly to latest stable linux69. Here is update-grub output in which
Found Manjaro Linux on /dev/sda6 is the problem

sudo update-grub                      in bash at 12:58:00
[sudo] password for aemond: 
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/RuanMei/theme.txt
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/intel-ucode.img /boot/initramfs-.img
Found initrd fallback image: /boot/initramfs--fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda3@/efi/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux on /dev/sda6
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2024-05-14 12:12:26 | timeshift-btrfs/snapshots/2024-05-14_12-12-26/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-05-13 15:00:02 | timeshift-btrfs/snapshots/2024-05-13_14-59-51/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found 2 snapshot(s)
Unmount /tmp/grub-btrfs.eacfBjU4gu .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi


Picture showing GRUB not listing kernel correctly like no version shown no other kernels shown cause i have 3 kernels installed.

1 Like

Latest mkinitcpio from unstable branch creates boot and fallback images of only 1 last time downloaded kernel which is abnormal . It used to create images of all installed kernels when updating or installing another kernel .

which exact version of mkinitcpio did you update? 39.1-2 should fix that. Also make sure to delete any pacsave files created in /etc/mkinitcpio.d/.

mkinitcpio “39.1”

With no pkgrel ?

On Unstable (and Testing) it should be 39.1-2

https://packages.manjaro.org/?query=mkinitcpio

While previously any install of linux69 would result in this as shown here:

But with 39.1-2 I can verify it working properly.

mkinitcpio 39.1-2 working fine after updating but 1 duplicate entry on grub menu appearing [quote=“dragon1, post:1, topic:161508”]
Found Manjaro Linux on /dev/sda6
[/quote]

how to remove it?

Did you mean to provide more output?


This is duplicate menu on grub which has memory tester only if looked at advanced options. I am trying to remove that duplicate entry.

this is original menu on grub from where I boot into Manjaro

did you also removed those? @dragon1

1 Like

Its working fine now after I
Deleted all linux presets from /etc/mkinitcpio.d/
Deleted all files from /boot except folders
Reinstalled linux kernel and intel-ucode
But 1 Question remained why mkinitcpio 39.1-2 not creating .initramfs for all installed kernels ? It generates initramfs only for the kernel which is being installed or updated.

Thats probably a hook firing as it should.

To run mkinitcpio on all kernels

sudo mkinitcpio -P
1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.