omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

3.1.5 update this morning bricked my machine

Open zigmoo opened this issue 1 year ago • 29 comments

System details

2025 HP Zbook 16 G11 4TB 64Gb first install Oct-7

What's wrong?

Hello Omarchy Devs, yall are magnificent. Seriously!

That said, I wanted to report an issue I experienced during the omarchy update this morning:

After the Omarchy update, initiated from the super-->system menu, I restarted a required due to the kernel update.

Machine rebooted into the emergency mode. Disk was decrypted and mounted, but: uname -r --> 6.17.5-arch1-1 ls /lib/modules --> 6.17.7-arch1-1

It's like the lib/modules were simply erased and not replaced. (I would have expected the new files to be written to a alternate dir first, and then swapped in like a shard-swap operation).

Anyway, just wanted to let yall know.

I'm loving Omarchy, btw. Thank you SO much for all the hard work and creativity!

zigmoo avatar Nov 04 '25 21:11 zigmoo

I found the issue. When in chroot, booted off the Omarchy 3.1.5 iso/usb in chroot mode while trying to update the linux on my decrypted+mounted NVME that was damaged during the install... ... I gave the command pacman -S linux --overwrite '*' which then errored out, saying that :

Error: detected Java version 1.8.0_472 is below the required minimum 17 ==> ERROR: failed to get kernel cmdline for 'linux'

So, it looks like the Omarchy update logic needs to be updated to validate that the user has the required version of JVM activated (I have four versions... 8, 11, 17 and 25. But my "default-runtime" symbolic link had been pointing to 1.8, for development reasons. After unlinking that, and creating the symlink to jvm 17, the pacman -S linux --overwrite '*' executed without a hitch.

zigmoo avatar Nov 04 '25 22:11 zigmoo

You should be able to restore a snapshot and rerun an update. However I would be really interested in seeing if I can recreate this.

Here's my hypothesis and string of thought.

I've seen this issue with various updates and I believe what actually happens is that something about the kernel update + mkinicpio process fails. This leaves you with an either incorrect ramfs or corrupted ramfs; in either case, unbootable.

However the update notices that there was a kernel update and prompts for reboot without highlighting that something went wrong and should be fixed before rebooting or you're kind of hosed.

Users see this and obviously accept as you'd expect and arrive with this issue.

In almost all of these cases either restoring a snapshot and re-running update or making some minor change and running pacman -Syu successfully solves the issue; further reinforcing my stance that this stems from a failed initramfs compilation during update.

ryanrhughes avatar Nov 05 '25 02:11 ryanrhughes

Here's what I did to repair my machine:

  1. Booted up off of an omarchy 3.1.5 thumb drive, hit control-c a couple times to break out of the installer to a cli
  2. looked up my ssd device identifier with lsblk, then decrypted the machine's drive: cryptsetup luksOpen /dev/nvme0n1pX cryptroot
  3. mounted the top-level btrfs and its dirs and finished the kernel install and its modules manually. It was during that process that witnessed the java-related error break out of the kernel installation. It would not succeed as long as I had less than a v17 jvm designated as the default java binary. As soon as I set the jvm default to v17, the manual kernel installation was able to proceed without further complaint, and then I was able to follow that up with the Limine install: pacman -S limine --overwrite '*'. And after that I rebooted into the repaired internal ssd (not a snapshot) and performed a pacman -Syy update.

To reproduce this bug, all you have to do is: a) unlink /usr/lib/jvm/default-runtime b) ln -s /usr/lib/jvm/java-17-openjdk /usr/lib/jvm/default-runtime c) perform an omarchy update that includes a kernel update

to change ~ ❯ ls -lah /usr/lib/jvm/ Permissions Size User Date Modified Name lrwxrwxrwx - root 4 Nov 16:31  default-runtime -> ./java-8-openjdk (or v11) drwxr-xr-x - root 31 Oct 13:32  java-8-openjdk drwxr-xr-x - root 31 Oct 13:48  java-11-openjdk drwxr-xr-x - root 31 Oct 13:49  java-17-openjdk drwxr-xr-x - root 22 Oct 12:37  java-25-openjdk into: ~ ❯ ls -lah /usr/lib/jvm/ Permissions Size User Date Modified Name lrwxrwxrwx - root 4 Nov 16:31  default-runtime -> ./java-17-openjdk drwxr-xr-x - root 31 Oct 13:32  java-8-openjdk drwxr-xr-x - root 31 Oct 13:48  java-11-openjdk drwxr-xr-x - root 31 Oct 13:49  java-17-openjdk drwxr-xr-x - root 22 Oct 12:37  java-25-openjdk Making that single tweak enabled my omarchy update to proceed without further trouble. Maybe some logic like :

if [[ $( java -version 2>&1 | grep -E "1\.8|11" | wc -l ) -gt 0 ]]; then echo "Stop the update!"; echo "Set your default JVM to at least version 17."; fi

This is going to be a pretty rarely-encountered bug in the update logic, since very few folks (at least, I think this is the case) are as foolish as me and setting their Java 1.8 as the default. (I have some super-ancient legacy code to support as you can imagine)

And once again, @ryanrhughes, thank you so, SO much for all your excellent work on Omarchy!

zigmoo avatar Nov 05 '25 03:11 zigmoo

I had a similar issue right after a clean installation plus a posterior update. Steps:

  • Install by iso 3.1.5
  • Reboot, unlock disk, and configure WiFi
  • Click in the toast to update
  • Follow the default options
  • Reboot

linux: Loading kernel boot():/vmlinuz-linux... PANIC: linux: Failed to open kernel with path boot():/vmlinuz-linux. Is the path correct?

Hardware: X1 Carbon Gen 10 16Gb RAM, 512Gb disk

EDIT: I tried again and same results. I also noticed that before the update, the boot menu was "Omarchy", and after that it was "Arch Linux", probably something got messed up

kashopi avatar Nov 07 '25 14:11 kashopi

just had the same issue after an update this morning.

Dell Latitude E7470

Same panic as reported above. I don't feel particularly comfortable trying the recovery procedure noted by @zigmoo (due to lack of familiarity). Shot in the dark, but is there an easier way to get back to a previous fs snapshot?

ljrobins avatar Nov 07 '25 15:11 ljrobins

This is an issue that is suffering many people, including me. Should we open another issue?

linux: Loading kernel boot():/vmlinuz-linux...
PANIC: linux: Failed to open kernel with path boot():/vmlinuz-linux. Is the path correct?

jubiloso avatar Nov 07 '25 15:11 jubiloso

Think I partially figured out what broke the update: Fresh install on a 3.1.5 iso, on a Thinkpad T480s. Updated with pacman -Syyu on first boot and same panic message as above^

linux: Loading kernel boot():/vmlinuz-linux...
PANIC: linux: Failed to open kernel with path boot():/vmlinuz-linux. Is the path correct?

When I switched the boot device from Limine to back to the NVME it worked - so I assume something broke the Limine conf

gladstomych-jmp avatar Nov 07 '25 16:11 gladstomych-jmp

@gladstomych-jumpsec can you provide some info on how you made that switch? in my BIOS I don't see any mention of Limine to switch away from in the first place.

ljrobins avatar Nov 07 '25 16:11 ljrobins

I did it the Thinkpad way: [Enter] on Splash, F12 for temporary boot device. Boot menu on mine showed

Limine
(some other historical entries)
NVMe0: CTxxxxx
PCI Lan

Choosing Limine would get into the menu with the Panic (says Limine 10.3.0 (x86-64, UEFI) at the top) , whereas NVMe0 would allow me to access the Omarchy Bootlooder

gladstomych-jmp avatar Nov 07 '25 16:11 gladstomych-jmp

When I switched the boot device from Limine to back to the NVME it worked - so I assume something broke the Limine conf

Just had the same issue but trying this gave me

:: running hook [encrypt]
ERROR: device ' ' not found. Skipping fsck.
:: mounting ' ' on real root
mount: /new_root: wrong fs type, bad option, bad superblock on , missing codepage or helper program, or other error
ERROR: Failed to mount ' ' on real root
You are now being dropped into an emergency shell.

I think during the update I spotted a mkinitcpio.conf update being installed as a .pacnew, causing the hooks to break, but unless anyone else can reproduce then that's probably a different issue

SirenGlitch avatar Nov 07 '25 16:11 SirenGlitch

/boot/limine.conf is completely changed!

Image

I guess there are no secrets in limine.conf, but just in case I have redacted the ids.

jubiloso avatar Nov 07 '25 16:11 jubiloso

[Enter] on Splash, F12 for temporary boot device. Boot menu on mine showed

Limine
(some other historical entries)
NVMe0: CTxxxxx
PCI Lan

Sadly no such options on my Dell Latitude, just M.2 PCIe SSD (which leads to the panic) and a UEFI option that also leads to the panic. Thank you for the steps though!

ljrobins avatar Nov 07 '25 16:11 ljrobins

User @whargrove gave a workaround on #3231.

I was able to workaround this by booting from Omarchy directly, instead of booting Limine first. I had changed the boot order so that Limine was first, but since it is now borked I can still boot directly to Omarchy. Confirms it is likely an issue with the limine conf.

bashln avatar Nov 07 '25 16:11 bashln

Limine seems to be reading the config from /boot/EFI/limine/limine.conf

timeout: 5

/Arch Linux (linux)
    protocol: linux
    path: boot():/vmlinuz-linux
    cmdline: cryptdevice=PARTUUID=<redactedJustInCase>:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs
    module_path: boot():/initramfs-linux.img

/Arch Linux (linux-fallback)
    protocol: linux
    path: boot():/vmlinuz-linux
    cmdline: cryptdevice=PARTUUID=<redactedJustInCase>:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs
    module_path: boot():/initramfs-linux-fallback.img

Rather than /boot/limine.conf

...
/+Omarchy
comment: Omarchy
comment: machine-id=<redactedJustInCase> order-priority=50 
  //linux
  comment: 6.17.7-arch1-1
  protocol: efi_chainload
  image_path: boot():/EFI/Linux/omarchy_linux.efi#a7d08adcb269...cf63760bbdf
  kernel_cmdline: quiet splash cryptdevice=PARTUUID=<redactedJustInCase>:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs

     //Snapshots
...

SirenGlitch avatar Nov 07 '25 17:11 SirenGlitch

Workaround I just tested. Modify /boot/EFI/limine/limine.conf like this:

timeout: 5

/Arch Linux (linux)
    protocol: efi_chainload
    path: boot():/EFI/Linux/omarchy_linux.efi

... other entries

Or just copy the configuration to the correct place:

sudo cp /boot/limine.conf /boot/EFI/limine/limine.conf

jubiloso avatar Nov 07 '25 17:11 jubiloso

Is there a way to warn people not to update for now?

jubiloso avatar Nov 07 '25 17:11 jubiloso

https://github.com/limine-bootloader/limine/commit/e06cc37f685332e8c149b9e6fbccc6d7f61ed5e2 Limine commit from 4 days ago changes the config file search order, now checks next to the Limine binary (/boot/EFI/limine/limine_x64.efi) before /boot/limine.conf

SirenGlitch avatar Nov 07 '25 17:11 SirenGlitch

Or just copy the configuration to the correct place:

sudo cp /boot/limine.conf /boot/EFI/limine/limine.conf

Counter-workaround I've just tested, renaming (or I presume deleting) /boot/EFI/limine/limine.conf causes the correct config to be loaded as there isn't one next to the binary anymore

SirenGlitch avatar Nov 07 '25 17:11 SirenGlitch

@SirenGlitch a question with a likely obvious answer: how are you accessing a shell to run the cp without the kernel running? Same question goes for making changes to the .confs. Thanks!

ljrobins avatar Nov 07 '25 17:11 ljrobins

@ljrobins I used @jubiloso's workaround but applied it from the bootloader, saw it mentioned in this Reddit comment. So in short answer: I'm not 😄

SirenGlitch avatar Nov 07 '25 17:11 SirenGlitch