Verified Commit 83a7bd38 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Always write zeros

parent cc03d02f
...@@ -34,7 +34,7 @@ build:cloud-qemu: ...@@ -34,7 +34,7 @@ build:cloud-qemu:
before_script: before_script:
- pacman -Syu --needed --noconfirm packer qemu-headless - pacman -Syu --needed --noconfirm packer qemu-headless
script: script:
- packer build -var 'write_zeroes=yes' -except=sign cloud.json - packer build -except=sign cloud.json
artifacts: artifacts:
name: "cloud-qemu" name: "cloud-qemu"
paths: paths:
...@@ -46,7 +46,7 @@ build:vagrant-qemu: ...@@ -46,7 +46,7 @@ build:vagrant-qemu:
before_script: before_script:
- pacman -Syu --needed --noconfirm packer qemu-headless - pacman -Syu --needed --noconfirm packer qemu-headless
script: script:
- packer build -var 'write_zeroes=yes' -only=qemu local.json - packer build -only=qemu local.json
publish: publish:
stage: publish stage: publish
...@@ -56,7 +56,7 @@ publish: ...@@ -56,7 +56,7 @@ publish:
before_script: before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer - pacman -Syu --needed --noconfirm qemu-headless virtualbox packer
script: script:
- packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -var 'write_zeroes=yes' -except=vmware-iso vagrant.json - packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -except=vmware-iso vagrant.json
only: only:
variables: variables:
- $SCHEDULED_PUBLISH == "TRUE" - $SCHEDULED_PUBLISH == "TRUE"
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
"iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt", "iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt",
"disk_size": "20480", "disk_size": "20480",
"headless": "true", "headless": "true",
"write_zeroes": "",
"boot_wait": "60s", "boot_wait": "60s",
"accelerator": "", "accelerator": "",
"mirror": "https://mirror.pkgbuild.com/$repo/os/$arch" "mirror": "https://mirror.pkgbuild.com/$repo/os/$arch"
...@@ -52,7 +51,7 @@ ...@@ -52,7 +51,7 @@
"scripts": [ "scripts": [
"provision/write_zeroes.sh" "provision/write_zeroes.sh"
], ],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'arch'|sudo -S sh '{{.Path}}'; fi" "execute_command": "'arch'|sudo -S sh '{{.Path}}'"
} }
], ],
"post-processors": [ "post-processors": [
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
"iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt", "iso_checksum_url": "https://mirror.pkgbuild.com/iso/latest/sha1sums.txt",
"disk_size": "20480", "disk_size": "20480",
"headless": "true", "headless": "true",
"write_zeroes": "",
"boot_wait": "60s", "boot_wait": "60s",
"accelerator": "", "accelerator": "",
"mirror": "https://mirror.pkgbuild.com/$repo/os/$arch" "mirror": "https://mirror.pkgbuild.com/$repo/os/$arch"
...@@ -135,7 +134,7 @@ ...@@ -135,7 +134,7 @@
"scripts": [ "scripts": [
"provision/write_zeroes.sh" "provision/write_zeroes.sh"
], ],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'vagrant'|sudo -S sh '{{.Path}}'; fi" "execute_command": "'vagrant'|sudo -S sh '{{.Path}}'"
} }
], ],
"post-processors": [ "post-processors": [
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
"disk_size": "20480", "disk_size": "20480",
"headless": "true", "headless": "true",
"vagrant_cloud_token": "PLACEHOLDER", "vagrant_cloud_token": "PLACEHOLDER",
"write_zeroes": "",
"boot_wait": "60s", "boot_wait": "60s",
"mirror": "" "mirror": ""
}, },
...@@ -120,7 +119,7 @@ ...@@ -120,7 +119,7 @@
"scripts": [ "scripts": [
"provision/write_zeroes.sh" "provision/write_zeroes.sh"
], ],
"execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'vagrant'|sudo -S sh '{{.Path}}'; fi" "execute_command": "'vagrant'|sudo -S sh '{{.Path}}'"
} }
], ],
"post-processors": [ "post-processors": [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment