commit 8300a1f66a45be71746153472fceef53da1e2c84
parent 9d0e64ca5225128ee79ccdc2fb2de7fd08f7bed8
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Tue, 24 May 2022 15:06:15 +0200
Export hostname in container_sysroot_run
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/container_sysroot_run b/sbin/container_sysroot_run
@@ -37,7 +37,8 @@ if { mount -a --fstab data/fstab }
# Put UID/GID/GIDLIST into environment for use by s6-applyuidgid below
s6-envuidgid ${CONTAINER_USER}
-#env
+env
+ HOST=${CONTAINER_NAME}
# NS_EXTRA="if { mount -o bind,ro /etc/passwd etc/passwd } if { mount -o bind,ro /etc/group etc/group }"
emptyenv -c