37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Set dracut configuration for the initramfs
|
|
# See: https://gitlab.com/fedora/bootc/base-images/-/blob/main/tier-0/initramfs.yaml
|
|
# See: https://github.com/coreos/fedora-coreos-config/tree/testing-devel/overlay.d/05core/usr/lib/dracut/dracut.conf.d
|
|
postprocess:
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
install -dm 0755 -o 0 -g 0 /usr/lib/dracut/dracut.conf.d
|
|
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
cat > /usr/lib/dracut/dracut.conf.d/20-atomic-nohostonly.conf << 'EOF'
|
|
# Default model is server-side generated initramfs
|
|
hostonly=no
|
|
EOF
|
|
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
cat > /usr/lib/dracut/dracut.conf.d/20-atomic-nostrip.conf << 'EOF'
|
|
# We don't ship `strip` or `eu-strip` today, and even if we did, it doesn't
|
|
# save much space. So let's disable it to avoid the error-looking message.
|
|
do_strip=no
|
|
EOF
|
|
|
|
- |
|
|
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
cat > /usr/lib/dracut/dracut.conf.d/20-atomic-tpm-luks.conf << 'EOF'
|
|
# Add support for systemd-cryptsetup and tpm2-tss LUKS locking
|
|
add_dracutmodules+=" tpm2-tss systemd-pcrphase "
|
|
EOF
|