-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid mounting /usr/src for underlying Linux distros without it
Ubuntu has /usr/src with the kernel headers but on Flatcar Container Linux, this directory does not exist and the kernel headers are located in /lib/modules/`uname -r` directly. Attempting to mount /usr/src from the host causes Docker to attempt to create that directory but this does not work when the host /usr is read-only. This patch mounts the host /usr into the tracerunner /usr-host instead because /usr always exists. Then, a symlink redirects /usr/src to /usr-host/src when needed. Signed-off-by: Alban Crequy <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters