Skip to content

Commit

Permalink
vm: use --force-9p on <= v5.10 kernels
Browse files Browse the repository at this point in the history
It looks like virtiofs is not supported on these kernels.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Jun 19, 2024
1 parent a8452f0 commit 930a193
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ setup_env() { local mode net=()
fi
fi

if [ "${KVER_MAJ}" -lt 5 ] ||
{ [ "${KVER_MAJ}" -eq 5 ] && [ "${KVER_MIN}" -le 10 ]; }; then
# virtiofs doesn't seem to be supported on old kernels
VIRTME_RUN_OPTS+=(--force-9p)
fi

log_section_end
}

Expand Down

0 comments on commit 930a193

Please sign in to comment.