Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kristian Klausen
arch-boxes
Commits
7986269f
Commit
7986269f
authored
Sep 28, 2020
by
Kristian Klausen
🎉
Browse files
Compress the Vagrant qemu image
parent
c16b3731
Pipeline
#1939
passed with stages
in 19 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build-inside-vm.sh
View file @
7986269f
...
...
@@ -185,7 +185,7 @@ EOF
local
virtual_size
virtual_size
=
"
$(
grep
-o
"^[0-9]*"
<<<
"
${
DISK_SIZE
}
"
)
"
echo
'{"format":"qcow2","provider":"libvirt","virtual_size":'
"
${
virtual_size
}
"
'}'
>
metadata.json
qemu-img convert
-f
raw
-O
qcow2
"
${
1
}
"
box.img
qemu-img convert
-c
-f
raw
-O
qcow2
"
${
1
}
"
box.img
rm
"
${
1
}
"
tar
-czf
"
${
2
}
"
Vagrantfile metadata.json box.img
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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