Questions tagged [dracut]

55 questions
5
votes
1 answer

What is the relationship between dracut and initramfs?

When experiencing a boot failure I see the system drop to a prompt which says dracut. It is my understanding dracut is used to generate an image of initramfs. What I'm confused about is that based on the fact that I'm dropping to a shell titled…
Grant Curell
  • 507
  • 4
  • 17
5
votes
4 answers

boot problem in linux

I have unfortunately format drive /dev/sda2. So all the /root,/home,swap LVM no longer exists. Because of this my server is unable to work properly. it shows only dracut#>Dracut Error: [ OK ] Reached target Paths. [ OK ] Reached target Basic…
DILSHATH
  • 111
  • 1
  • 1
  • 8
4
votes
1 answer

RAIDs disappearing on reboot (Centos 7.5)

I'm trying to create 4 RAID 0 disk arrays on my system running Centos 7.5 and have the RAIDs automount after a reboot. For some reason, only one of the RAIDs /dev/md0 is persistent between boots. The remaining three RAIDs (md1,md2,md3) all disappear…
ks0ze
  • 141
  • 3
3
votes
1 answer

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands. Where would I need to put such a script and what format does it…
Cobra_Fast
  • 392
  • 1
  • 5
  • 15
3
votes
1 answer

Failed to boot after installing dracut on Ubuntu 22.04 with zfs file system

I installed (sudo apt install dracut, did not change any configuration files) dracut on my Ubuntu 22.04 and rebooted. Now I get the message dracut: FATAL: Don't know hot to handle 'root=ZFS=rpool/ROOT/ubuntu_m6r2ku' dracut: Refuses to…
3
votes
0 answers

CentOS-8 - Unsealing LUKS volume with TPM2 module - clevis issue

Im trying to get a LUKS volume unlocked by the TPM-module on a Dell Optiplex 3060. The binding seems to work fine: clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"7"}' $ luksmeta show -d /dev/nvme0n1p3 0 active empty 1 active…
n-tchen
  • 400
  • 3
  • 12
3
votes
0 answers

FIPS integrity test failed on RHEL 7.5 with 4.X kernel

I have a Dell PowerEdge R7425 with Intel NVME P4500/P4510 NVME drives. On the 3.10 kernel, the NVME drives throw I/O errors very frequently, and these errors have led to a system halt once already. I decided to test a newer kernel from the elrepo,…
kurisushouri
  • 31
  • 1
  • 2
3
votes
3 answers

How do I change dracut-initqueue timeout?

During boot, my CentOS 7 box yields a bunch of messages like [ 202.161851] myhost dracut-initqueue[381]: Warning: dracut-initqueue timeout - starting timeout scripts and then drops me to a prompt. I wait a few minutes for my storage to finish…
Pascal
  • 313
  • 3
  • 4
  • 8
3
votes
1 answer

Making update-persistent changes to initrd in CentOS

I am booting a CentOS image via NFS, which requires a custom initramfs from dracut, with some extra modules. I want the kernel to get updated normally, using yum update. This will automatically generate a new initramfs each time the kernel is…
Dan
  • 133
  • 3
3
votes
0 answers

LUKS decryption at boot: using an nfs mount to store the key

I've been through this site for a number of LUKS related questions. I've seen methods for storing the LUKS key in plaintext on the root filesystem or on a USB key. My question is: Is there a way with dracut to mount a non-root nfs share and read a…
MeatLips
  • 33
  • 3
2
votes
1 answer

dracut -f shows "Failed to find module" and nvme error message

Running dracut -f to add some custom drivers to the initramfs shows an error message from the nvme command. In addition, it fails to copy those custom drivers into the initramfs saying dracut-install: Failed to find…
Danny
  • 521
  • 8
  • 16
2
votes
2 answers

How do I get a script included in initramfs with dracut?

I am using dracut to create an initramfs to test a script for creating a key in the TPM chip. For now, this script is just a dummy script, so I can see if I've created the initramfs correctly: #!/usr/bin/env bash # read -p 'This file will run to…
Jeff
  • 21
  • 2
2
votes
1 answer

How to add cryptsetup to Dracut

I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this: menuentry 'dracut' { load_video insmod gzio if […
ceremcem
  • 2,231
  • 1
  • 23
  • 53
1
vote
0 answers

Dracut: What does the rd.lvm.snapshot command line option do?

In the dracut.cmdline manpage, under the deprecated section, it has these old options and their replacements. rd_LVM_SNAPSHOT rd.lvm.snapshot rd_LVM_SNAPSIZE rd.lvm.snapsize But no actual mention of what exactly these do. I haven't been…
gdi
  • 143
  • 1
  • 6
1
vote
1 answer

Stop Dracut from asking for a password

I have a device I've encrypted with luks1 and I decrypt it with a script in init.d. (Centos 6, no keyscript in crypttab). Its a raid disk, with the encryption under the raid, but I don't think that matters. The lsblk looks like: sda …
yesennes
  • 173
  • 5
1
2 3 4