[PATCH container] Fix bug #6040 in the exclusion pattern of tar
Orwa Diraneyya
info at orwa.tech
Sat Jan 4 19:47:26 CET 2025
From: Orwa Diraneyya <diraneyyaorwa at gmail.com>
After this fix, users of Proxmox will be able to
use the root filesystem tarballs found publicly
(e.g. at https://cloud-images.ubuntu.com/) as LXC
container templates.
Currently, this results in a container-creation
failure due to the root folder `/dev` exclusion
pattern being ineffective.
The bugfix is also announced on the dev mailing
list (mailman.74.1735960093.441.pve-devel)
Signed-off-by: Orwa Diraneyya <diraneyyaorwa at gmail.com>
---
src/PVE/LXC/Create.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 8c8cb9a..4d0d11e 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -75,7 +75,7 @@ my sub restore_tar_archive_command {
# *sigh*, gnu...
push @$cmd, '--skip-old-files';
push @$cmd, '--anchored';
- push @$cmd, '--exclude' , './dev/*';
+ push @$cmd, '--exclude' , 'dev/*';
if (defined($bwlimit)) {
$cmd = [ ['cstream', '-t', $bwlimit*1024], $cmd ];
--
2.46.0
More information about the pve-devel
mailing list