initramfs: Add virtiofs

Today it's built as a module for Fedora derivatives, but
it's a relatively small kmod.

In particular I want to be able to use a virtiofs root as
a bootstrap mechanism to generate disk images in a situation
where we can't do nested containers, but we do have `/dev/kvm` -
which is the setup we have in e.g. OpenShift Prow on `build02`
with nested virt.
This commit is contained in:
Colin Walters 2024-01-27 10:57:47 -05:00
parent 51f1c28c43
commit 776e92256b
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ postprocess:
hostonly=no hostonly=no
dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base ostree " dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base ostree "
EOF EOF
cat > /usr/lib/dracut/dracut.conf.d/22-bootc-generic.conf << 'EOF'
# Extra modules that we want by default that are known to exist in the kernel
dracutmodules+=" virtiofs "
EOF
cat > /usr/lib/dracut/dracut.conf.d/49-bootc-tpm2-tss.conf << 'EOF' cat > /usr/lib/dracut/dracut.conf.d/49-bootc-tpm2-tss.conf << 'EOF'
# We want this for systemd-cryptsetup tpm2 locking # We want this for systemd-cryptsetup tpm2 locking
dracutmodules+=" tpm2-tss " dracutmodules+=" tpm2-tss "