mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-22 17:52:12 +01:00
These were present in containerd, incus, and overlaybd. Also restore SLSA to the podman sysext as we normally include this. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
19 lines
416 B
Bash
Executable File
19 lines
416 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
rootfs="${1}"
|
|
|
|
pushd "${rootfs}"
|
|
|
|
rm -rf ./usr/{lib/debug,lib64/cmake,lib64/pkgconfig,include,share/aclocal,share/fish}/
|
|
|
|
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
|
|
EOF
|
|
|
|
popd
|