Skip to content

Commit c629016

Browse files
committed
packer-rocm/re-entry: remove 'custom-packages.tar.gz'
1 parent 4d6b4ca commit c629016

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packer-rocm/ubuntu/ubuntu-rocm.pkr.hcl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ source "qemu" "rocm" {
3636
build {
3737
sources = ["source.qemu.rocm"]
3838

39-
# generate/copy tarball of custom packages; 'packer-maas' will process
39+
# regenerate/copy tarball of custom packages; 'packer-maas' will process
4040
provisioner "shell-local" {
4141
inline = [
42-
"tar cvzf ${path.root}/custom-packages.tar.gz -C ${path.root}/packages --overwrite .",
42+
"rm -f ${path.root}/custom-packages.tar.gz",
43+
"tar cvzf ${path.root}/custom-packages.tar.gz -C ${path.root}/packages ."
4344
]
44-
inline_shebang = "/bin/bash -e"
45+
inline_shebang = "/bin/bash"
4546
}
4647
provisioner "file" {
4748
destination = "/tmp/"

0 commit comments

Comments
 (0)