Files
kata-containers/tools/osbuilder/rootfs-builder/devkit/devkit-apt.sh
Fabiano Fidêncio d3f3714edd EXPERIMENT: devkit - switch Alpine base to Ubuntu (noble)
Build the devkit debug extension from the same Ubuntu release the guest image
uses (assets.image ... version, e.g. noble) instead of Alpine. The rootfs is
assembled via 'docker build' + 'docker export' so apt resolves dependencies
natively, and the guest helper scripts wrap apt-get (devkit-apt) instead of apk.

Not for merge; experiment on branch experiment/devkit-ubuntu.
2026-07-23 16:50:36 +02:00

16 lines
585 B
Bash

#!/run/kata-extensions/devkit/bin/busybox.static sh
# shellcheck shell=dash
#
# Copyright (c) Kata Containers Community
#
# SPDX-License-Identifier: Apache-2.0
#
# Thin apt wrapper: runs Ubuntu's apt-get inside the devkit overlay/chroot, so
# `devkit-apt update && devkit-apt install -y htop` installs into the writable
# overlay at runtime (an offline base ships no package lists, hence the update).
DEVKIT=/run/kata-extensions/devkit
# shellcheck source=tools/osbuilder/rootfs-builder/devkit/devkit-init.sh
. "${DEVKIT}/usr/bin/devkit-init"
devkit_chroot_exec /usr/bin/apt-get "$@"