Skip to content

Conversation

@lmb
Copy link
Owner

@lmb lmb commented Dec 9, 2025

Passing a non-existing local path to -kernel currently gives a confusing error message. For example -kernel ./foo/bar causes:

 Error: exec: retrieve kernel from OCI image: [...]
     fetch image: get from remote: Get "https://./v2/":
     dial tcp: lookup . on 127.0.0.53:53: no such host

This is because we try to resolve the kernel as an OCI image if a local file doesn't exist.

Make this a bit less confusing by returning a better error message in the common case where someone uses a "rooted" path like /foo, ./foo or ../foo.

Passing a non-existing local path to -kernel currently gives a confusing
error message. For example `-kernel ./foo/bar` causes:

     Error: exec: retrieve kernel from OCI image: [...]
         fetch image: get from remote: Get "https://./v2/":
         dial tcp: lookup . on 127.0.0.53:53: no such host

This is because we try to resolve the kernel as an OCI image if a local
file doesn't exist.

Make this a bit less confusing by returning a better error message in
the common case where someone uses a "rooted" path like
/foo, ./foo or ../foo.
@lmb lmb merged commit 0b1940f into main Dec 9, 2025
4 checks passed
@lmb lmb deleted the kernel-less-confusing branch December 9, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants