From e1c2819d5300bf625357e28d873eeee02ed9beb8 Mon Sep 17 00:00:00 2001 From: frasmarco Date: Fri, 20 Dec 2024 16:32:26 +0100 Subject: [PATCH 1/3] Update Dockerfile --- buildscripts/lvm-driver/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildscripts/lvm-driver/Dockerfile b/buildscripts/lvm-driver/Dockerfile index cb081be3..c462da33 100644 --- a/buildscripts/lvm-driver/Dockerfile +++ b/buildscripts/lvm-driver/Dockerfile @@ -17,6 +17,9 @@ RUN apk add --no-cache lvm2 lvm2-extra util-linux device-mapper RUN apk add --no-cache btrfs-progs xfsprogs xfsprogs-extra e2fsprogs e2fsprogs-extra RUN apk add --no-cache ca-certificates libc6-compat +# Disable lvm archiving +RUN sed -i -r -e '/^\s*#?\s*archive\s*=/s/^.*$/ archive = 0/' /etc/lvm/lvm.conf + ARG DBUILD_DATE ARG DBUILD_REPO_URL ARG DBUILD_SITE_URL From 071a6464f987d0aa127152a1737c131ccc4a5cda Mon Sep 17 00:00:00 2001 From: frasmarco Date: Fri, 20 Dec 2024 16:32:49 +0100 Subject: [PATCH 2/3] Update Dockerfile.buildx --- buildscripts/lvm-driver/Dockerfile.buildx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildscripts/lvm-driver/Dockerfile.buildx b/buildscripts/lvm-driver/Dockerfile.buildx index 4eb220af..3ea9e844 100644 --- a/buildscripts/lvm-driver/Dockerfile.buildx +++ b/buildscripts/lvm-driver/Dockerfile.buildx @@ -46,6 +46,9 @@ RUN apk add --no-cache lvm2 lvm2-extra util-linux device-mapper RUN apk add --no-cache btrfs-progs xfsprogs xfsprogs-extra e2fsprogs e2fsprogs-extra RUN apk add --no-cache ca-certificates libc6-compat +# Disable lvm archiving +RUN sed -i -r -e '/^\s*#?\s*archive\s*=/s/^.*$/ archive = 0/' /etc/lvm/lvm.conf + ARG DBUILD_DATE ARG DBUILD_REPO_URL ARG DBUILD_SITE_URL From c17cf0c663e7d18bec95a20cc5483f77ef735aaa Mon Sep 17 00:00:00 2001 From: frasmarco Date: Fri, 20 Dec 2024 16:38:05 +0100 Subject: [PATCH 3/3] Create 236-frasmarco --- changelogs/unreleased/236-frasmarco | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/unreleased/236-frasmarco diff --git a/changelogs/unreleased/236-frasmarco b/changelogs/unreleased/236-frasmarco new file mode 100644 index 00000000..81fa543f --- /dev/null +++ b/changelogs/unreleased/236-frasmarco @@ -0,0 +1 @@ +Disable lvm archive in order to limit space usage when creating **lots** of volumes