mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-24 22:01:05 +02:00
Following what was done for incus. Removes the subuid/gid from sysext.
Adding subuid/subgid could be done through Ignition:
```yaml
version: 1.1.0
variant: flatcar
storage:
files:
- path: /etc/subuid
append:
- inline: |
core:1065536:65536
- path: /etc/subgid
append:
- inline: |
core:1065536:65536
```
Related: flatcar/Flatcar#1733
19 lines
429 B
Bash
Executable File
19 lines
429 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
|
|
EOF
|
|
|
|
popd
|