2024-05-31 16:07:48 +02:00
|
|
|
# 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
|
2025-02-04 18:02:02 +01:00
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
#!/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
|
2026-08-11 15:21:21 +03:00
|
|
|
add_dracutmodules+=" tpm2-tss "
|
2025-02-04 18:02:02 +01:00
|
|
|
EOF
|
2026-10-29 12:52:39 +01:00
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
|
|
|
|
|
cat > /usr/lib/dracut/dracut.conf.d/20-atomic-bootc-ostree.conf << 'EOF'
|
|
|
|
|
# So the system is actually bootable when derived container builds regenerate the initramfs
|
|
|
|
|
add_dracutmodules+=" ostree bootc "
|
|
|
|
|
EOF
|