mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-26 07:30:19 +00:00
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.
16 lines
585 B
Bash
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 "$@"
|