Repository: cobbler/cobbler (language: python)

Issue:
initrd=initrd.magic in ipxe.template breaks Windows installation
### Describe the bug

In https://github.com/cobbler/cobbler/commit/ccd567f5287eb8170efe7163085800f86e058e18, the kernel option `initrd=initrd.magic` was added to `ipxe.template`, which breaks the windows installation.
`wimboot` does not recognize it and aborts the installation.

<!--- HINT: You can paste gist.github.com links for long logs or larger files -->

### Steps to reproduce

1. import windows distribution
2. `cobbler profile edit Win10-efi_EN-x64 --autoinstall-meta='kernel=http://@@http_server@@/cobbler/images/@@distro_name@@/wimboot ..`
3. cobbler sync

  default.ipxe:
```
#!ipxe
< skip>
:Win10-efi_EN-x64
kernel http://192.168.122.1/cobbler/images/Win10_EN-x64/wimboot   initrd=initrd.magic
initrd --name boot.sdi http://192.168.122.1/cobbler/images/Win10_EN-x64/boot.sdi boot.sdi
initrd --name bootmgr.exe http://192.168.122.1/cobbler/images/Win10_EN-x64/boot1eb.exe bootmgr.exe
initrd --name bcd http://192.168.122.1/cobbler/images/Win10_EN-x64/1Eb bcd
initrd --name winpe.wim http://192.168.122.1/cobbler/images/Win10_EN-x64/winp1.wim winpe.wim
boot
```
4. starting the Windows installation

### Expected behavior

The installation should complete successfully

### Cobbler version

<!--- Paste output from `cobbler version` -->
````paste below
Cobbler 3.3.3
  source: ?, ?
  build time: Tue Jun 14 00:00:00 2022
````

### Operating system

Any

### Cobbler log

<!--- Paste (partial) output from `/var/log/cobbler/cobbler.log` -->
````paste below
None
````

### Screenshots

<!--- If applicable, add screenshots to help explain your problem. -->
![Снимок экрана от 2023-09-05 10-56-50](https://github.com/cobbler/cobbler/assets/68420914/87409a39-e509-448a-b976-6b55c29231c7)


### Additional information

<!--- Add any other context about the problem here. -->
`initrd=initrd.magic` is only needed on linux and only on kernel versions < 5.7, other OSes may not recognize this parameter.

May be?:
         put `initrd=initrd.magic` to `$kernel_options`

or
```
    #if $breed == "windows"
        kernel $kernel_path $kernel_options
    #else
        kernel $kernel_path $kernel_options initrd=initrd.magic
```



Discussion / hints:

Fix patch:
diff --git a/changelog.d/3561.fixed b/changelog.d/3561.fixed
new file mode 100644
index 0000000000..b58951e88e
--- /dev/null
+++ b/changelog.d/3561.fixed
@@ -0,0 +1,1 @@
+Fix initrd.magic in ipxe.template
diff --git a/docs/user-guide/http-api.rst b/docs/user-guide/http-api.rst
index 250bbbaa0c..08f98ee72e 100644
--- a/docs/user-guide/http-api.rst
+++ b/docs/user-guide/http-api.rst
@@ -139,7 +139,7 @@ Example Output:
 .. code-block:: text
 
     :example_profile
-    kernel /images/example_distro/vmlinuz   initrd=initrd.magic
+    kernel /images/example_distro/vmlinuz
     initrd /images/example_distro/initramfs
     boot
 
diff --git a/templates/boot_loader_conf/ipxe.template b/templates/boot_loader_conf/ipxe.template
index 359c28333a..1bd88f6085 100644
--- a/templates/boot_loader_conf/ipxe.template
+++ b/templates/boot_loader_conf/ipxe.template
@@ -11,7 +11,7 @@
 iseq \${smbios/manufacturer} HP && exit ||
 sanboot --no-describe --drive 0x80
 #else
-kernel $kernel_path $kernel_options initrd=initrd.magic
+kernel $kernel_path $kernel_options
 #for $init in $initrd
 initrd $init
 #end for


Test patch:
diff --git a/system-tests/tests/svc-ipxe-profile b/system-tests/tests/svc-ipxe-profile
index 05559fb521..a680cc1a2e 100755
--- a/system-tests/tests/svc-ipxe-profile
+++ b/system-tests/tests/svc-ipxe-profile
@@ -14,7 +14,7 @@ cobbler system add --name testbed --profile fake --image fakeimage
 # Prepare expected result
 cat >${tmp}/a <<-EOF
 :fake
-kernel /images/fake/vmlinuz   initrd=initrd.magic
+kernel /images/fake/vmlinuz  
 initrd /images/fake/initramfs
 boot