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

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 renames the resulting VM image to "disk.qcow2" if not unified.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From a2867d104eb06ec4804844f8a2c95eb26fbc1e04 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Fri, 21 Feb 2020 13:23:14 +0100
Subject: [PATCH] image/lxd: Rename resulting VM image

This renames the resulting VM image to "disk.qcow2" if not unified.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 image/lxd.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/image/lxd.go b/image/lxd.go
index ddf82bd..429fa44 100644
--- a/image/lxd.go
+++ b/image/lxd.go
@@ -125,7 +125,7 @@ func (l *LXDImage) Build(unified bool, compression string, 
vm bool) error {
                }
        } else {
                if vm {
-                       err = shared.Copy(qcowImage, filepath.Join(l.targetDir, 
filepath.Base(qcowImage)))
+                       err = shared.Copy(qcowImage, filepath.Join(l.targetDir, 
"disk.qcow2"))
                } else {
                        // Create rootfs as squashfs.
                        err = shared.RunCommand("mksquashfs", l.sourceDir,
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to