Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-boxes
Commits
83a7bd38
Verified
Commit
83a7bd38
authored
Aug 15, 2020
by
Sven-Hendrik Haase
Browse files
Always write zeros
parent
cc03d02f
Changes
4
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
83a7bd38
...
...
@@ -34,7 +34,7 @@ build:cloud-qemu:
before_script
:
-
pacman -Syu --needed --noconfirm packer qemu-headless
script
:
-
packer build
-var 'write_zeroes=yes'
-except=sign cloud.json
-
packer build -except=sign cloud.json
artifacts
:
name
:
"
cloud-qemu"
paths
:
...
...
@@ -46,7 +46,7 @@ build:vagrant-qemu:
before_script
:
-
pacman -Syu --needed --noconfirm packer qemu-headless
script
:
-
packer build
-var 'write_zeroes=yes'
-only=qemu local.json
-
packer build -only=qemu local.json
publish
:
stage
:
publish
...
...
@@ -56,7 +56,7 @@ publish:
before_script
:
-
pacman -Syu --needed --noconfirm qemu-headless virtualbox packer
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
:
variables
:
-
$SCHEDULED_PUBLISH == "TRUE"
...
...
cloud.json
View file @
83a7bd38
...
...
@@ -4,7 +4,6 @@
"iso_checksum_url"
:
"https://mirror.pkgbuild.com/iso/latest/sha1sums.txt"
,
"disk_size"
:
"20480"
,
"headless"
:
"true"
,
"write_zeroes"
:
""
,
"boot_wait"
:
"60s"
,
"accelerator"
:
""
,
"mirror"
:
"https://mirror.pkgbuild.com/$repo/os/$arch"
...
...
@@ -52,7 +51,7 @@
"scripts"
:
[
"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"
:
[
...
...
local.json
View file @
83a7bd38
...
...
@@ -5,7 +5,6 @@
"iso_checksum_url"
:
"https://mirror.pkgbuild.com/iso/latest/sha1sums.txt"
,
"disk_size"
:
"20480"
,
"headless"
:
"true"
,
"write_zeroes"
:
""
,
"boot_wait"
:
"60s"
,
"accelerator"
:
""
,
"mirror"
:
"https://mirror.pkgbuild.com/$repo/os/$arch"
...
...
@@ -135,7 +134,7 @@
"scripts"
:
[
"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"
:
[
...
...
vagrant.json
View file @
83a7bd38
...
...
@@ -5,7 +5,6 @@
"disk_size"
:
"20480"
,
"headless"
:
"true"
,
"vagrant_cloud_token"
:
"PLACEHOLDER"
,
"write_zeroes"
:
""
,
"boot_wait"
:
"60s"
,
"mirror"
:
""
},
...
...
@@ -120,7 +119,7 @@
"scripts"
:
[
"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"
:
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment