docker: Add missing hyphen for ‘tar -cf layer.tar’.

Fixes a bug introduced in 646202bf73
whereby ‘guix pack -f docker --max-layers=8 sed’ would fail with:

  tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options

* guix/docker.scm (build-docker-image):

Reported-by: Simon Josefsson <simon@josefsson.org>
Change-Id: I8edf4538e7d2964c90e5aac19fa905a8a86d0862
This commit is contained in:
Ludovic Courtès 2025-02-04 17:13:01 +01:00
parent 9a6a7c9ea0
commit 285a1cb449
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -276,7 +276,7 @@ added to image as a layer."
(let* ((head-layers
(map
(lambda (file)
(tar "cf" "layer.tar" file)
(tar "-cf" "layer.tar" file)
(seal-layer))
head))
(tail-layer