mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
Enabled user session dbus in base image to support podman rootless mode. Extension images can now be created from multiple packages by seperating them with a comma. The podman sysext includes app-containers/podman and net-misc/passt. It can be enabled by adding podman to /etc/flatcar/enabled-sysext.conf. Potential TODO: gpgme had to be added as BDEPEND to podman ebuild.
21 lines
511 B
Bash
Executable File
21 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
rootfs="${1}"
|
|
|
|
pushd "${rootfs}"
|
|
|
|
rm -rf ./usr/{lib/debug/,lib64/cmake/,lib64/pkgconfig,include/,share/fish,share/aclocal,share/SLSA}
|
|
|
|
mkdir -p ./usr/share/podman/etc
|
|
cp -a ./etc/{fuse.conf,containers} ./usr/share/podman/etc/
|
|
|
|
cat <<EOF >>./usr/lib/tmpfiles.d/podman.conf
|
|
C /etc/containers - - - - /usr/share/podman/etc/containers
|
|
C /etc/fuse.conf - - - - /usr/share/podman/etc/fuse.conf
|
|
w /etc/subuid - - - - core:1065536:65536
|
|
w /etc/subgid - - - - core:1065536:65536
|
|
EOF
|
|
|
|
popd
|