debian-bootc-base-images/tier-0/initramfs.yaml
German Maglione 9cd73eb159 Fix cat redirection
Just a small fix, adding a missing redirection so that
'01-bootc-nohostonly.conf' is not created empty.
Since dracut's default is 'hostonly=no' this fix has
no impact on the initramfs contents.

Signed-off-by: German Maglione <gmaglione@redhat.com>
2023-11-29 14:18:13 +01:00

16 lines
621 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/01-bootc-nohostonly.conf << 'EOF'
# We want a generic image; hostonly makes no sense as part of a server side build
hostonly=no
EOF
cat > /usr/lib/dracut/dracut.conf.d/49-tpm2-tss.conf << 'EOF'
# We want this for systemd-cryptsetup tpm2 locking
dracutmodules+=" tpm2-tss "
EOF
cat > /usr/lib/dracut/dracut.conf.d/01-centos-bootc-base.conf << 'EOF'
dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base "
EOF