You are not logged in.

#1 2026-08-05 15:29:19

ds000001
Member
Registered: 2022-10-06
Posts: 9

Dead system, dracut and no installation media

Hi,

I did a mistake on a secondary system, which ended in powerloss while updating it.
The system had nearly finished the update and was rebuilding installing new vmlinuz and initramfs.

My first thought was to just rebuild the files:
1. Start system from gparted ISO (already prepared USB drive for other tasks)
2. Click through the options to get to the DE
3. Start the terminal, mount root/boot/sys/dev/proc partition and chroot into it
4. Copy cp /usr/lib/modules/7.1.2-arch1-1/vmlinuz /boot/vmlinuz-linux
5. Run "dracut --kver 7.1.2-arch1-1" and see a lot of messages "dracut-install Failed to find module"

A bit baffled and checked e.g. with "ls -l /usr/lib/modules/7.1.2-arch1-1/kernel/fs/xfs/xfs.ko.zst", the modules are there.
Tried various iterations of dracut, e.g. "dracut --kmoddir /usr/lib/modules/7.1.2-arch1-1/", but same error messages.

What am I doing wrong?
I know, I could now download the media and do the tricks with "archroot", but if everything is there dracut should be able to just do the job.

Offline

#2 2026-08-12 11:56:05

Qazdrfvhujmlp
Member
From: Fujian(no accent,trust me!),CN
Registered: 2026-08-11
Posts: 3
Website

Re: Dead system, dracut and no installation media

You may want to check if you've missed mounting /run and /dev/pts. Dracut depends on kmod and udev look‑ups, and those can fail even when your kernel‑module files exist.
Try binding these virtual fs before you chroot:
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /run /mnt/run
Once inside chroot, you could also run depmod‑a to rebuild the module index before attempting dracut.

Offline

Board footer

Powered by FluxBB