]> git.proxmox.com Git - proxmox-backup-restore-image.git/commitdiff
fix clean build again, use cache if actually there
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jun 2023 15:36:31 +0000 (17:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jun 2023 15:41:47 +0000 (17:41 +0200)
whit dropping this in 0cec05b ("build initramfs: download packages
into per-flavor dirs"), the pre-caching was made effectively useless,
and building without internet during the build-step failed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/build_initramfs.sh

index 416d5190efa44a597b6d3a2687a2c3e7a9aadf1d..6fed576400aa3f1bf321cad1a218254e24093b21 100755 (executable)
@@ -12,6 +12,7 @@ mkdir -p "$BUILDDIR"
 if [ -d pkgs ]; then
     echo "copying package cache into build-dir"
     cp -a pkgs "$BUILDDIR/pkgs"
+    NO_DOWNLOAD="1"
 fi
 cd "$BUILDDIR"
 mkdir "$ROOT"