[lxc-devel] [distrobuilder/master] lxc: Remove "rootfs" prefix in tarball

monstermunchkin on Github lxc-bot at linuxcontainers.org
Fri Mar 9 13:56:37 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180309/d8f2e0fe/attachment.bin>
-------------- next part --------------
From 16fa3b28dcfde68fd49d26b2e7122b51d0de6ea0 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Fri, 9 Mar 2018 14:53:42 +0100
Subject: [PATCH] lxc: Remove "rootfs" prefix in tarball

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 image/lxc.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/image/lxc.go b/image/lxc.go
index 3c5a9fb..d91fed0 100644
--- a/image/lxc.go
+++ b/image/lxc.go
@@ -75,8 +75,7 @@ func (l *LXCImage) Build() error {
 		return err
 	}
 
-	err = shared.Pack(filepath.Join(l.targetDir, "rootfs.tar"), "xz", l.sourceDir,
-		"--transform", "s,^./,rootfs/,", ".")
+	err = shared.Pack(filepath.Join(l.targetDir, "rootfs.tar"), "xz", l.sourceDir, ".")
 	if err != nil {
 		return err
 	}


More information about the lxc-devel mailing list