Bug #20942
closedleading slash (/) missing in dhcp/tftp/pxe file path
Description
When I configure Katello for provisioning (adding DHCP, TFTP, DNS etc.), it creates wrong configuration. The configuration of dhcp is wrong, due to missing leading slash (/) in boot file path. e.g.:
- Bootfile Handoff
next-server 10.0.20.100;
option architecture code 93 = unsigned integer 16 ;
if option architecture = 00:06 {
filename "*grub2/shim.efi*";
} elsif option architecture = 00:07 {
filename "*grub2/shim.efi*";
} elsif option architecture = 00:09 {
filename "*grub2/shim.efi*";
} else {
filename "*pxelinux.0*";
}
It should be like:
- Bootfile Handoff
next-server 10.0.20.100;
option architecture code 93 = unsigned integer 16 ;
if option architecture = 00:06 {
filename "*/grub2/shim.efi*";
} elsif option architecture = 00:07 {
filename "*/grub2/shim.efi*";
} elsif option architecture = 00:09 {
filename "*/grub2/shim.efi*";
} else {
filename "*/pxelinux.0*";
}
Similar when I create new host, it's configuration in /var/lib/tftp/pxelinux.cfg/{MAC_ADDRESS} is wrong due to the same issue:
- This file was deployed via 'Kickstart default PXELinux' template
TIMEOUT 10
DEFAULT Kickstart default PXELinux
LABEL Kickstart default PXELinux
KERNEL boot/CentOS-7.3-x86_64-vmlinuz
APPEND initrd=boot/CentOS-7.3-x86_64-initrd.img ks=http://sat01.home.lab/unattended/provision?token=ef7f560d-c773-4535-9cb2-83ec093258f6 network ksdevice=bootif ks.device=bootif BOOTIF=00-00-0c-29-a2-1c-8e kssendmac ks.sendmac inst.ks.sendmac
IPAPPEND 2
but it should be:
- This file was deployed via 'Kickstart default PXELinux' template
TIMEOUT 10
DEFAULT Kickstart default PXELinux
LABEL Kickstart default PXELinux
KERNEL /boot/CentOS-7.3-x86_64-vmlinuz
APPEND initrd=*/boot/CentOS-7.3-x86_64-initrd.img* ks=http://sat01.home.lab/unattended/provision?token=ef7f560d-c773-4535-9cb2-83ec093258f6 network ksdevice=bootif ks.device=bootif BOOTIF=00-00-0c-29-a2-1c-8e kssendmac ks.sendmac inst.ks.sendmac
IPAPPEND 2
Thx
Updated by Lukas Zapletal about 6 years ago
- Status changed from New to Closed
Hello, the configuration is correct and works out of box. I am going to close this one, please feel free to reopen but provide more details what excactly does not work.