Boot fais after provisioning

Hello,
this is my first try with Foreman, so I probably did something stupid and now Im stuck.
I need to automatically install cluster nodes with Debian, so I created a VM to test this.
The discovery works fine, I see the node under discovered hosts.

Problem:
I start provisioning the discovered node. This reboots the node, but then it only shows:

Default PXE global template entry is set to discovery
Trying /httpboot/grub2/grub.cfg-[mac]
[…]

It loops over this endlessly printing these lines several times a second.

Expected outcome:
Boot the node

Foreman and Proxy versions:
3.3.0
Foreman and Proxy plugin versions:
|foreman_bootdisk|19.0.3|
|foreman_dhcp_browser|0.0.8|
|foreman_discovery||21.0.0|
|foreman_puppet| 4.0.1|

Distribution and version:
Debian 11
Other relevant data:
The GRUB_HDD.CFG from the boot disk:

search --file /ISOLINUX.BIN --set root
#default=discovery
timeout=20
#echo Default PXE global template entry is set to ‘discovery’

configfile “/grub2/grub.cfg”
echo “Trying /httpboot/grub2/grub.cfg-$net_default_mac”
configfile “/httpboot/grub2/grub.cfg-$net_default_mac”

echo “Trying /grub2/grub.cfg-$net_default_mac”
configfile “/grub2/grub.cfg-$net_default_mac”

The following four statements breaks grub2 and it’s no

longer able to load any file from the base URL.

Comment them out to be able to use (UEFI/iPXE) HTTP Boot:

1763216 – Relative paths breaks HTTP loading

echo “Trying grub2/grub.cfg-$net_default_mac”
configfile “grub2/grub.cfg-$net_default_mac”

echo “Trying grub.cfg-$net_default_mac”
configfile “grub.cfg-$net_default_mac”

insmod part_gpt
insmod fat
insmod chain

menuentry ‘Print warning and poweroff’ --id local_chain_hd0 {
echo “This system was expected to boot from drive but it booted from network. While”
echo “this workflow works in BIOS, it is not suitable for EFI systems where chainbooting”
echo “is not reliable. Change the boot order to boot from drive. Some platforms are known”
echo “to set EFI boot order incorrectly, in that case change EFI configuration or use”
echo “efibootmgr to ensure the correct boot order. There are provisioning template snippets”
echo “available to do this automatically during provisioning (e.g. in kistart or preseed).”
echo
echo “To perform chainboot anyway, use the next boot menu item. To set it as default,”
echo “change the ‘Default PXE local template entry’ to ‘force_local_chain_hd0’.”
echo
echo “The system will poweroff in 2 minutes or press ESC to poweroff immediately.”
sleep -i 120
halt
}

menuentry ‘Chainload Grub2 EFI from ESP’ --id force_local_chain_hd0 {
echo “Chainloading Grub2 EFI from ESP, enabled devices for booting:”
ls
echo "Trying /EFI/fedora/shim.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/fedora/shim.efi
if [ -f ($chroot)/EFI/fedora/shim.efi ]; then
chainloader ($chroot)/EFI/fedora/shim.efi
echo “Found /EFI/fedora/shim.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/fedora/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/fedora/grubx64.efi
if [ -f ($chroot)/EFI/fedora/grubx64.efi ]; then
chainloader ($chroot)/EFI/fedora/grubx64.efi
echo “Found /EFI/fedora/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/redhat/shim.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/redhat/shim.efi
if [ -f ($chroot)/EFI/redhat/shim.efi ]; then
chainloader ($chroot)/EFI/redhat/shim.efi
echo “Found /EFI/redhat/shim.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/redhat/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/redhat/grubx64.efi
if [ -f ($chroot)/EFI/redhat/grubx64.efi ]; then
chainloader ($chroot)/EFI/redhat/grubx64.efi
echo “Found /EFI/redhat/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/centos/shim.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/centos/shim.efi
if [ -f ($chroot)/EFI/centos/shim.efi ]; then
chainloader ($chroot)/EFI/centos/shim.efi
echo “Found /EFI/centos/shim.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/centos/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/centos/grubx64.efi
if [ -f ($chroot)/EFI/centos/grubx64.efi ]; then
chainloader ($chroot)/EFI/centos/grubx64.efi
echo “Found /EFI/centos/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/debian/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/debian/grubx64.efi
if [ -f ($chroot)/EFI/debian/grubx64.efi ]; then
chainloader ($chroot)/EFI/debian/grubx64.efi
echo “Found /EFI/debian/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/ubuntu/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/ubuntu/grubx64.efi
if [ -f ($chroot)/EFI/ubuntu/grubx64.efi ]; then
chainloader ($chroot)/EFI/ubuntu/grubx64.efi
echo “Found /EFI/ubuntu/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/sles/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/sles/grubx64.efi
if [ -f ($chroot)/EFI/sles/grubx64.efi ]; then
chainloader ($chroot)/EFI/sles/grubx64.efi
echo “Found /EFI/sles/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/opensuse/grubx64.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/opensuse/grubx64.efi
if [ -f ($chroot)/EFI/opensuse/grubx64.efi ]; then
chainloader ($chroot)/EFI/opensuse/grubx64.efi
echo “Found /EFI/opensuse/grubx64.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo "Trying /EFI/Microsoft/boot/bootmgfw.efi "
unset chroot
search --file --no-floppy --set=chroot /EFI/Microsoft/boot/bootmgfw.efi
if [ -f ($chroot)/EFI/Microsoft/boot/bootmgfw.efi ]; then
chainloader ($chroot)/EFI/Microsoft/boot/bootmgfw.efi
echo “Found /EFI/Microsoft/boot/bootmgfw.efi at $chroot, attempting to chainboot it…”
sleep 2
boot
fi
echo “Partition with known EFI file not found, you may want to drop to grub shell”
echo “and investigate available files updating ‘pxegrub2_chainload’ template and”
echo “the list of known filepaths for probing. Available devices are:”
echo
ls
echo
echo “If you cannot see the HDD, make sure the drive is marked as bootable in EFI and”
echo “not hidden. Boot order must be the following:”
echo “1) NETWORK”
echo “2) HDD”
echo
echo “The system will poweroff in 2 minutes or press ESC to poweroff immediately.”
sleep -i 120
halt
}

menuentry ‘Chainload into BIOS bootloader on first disk’ --id local_chain_legacy_hd0 {
set root=(hd0,0)
chainloader +1
boot
}

menuentry ‘Chainload into BIOS bootloader on second disk’ --id local_chain_legacy_hd1 {
set root=(hd1,0)
chainloader +1
boot
}

common=“rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nokaslr nomodeset proxy.url=https://foreman.impgrp.de proxy.type=foreman BOOTIF=01-$net_default_mac”

if [ ${grub_platform} == “pc” ]; then
menuentry ‘Foreman Discovery Image’ --id discovery {
linux boot/fdi-image/vmlinuz0 ${common}
initrd boot/fdi-image/initrd0.img
}
else
menuentry ‘Foreman Discovery Image EFI’ --id discovery {
linuxefi boot/fdi-image/vmlinuz0 ${common}
initrdefi boot/fdi-image/initrd0.img
}
fi