Skip to content

config.tftpRoot should handle relative paths properly #1

Description

@thehonker

with ~/Documents/tftpboot: (should resolve ~ properly)

╭─epers@skylight ~/Documents/tsbootkit
╰─➤  tsbootkit-pxed --config config.yaml
[00:20:46] pxed info: Loaded config from config.yaml: 0 reservation(s)
[00:20:46] pxed info: Starting PXE daemon on en6 (mode=dhcp, boot=pxelinux.0, tftp=~/Documents/tftpboot)
Fatal: Root directory does not exist: /Users/epers/Documents/tsbootkit/~/Documents/tftpboot

with /tftpboot: (works as expected)

╭─epers@skylight ~/Documents/tsbootkit
╰─➤  tsbootkit-pxed --config config.yaml
[00:21:08] pxed info: Loaded config from config.yaml: 0 reservation(s)
[00:21:08] pxed info: Starting PXE daemon on en6 (mode=dhcp, boot=pxelinux.0, tftp=/tftpboot)
Fatal: Root directory does not exist: /tftpboot

with ./tftpboot: (works as expected)

╭─epers@skylight ~/Documents/tsbootkit
╰─➤  tsbootkit-pxed --config config.yaml
[00:23:34] pxed info: Loaded config from config.yaml: 0 reservation(s)
[00:23:34] pxed info: Starting PXE daemon on en6 (mode=dhcp, boot=pxelinux.0, tftp=./tftpboot)
Fatal: Unknown network interface: en6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions