initramfs: Move our dracut config later

Our hostonly setting was conflicting with the default
`hostonly=yes` in `01-dist.conf`.
This commit is contained in:
Colin Walters 2023-12-12 11:31:05 -05:00
parent ca31675a74
commit 48c85849e6
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ postprocess:
- | - |
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p /usr/lib/dracut/dracut.conf.d mkdir -p /usr/lib/dracut/dracut.conf.d
cat > /usr/lib/dracut/dracut.conf.d/01-bootc-nohostonly.conf << 'EOF' cat > /usr/lib/dracut/dracut.conf.d/20-bootc-nohostonly.conf << 'EOF'
# We want a generic image; hostonly makes no sense as part of a server side build # We want a generic image; hostonly makes no sense as part of a server side build
hostonly=no hostonly=no
EOF EOF
@ -11,6 +11,6 @@ postprocess:
# We want this for systemd-cryptsetup tpm2 locking # We want this for systemd-cryptsetup tpm2 locking
dracutmodules+=" tpm2-tss " dracutmodules+=" tpm2-tss "
EOF EOF
cat > /usr/lib/dracut/dracut.conf.d/01-centos-bootc-base.conf << 'EOF' cat > /usr/lib/dracut/dracut.conf.d/20-centos-bootc-base.conf << 'EOF'
dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base " dracutmodules+=" kernel-modules dracut-systemd systemd-initrd base "
EOF EOF