The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6425
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 7680a8ca8e55e8b95cb26f9b597e4e3a90d04483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Fri, 8 Nov 2019 20:27:35 -0500 Subject: [PATCH] lxd/vm: Set WorkingDirectory in unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/vm_qemu.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxd/vm_qemu.go b/lxd/vm_qemu.go index b00d5a0825..06d63aa044 100644 --- a/lxd/vm_qemu.go +++ b/lxd/vm_qemu.go @@ -676,9 +676,12 @@ local-hostname: %s lxdAgentServiceUnit := `[Unit] Description=LXD - agent After=media-lxd_config.mount + [Service] Type=simple +WorkingDirectory=/media/lxd_config/ ExecStart=/media/lxd_config/lxd-agent + [Install] WantedBy=multi-user.target ` @@ -691,10 +694,12 @@ WantedBy=multi-user.target lxdConfigDriveMountUnit := `[Unit] Description = LXD - config drive Before=local-fs.target + [Mount] Where=/media/lxd_config What=/dev/disk/by-label/cidata Type=iso9660 + [Install] WantedBy=multi-user.target `
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel