Skip to content

Conversation

@katiewasnothere
Copy link
Contributor

Type of Change

  • Bug fix

Description

This PR checks if the found entry in the archive for the requested kernel path is a symlink, and if so, follows the symlink. I've opened a separate issue to track creating tests for kernel downloading here #574 and will create a follow-up PR for those.

Motivation and Context

This PR fixes an issue reported in #475 where installing a kernel from a tar archive does not follow symlinks in the archive.

Testing

  • Tested locally

Copy link
Contributor

@wlan0 wlan0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One correctness bug, LGTM otherwise

@katiewasnothere katiewasnothere merged commit cb2f424 into apple:main Sep 4, 2025
2 checks passed
@katiewasnothere katiewasnothere deleted the kernel_follow_symlink branch September 4, 2025 21:10
katiewasnothere added a commit that referenced this pull request Sep 5, 2025
## Type of Change
- [x] New feature  

## Description
Add option to force kernel setting and tests for CLI `kernel set`.
Related to #575.

## Motivation and Context
This PR adds additional tests to ensure that we can set kernels from
local files, remote tar files, and local tar files. A new option `force`
is added to the `kernel set` subcommand which will overwrite an existing
kernel with the same name if one exists to make testing easier. The
tests ensure that a container can be started with the newly set kernel
and resets to the default recommended kernel when complete.

## Testing
- [x] Tested locally
- [x] Added/updated tests

Signed-off-by: Kathryn Baldauf <[email protected]>
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