public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* built-in configuration file prevents booting with command line options
@ 2024-07-08 11:40 Olaf Hering
  0 siblings, 0 replies; only message in thread
From: Olaf Hering @ 2024-07-08 11:40 UTC (permalink / raw)
  To: initramfs

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

dracut in Leap 15.5 puts /etc/cmdline.d/90crypt.conf into initrd.
This file contains "rd.luks.uuid=luks-${old_uuid}".

If the disk dies, and the backup is populated on the replacement disk,
the UUID of the LUKS container does obviously change.

I was able to boot the existing old initrd with "rd.luks.crypttab=0
rd.luks.key=/some_path rd.luks.uuid=${new_uuid}", but this was not enough.

Booting with "rd.debug" revealed that "${old_uuid}" was still expected
to be present. A search in the extracted initrd revealed that
"rd.hostonly=0" removes "/etc/cmdline.d/*.conf". But using that option
disables also all knobs specified on the kernel command line.

Is booting an "arbitrary" existing initrd with "rd.hostonly=0",
and specifying every required detail of the root filesystem on
the kernel command line, supposed to work?
Did I maybe miss yet another required knob?

This is the full list of used kernel cmdline options:

log_buf_len=16M
mitigations=off
net.ifnames=0
nosgx
panic=9
plymouth.enable=0
rd.fstab=0
rd.luks.allow-discards
rd.luks.crypttab=0
rd.luks.key=/.root.key
rd.luks.uuid=${new_uuid}
rd.lvm.conf=0
rd.lvm.lv=${vg}/${lv}
rd.lvm.vg=${vg}
rd.timeout=11
resume=/dev/disk/by-label/${label_swap}
root=/dev/disk/by-label/${label_btrfs}
rootflags=subvol=/${subvolume},noatime


Thanks,
Olaf

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-08 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08 11:40 built-in configuration file prevents booting with command line options Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox