1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! The kernel and init image releases this crate boots by default.
//!
//! Pinned separately from each other and from the Swift package, so a mismatch
//! fails only at runtime; [`crate::Session::version`] names both.
/// The init image release this crate is pinned to: the initfs carrying
/// `vminitd`, the agent the library talks to over vsock.
///
/// Must match the `containerization` release in
/// this crate's `swift/Package.swift`: they share a protocol,
/// and a mismatch fails at runtime, not build time.
pub const INITFS_VERSION: &str = initfs_version!;
pub const INITFS_REFERENCE: &str = concat!;
/// The kernel `provision` fetches, and its path inside the archive.
///
/// Kata Containers' static build, the release Containerization's Makefile
/// pins. Downloaded, since no one publishes a kernel as an image.
pub const KERNEL_VERSION: &str = kernel_version!;
/// The archive [`KERNEL_VERSION`] is published in.
pub const KERNEL_URL: &str = concat!;
/// The kernel's path inside [`KERNEL_URL`]'s archive.
pub const KERNEL_IN_ARCHIVE: &str = "opt/kata/share/kata-containers/vmlinux.container";