Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

97
package/podman/Config.in Normal file
View File

@@ -0,0 +1,97 @@
config BR2_PACKAGE_PODMAN
bool "podman"
depends on BR2_USE_MMU # fork()
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS # host-go
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # netavark
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpgme
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 # shadow
depends on BR2_TOOLCHAIN_HAS_THREADS # conmon
depends on BR2_USE_WCHAR # conmon
select BR2_PACKAGE_HOST_GO
select BR2_PACKAGE_CA_CERTIFICATES # runtime
select BR2_PACKAGE_CGROUPFS_V2_MOUNT if !BR2_PACKAGE_CGROUPFS_MOUNT && !BR2_INIT_SYSTEMD # runtime
select BR2_PACKAGE_CONMON # runtime
select BR2_PACKAGE_CONTAINERS_IMAGE_CONFIG # runtime
select BR2_PACKAGE_LIBGPGME
select BR2_PACKAGE_LIBSECCOMP
select BR2_PACKAGE_NETAVARK # runtime
# podman officially only supports crun, but compatible runtimes are
# also accepted. So we do the select the other way around, to match
# docker-engine's own select and thus avoid circular dependency
# issues.
select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime
select BR2_PACKAGE_SHADOW
select BR2_PACKAGE_SHADOW_SUBORDINATE_IDS
help
The best free & open source container tools
Manage containers, pods, and images with Podman. Seamlessly
work with containers and Kubernetes from your local
environment.
https://podman.io/
if BR2_PACKAGE_PODMAN
choice
bool "support podman-init"
default BR2_PACKAGE_PODMAN_INIT_CATATONIT
help
Support providing a minimal init process for containers.
Required to use "podman container run --init".
config BR2_PACKAGE_PODMAN_INIT_NONE
bool "none"
help
Do not support docker-init.
config BR2_PACKAGE_PODMAN_INIT_CATATONIT
bool "catatonit"
select BR2_PACKAGE_CATATONIT # runtime
help
Support providing a minimal init process for containers,
using catatonit.
config BR2_PACKAGE_PODMAN_INIT_TINI
bool "tini"
select BR2_PACKAGE_TINI # runtime
help
Support providing a minimal init process for containers,
using tini.
endchoice
config BR2_PACKAGE_PODMAN_INIT_NAME
string
default "tini" if BR2_PACKAGE_PODMAN_INIT_TINI
default "catatonit" if BR2_PACKAGE_PODMAN_INIT_CATATONIT
choice
bool "Network backend"
config BR2_PACKAGE_PODMAN_NET_PASST
bool "passt/pasta"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9 # passt
select BR2_PACKAGE_PASST # runtime
comment "passt/pasta backend needs a toolchain w/ headers >= 5.9"
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
config BR2_PACKAGE_PODMAN_NET_SLIRP4NETNS
bool "slirp4netns"
select BR2_PACKAGE_SLIRP4NETNS # runtime
endchoice
endif
comment "podman needs a toolchain w/ headers >= 4.14, threads, wchar"
depends on BR2_USE_MMU
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 \
|| !BR2_TOOLCHAIN_HAS_THREADS \
|| !BR2_USE_WCHAR

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 60de04a48c0ecf5006fb8e26543e2275126833aeaf2b5ea02ba492965d96173f podman-v5.7.0-git4-go2.tar.gz
sha256 62fb8a3a9621dc2388174caaabe9c2317b694bb9a1d46c98bcf5655b68f51be3 LICENSE

118
package/podman/podman.mk Normal file
View File

@@ -0,0 +1,118 @@
################################################################################
#
# podman
#
################################################################################
PODMAN_VERSION = v5.7.0
PODMAN_SITE = https://github.com/containers/podman
PODMAN_SITE_METHOD = git
PODMAN_LICENSE = Apache-2.0
PODMAN_LICENSE_FILES = LICENSE
PODMAN_DEPENDENCIES = host-pkgconf libgpgme
PODMAN_GOMOD = github.com/containers/podman/v5
PODMAN_BUILD_TARGETS = cmd/podman
PODMAN_TAGS = selinux
# https://podman.io/docs/installation#get-source-code mandates that flag be
# set, as device-mapper is not officially supported.
PODMAN_TAGS += exclude_graphdriver_devicemapper
# This is supposedly optional, but a basic (busybox:latest) image does not
# even start without seccomp support, unless by passing extra options at
# runtime (--security-opt=seccomp=unconfined), which can't be made the default.
PODMAN_DEPENDENCIES += libseccomp
PODMAN_TAGS += seccomp
# This is required for rootless containers, i.e containers started by non-root
PODMAN_DEPENDENCIES += shadow
PODMAN_TAGS += libsubid
PODMAN_CPE_ID_VERSION = $(subst v,,$(PODMAN_VERSION))
# Windows only issue:
# https://github.com/containers/podman/security/advisories/GHSA-hc8w-h2mf-hp59
PODMAN_IGNORE_CVES += CVE-2026-33414
ifeq ($(BR2_PACKAGE_BTRFS_PROGS),y)
PODMAN_DEPENDENCIES += btrfs-progs
define PODMAN_LINUX_CONFIG_FIXUPS_BTRFS
$(call KCONFIG_ENABLE_OPT,CONFIG_BTRFS_FS)
$(call KCONFIG_ENABLE_OPT,CONFIG_BTRFS_FS_POSIX_ACL)
endef
else
PODMAN_TAGS += exclude_graphdriver_btrfs
endif
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
PODMAN_DEPENDENCIES += libapparmor
PODMAN_TAGS += apparmor
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
PODMAN_DEPENDENCIES += systemd
PODMAN_TAGS += systemd
endif
PODMAN_INIT_NAME = $(call qstrip,$(BR2_PACKAGE_PODMAN_INIT_NAME))
ifneq ($(PODMAN_INIT_NAME),)
PODMAN_INIT_PATH = /usr/libexec/podman/$(PODMAN_INIT_NAME)
define PODMAN_HELPER_INIT
$(Q)ln -sf ../../bin/$(PODMAN_INIT_NAME) $(TARGET_DIR)$(PODMAN_INIT_PATH)
$(Q)mkdir -p $(TARGET_DIR)/etc/containers/containers.conf.d
$(Q)printf '[containers]\ninit_path = "%s"\n' "$(PODMAN_INIT_PATH)" \
>$(TARGET_DIR)/etc/containers/containers.conf.d/50-buildroot-init.conf
endef
endif
ifeq ($(BR2_PACKAGE_PODMAN_NET_PASST),y)
define PODMAN_HELPER_PASST
$(Q)ln -sf ../../bin/pasta $(TARGET_DIR)/usr/libexec/podman/pasta
endef
else
define PODMAN_HELPER_SLIRP4NETNS
$(Q)ln -sf ../../bin/slirp4netns $(TARGET_DIR)/usr/libexec/podman/slirp4netns
$(Q)mkdir -p $(TARGET_DIR)/etc/containers/containers.conf.d
$(Q)printf '[network]\ndefault_rootless_network_cmd = "slirp4netns"\n' \
>$(TARGET_DIR)/etc/containers/containers.conf.d/50-buildroot-net-backend.conf
endef
endif
define PODMAN_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_CPUSETS)
$(call KCONFIG_ENABLE_OPT,CONFIG_BPF_SYSCALL)
$(call KCONFIG_ENABLE_OPT,CONFIG_POSIX_MQUEUE)
$(call KCONFIG_ENABLE_OPT,CONFIG_MEMCG)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_SCHED)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_FREEZER)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_DEVICE)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_CPUACCT)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_PIDS)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_BPF)
$(call KCONFIG_ENABLE_OPT,CONFIG_NAMESPACES)
$(call KCONFIG_ENABLE_OPT,CONFIG_UTS_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_IPC_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_PID_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_USER_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_SECCOMP)
$(call KCONFIG_ENABLE_OPT,CONFIG_OVERLAY_FS)
$(call KCONFIG_ENABLE_OPT,CONFIG_KEYS)
$(PODMAN_LINUX_CONFIG_FIXUPS_BTRFS)
endef
define PODMAN_HELPERS
$(Q)mkdir -p $(TARGET_DIR)/usr/libexec/podman
$(Q)ln -sf ../../bin/aardvark-dns $(TARGET_DIR)/usr/libexec/podman/aardvark-dns
$(Q)ln -sf ../../bin/netavark $(TARGET_DIR)/usr/libexec/podman/netavark
$(PODMAN_HELPER_INIT)
$(PODMAN_HELPER_PASST)
$(PODMAN_HELPER_SLIRP4NETNS)
endef
PODMAN_POST_INSTALL_TARGET_HOOKS += PODMAN_HELPERS
$(eval $(golang-package))