You are not logged in.

#1 2025-09-16 07:32:32

x254lb
Member
Registered: 2024-11-15
Posts: 10

[REMOVED] Initramfs generation with dracut fails.

Hello, Im trying to install Arch Linux with initramfs generated by dracut, and systemd-boot as the bootloader.

I have successfully reached the point in the installation where one chroot's into the new installation, generates locales, set hostname, hosts, add users, set passwords.

I have mounted /dev/vda1 with a FAT32 fs at /efi, and /dev/vda2 with an ext4 fs at /.

[root@archiso /]# lsblk
NAME       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0        7:0    0 959.8M  1 loop 
sda          8:0    1  14.3G  0 disk 
├─sda1       8:1    1  14.3G  0 part 
│ ├─ventoy 253:0    0   1.3G  0 dm   
│ └─sda1   253:1    0  14.3G  0 dm   
└─sda2       8:2    1    32M  0 part 
vda        254:0    0    40G  0 disk 
├─vda1     254:1    0   512M  0 part /efi
└─vda2     254:2    0  39.5G  0 par

I was following the archwiki on using dracut.

dracut
In some cases, especially when installing a system for the first time, the above command will not work. Use the following:

# dracut -f --regenerate-all

These are my mount options:

[root@archiso /]# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/vda2
UUID=865a18e6-fc34-439b-a157-c0b19d3b9121	/         	ext4      	rw,relatime	0 1

# /dev/vda1
UUID=9D79-6C11      	/efi      	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

Now, when i run the following:

# dracut -f --regenerate-all

I get

[root@archiso /]# dracut -f --regenerate-all
dracut[I]: Detected container-other container.
dracut[I]: Executing: /usr/bin/dracut --kver=6.16.7-arch1-1 -f
dracut[F]: Can't write to /efi/739aa615efe341d1892193b4986efddd/6.16.7-arch1-1: Directory /efi/739aa615efe341d1892193b4986efddd/6.16.7-arch1-1 does not exist or is not accessible.

What did I do wrong?
Can someone help me?

Last edited by x254lb (2025-09-16 18:39:23)

Offline

#2 2025-09-16 14:07:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [REMOVED] Initramfs generation with dracut fails.

The error message says that it failed because the directory doesn't exist so try again with the --add-confdir option added in.


Jin, Jîyan, Azadî

Offline

#3 2025-09-16 17:25:32

x254lb
Member
Registered: 2024-11-15
Posts: 10

Re: [REMOVED] Initramfs generation with dracut fails.

Help no longer needed.
I was trying to use dracut to fix another issue i had with mkinitcpio.
But that has been fixed.
So no need to use dracut anymore.

Offline

Board footer

Powered by FluxBB