The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/301

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) ===
This is needed for it to successfully run on CentOS 7.
From 2f3224a2c7698a4b97bd3c737864c689cc01a054 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Wed, 4 Mar 2020 16:24:49 +0100
Subject: [PATCH] generators/lxd-agent: Add trans=virtio option

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 generators/lxd-agent.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/generators/lxd-agent.go b/generators/lxd-agent.go
index 9f1b684..d415b55 100644
--- a/generators/lxd-agent.go
+++ b/generators/lxd-agent.go
@@ -106,7 +106,7 @@ RemainAfterExit=yes
 ExecStartPre=-/sbin/modprobe 9pnet_virtio
 ExecStartPre=/bin/mkdir -p /run/lxd_config/9p
 ExecStartPre=/bin/chmod 0700 /run/lxd_config/
-ExecStart=/bin/mount -t 9p config /run/lxd_config/9p -o access=0
+ExecStart=/bin/mount -t 9p config /run/lxd_config/9p -o access=0,trans=virtio
 
 [Install]
 WantedBy=multi-user.target
@@ -152,7 +152,7 @@ depend() {
 
 description="LXD - agent - 9p mount"
 command=/bin/mount
-command_args="-t 9p config /run/lxd_config/9p -o access=0"
+command_args="-t 9p config /run/lxd_config/9p -o access=0,trans=virtio"
 required_files=/dev/virtio-ports/org.linuxcontainers.lxd
 
 start_pre() {
@@ -208,7 +208,7 @@ end script
 
 task
 
-exec mount -t 9p config /run/lxd_config/9p -o access=0
+exec mount -t 9p config /run/lxd_config/9p -o access=0,trans=virtio
 `
 
        err = ioutil.WriteFile(filepath.Join(sourceDir, 
"/etc/init/lxd-agent-9p"), []byte(lxdConfigShareMountScript), 0755)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to