mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-16 22:12:37 +01:00
build_library: Add manglefs script for podman sysext
Debug symbols and development files get removed. /etc content is temporarily pushed to /usr/share/flatcar/etc, which doesn't work. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
042f30ea40
commit
6ebadf4420
21
build_library/sysext_mangle_podman-flatcar
Executable file
21
build_library/sysext_mangle_podman-flatcar
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
rootfs="${1}"
|
||||
|
||||
#find "${rootfs}"
|
||||
# Remove debug
|
||||
rm -rf "${rootfs}"/usr/{lib/debug/,lib64/cmake/,include/}
|
||||
|
||||
mkdir -p "${rootfs}"/usr/share/flatcar/etc
|
||||
rm -rf "${rootfs}"/etc/{csh.env,environment.d/,profile.env}
|
||||
cp -a "${rootfs}"/etc/. "${rootfs}"/usr/share/flatcar/etc/
|
||||
|
||||
#script_root="$(cd "$(dirname "$0")/../"; pwd)"
|
||||
#files_dir="${script_root}/sdk_container/src/third_party/coreos-overlay/coreos/sysext/docker"
|
||||
|
||||
#echo ">>> NOTICE $0: installing extra files from '${files_dir}'"
|
||||
#cp -va "${files_dir}/"* "${rootfs}"
|
||||
|
||||
#mkdir -p "${rootfs}/usr/lib/systemd/system/sockets.target.d"
|
||||
#{ echo "[Unit]"; echo "Upholds=docker.socket"; } > "${rootfs}/usr/lib/systemd/system/sockets.target.d/10-docker-socket.conf"
|
||||
Loading…
x
Reference in New Issue
Block a user