From: Luca Boccassi Date: Fri, 22 May 2020 15:56:37 +0000 (+0100) Subject: portabled: implement container host os-release interface X-Git-Tag: v246-rc1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73083ca238d8d537e2713378271a316fc6afa350;p=thirdparty%2Fsystemd.git portabled: implement container host os-release interface --- diff --git a/src/portable/portable.c b/src/portable/portable.c index 7917ea3902e..61c1d475b8f 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))