debian-bootc-base-images/oscore/initramfs.yaml
Colin Walters 216624e194 Stop using deprecated initramfs-args
For now we need to write files via postprocess.
2023-09-08 15:26:57 -04:00

14 lines
No EOL
458 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
# 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