flatcar-scripts/build_library/sysext_mangle_flatcar-overlaybd
James Le Cuirot b930444366
build_library: Drop debug symbols and other noise from some sysexts
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>
2025-11-13 10:46:36 +00:00

16 lines
293 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
rootfs="${1}"
pushd "${rootfs}"
rm -rf ./usr/lib/debug/
pushd ./usr/lib/systemd/system
mkdir -p "multi-user.target.d"
{ echo "[Unit]"; echo "Upholds=overlaybd-tcmu.service overlaybd-snapshotter.service"; } > "multi-user.target.d/10-overlaybd.conf"
popd
popd