Skip to content
Snippets Groups Projects
Verified Commit ffeb05bb authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

podman: Order rootless sysctl configuration


Oniro comes with a default configuration for user namespaces (disabling
it). We want podman be able to override it when rootless mode is
enabled.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 1b2dc7ff
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,11 @@ inherit writables ...@@ -6,3 +6,11 @@ inherit writables
WRITABLES = "rootuser-netconfig" WRITABLES = "rootuser-netconfig"
WRITABLE_PATH[rootuser-netconfig] = "/etc/cni/net.d" WRITABLE_PATH[rootuser-netconfig] = "/etc/cni/net.d"
do_install:append() {
if ${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'true', 'false', d)}; then
# Make sure that the Oniro defaults gets overridden by this.
mv "${D}${sysconfdir}/sysctl.d/00-podman-rootless.conf" \
"${D}${sysconfdir}/sysctl.d/50-podman-rootless.conf"
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment