[kwlug-disc] Relative paths Ubuntu 18.04 vs 20.04

Charles M chaslinux at gmail.com
Wed May 19 10:10:47 EDT 2021


I've set up a couple of PXE servers, one with Ubuntu server 18.04 and
one using Ubuntu server 20.04. Both have almost identical
apache2/conf-available/tftp.cfg files that look like this:

<Directory /srv/tftpboot>
        Options +FollowSymLinks +Indexes
        Require all granted
</Directory>
Alias /tftp /srv/tftpboot

I say almost because on 18.04 I'm using /var/lib/tftpboot and on 20.04
using /srv/tftpboot. I'm wondering if this difference is the reason I
have to use ../../ in pxelinux.cfg/default when referring to
directories/files within /srv/tftpboot?

For example: On  the 18.04 server a line in pxelinux.cfg/default might look like

KERNEL ubuntu/vmlinuz

But in 20.04 I have to refer to it using:

KERNEL ../../ubuntu/vmlinuz

Besides being lazy, I really just want it to look a lot cleaner. Is it
because tftpboot is in /srv, or is there a way to fix this in 20.04?

Thanks,

Charles




More information about the kwlug-disc mailing list