Skip to content

Issue when not using /etc/initramfs-tools/conf.d/*.conf #14

@st0nedB

Description

@st0nedB

I use dropbear-initramfs to unlock a LUKS LVM on an Ubuntu-Server 22.04. As I also use interface-bonding, I stumbled upon your repo.
Thanks for the amazing work! Just wanted to let you know of a minor issue I came across:

I used it to configure interface bonding and ran into an issue when adding the configuration to /etc/initramfs-tools/initramfs.conf instead of using the conf.d, e.g. via /etc/initramfs-tools/conf.d/some-important-rule.conf.
If the /etc/initramfs-tools/conf.d/ is an empty directory, running sudo update-initramfs -u generates the following output:

update-initramfs: Generating /boot/initrd.img-5.15.0-47-generic
grep: /etc/initramfs-tools/conf.d/*.conf: No such file or directory
grep: /etc/initramfs-tools/conf.d/*.conf: No such file or directory

If one reboots at this point, the initramfs will fail and possibly even fail to boot. I had to unlock by attaching a keyboard and screen to to the machine, then it would continue to boot.

The issue can be easily resolved by adding an empty *.conf file into conf.d, or by adding the config into an extra file (as I should have done in the first place anyways).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions