Foreman-xen, Windows VM infinite loop

Hi,

Using foreman-xen to create Windows VM require a manual step in order to
modify the boot order to avoid the VM to indefinitely boot on PXE.


which define the boot order as:
DVD, Network, Disk
The issue is when a build request is generated the VM is created, then the
PXElinux file is generated, the VM boot into WinPE which then request the
proper script and provisioning template.
Then when the image/files are deployed for Windows the VM reboot onto
Windows. However since the PXElinux config is not updated until the
/unattended/built is requested the VM keep rebooting into WinPE.
Not sure what would be the best choice but either:
Foreman can update the PXElinux config boot file earlier in the process,
maybe after /unattented/script is requested?
Foreman-xen set the boot order to "dcn" (DVD, Disk, Network)
Foreman-xen allow to edit the boot order

Let me know if I can help in anyway, thanks in advance