mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-09-01 14:00:46 +00:00
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.
18 lines
738 B
YAML
18 lines
738 B
YAML
# Configuration for the initramfs
|
|
postprocess:
|
|
- |
|
|
#!/usr/bin/env bash
|
|
mkdir -p /usr/lib/dracut/dracut.conf.d
|
|
cat > /usr/lib/dracut/dracut.conf.d/20-bootc-base.conf << 'EOF'
|
|
# We want a generic image; hostonly makes no sense as part of a server side build
|
|
hostonly=no
|
|
dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base ostree "
|
|
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'
|
|
# We want this for systemd-cryptsetup tpm2 locking
|
|
dracutmodules+=" tpm2-tss "
|
|
EOF
|