summaryrefslogtreecommitdiff
path: root/meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-01-03 15:20:53 -0600
committerunitexe <unitexe70@gmail.com>2026-01-03 15:39:31 -0600
commit4fdb048cc17d22d90664c3cac076516b771f4d30 (patch)
tree6f62e00d26dd559770801a75c999dcff714b58c6 /meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow
parentf2738c399dffe325b5add7b912d9562484f071e3 (diff)
Podman (rootful & rootless) support
- Rootless support for unitexe user specifically
Diffstat (limited to 'meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow')
-rw-r--r--meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow/shadow_%.bbappend12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow/shadow_%.bbappend b/meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow/shadow_%.bbappend
new file mode 100644
index 0000000..cb2beaa
--- /dev/null
+++ b/meta-unit-core/dynamic-layers/virtualization-layer/recipes-extended/shadow/shadow_%.bbappend
@@ -0,0 +1,12 @@
+#
+# Support rootless podman for unitexe user.
+#
+# This is explained at:
+# https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md#etcsubuid-and-etcsubgid-configuration
+#
+do_install:append() {
+ echo "unitexe:100000:65536" >> ${D}${sysconfdir}/subuid
+ echo "" >> ${D}${sysconfdir}/subuid
+ echo "unitexe:100000:65536" >> ${D}${sysconfdir}/subgid
+ echo "" >> ${D}${sysconfdir}/subgid
+}