summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-05-22 17:56:37 +0200
committerLuca Boccassi <luca.boccassi@microsoft.com>2020-06-23 13:58:21 +0200
commit73083ca238d8d537e2713378271a316fc6afa350 (patch)
tree127ac891750d192503c2cafb7c11dd0ffdfcae6c /src/portable
parentnspawn: implement container host os-release interface (diff)
downloadsystemd-73083ca238d8d537e2713378271a316fc6afa350.tar.xz
systemd-73083ca238d8d537e2713378271a316fc6afa350.zip
portabled: implement container host os-release interface
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 7917ea3902..61c1d475b8 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -701,6 +701,7 @@ static int install_chroot_dropin(
"[Service]\n",
IN_SET(type, IMAGE_DIRECTORY, IMAGE_SUBVOLUME) ? "RootDirectory=" : "RootImage=", image_path, "\n"
"Environment=PORTABLE=", basename(image_path), "\n"
+ "BindReadOnlyPaths=-/etc/os-release:/run/host/etc/os-release /usr/lib/os-release:/run/host/usr/lib/os-release\n"
"LogExtraFields=PORTABLE=", basename(image_path), "\n",
NULL))