]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portabled: implement container host os-release interface 15891/head
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 22 May 2020 15:56:37 +0000 (16:56 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 23 Jun 2020 11:58:21 +0000 (12:58 +0100)
src/portable/portable.c

index 7917ea3902e860d73f4737d2ce5628913d1552cd..61c1d475b8f4e9982d58eb2516c3499c5343066f 100644 (file)
@@ -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))