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

podman: Order rootless sysctl configuration


Oniro disables user namespaces by default. We want podman be able to
override it (re-enable it) when rootless mode is enabled.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent cab2e790
No related branches found
No related tags found
1 merge request!204Integrate podman in Oniro
This commit is part of merge request !204. Comments created here will be created in the context of that merge request.
...@@ -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