dnsmasq does in all cases prepend "tftp_root" to tftp-bootfiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
dnsmasq does in all cases prepend "tftp_root" to tftp-files.
tftp-root=
dhcp-boot=
now have some config files for different subnets:
dhcp-boot=
dhcp-boot=
dhcp-boot=
Now booting clients within subnet 172.18.1.0/24 will boot grub with:
/data/tftp/
Booting clients within subnet 172.18.2.0/24 will boot pxelinux.0 with:
/data/tftp/
And in subnet 172.18.7.0/24 clients will boot with:
/data/tftp/
and return a "File not found" error.
I'd expected:
172.18.1: grub/i386-pc/core.0 (file found within /data/tftp -- without exposing path)
172.18.2: pxelinux.0 (file found within /data/tftp -- without exposing path)
172.18.3: /pxelinux.0 (file found within /)
172.18.7: /var/lib/
or even better: some way to set tftp-root for every subnet-config and having only relative paths to access files regardless of giving absolute or relative paths.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: dnsmasq 2.79-1
ProcVersionSign
Uname: Linux 4.15.0-87-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.10
Architecture: amd64
Date: Thu Feb 6 11:43:07 2020
InstallationDate: Installed on 2014-01-31 (2197 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: dnsmasq
UpgradeStatus: Upgraded to bionic on 2018-11-23 (439 days ago)
mtime.conffile.
mtime.conffile.
Simplest thing would be:
tftp-root
sets the tftp-root directory: /data/tftp -> /
or: /var/lib/tftpboot -> /
Whatever is done is relative to this. tftp-root is then NEVER
prepended to any file given for tftp retrival.