git.annexia.org
/
supernested.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compress the qcow2 file.
[supernested.git]
/
build-supernested.sh.in
diff --git
a/build-supernested.sh.in
b/build-supernested.sh.in
index
7f7f71d
..
e5e2a49
100644
(file)
--- a/
build-supernested.sh.in
+++ b/
build-supernested.sh.in
@@
-40,7
+40,7
@@
if [[ "$distro" =~ ^fedora- ]]; then
grep
qemu
qemu-kvm-rhev
grep
qemu
qemu-kvm-rhev
- systemd
+ systemd
-udev
util-linux
"
elif [[ "$distro" =~ ^debian- ]]; then
util-linux
"
elif [[ "$distro" =~ ^debian- ]]; then
@@
-70,8
+70,6
@@
cp excludefiles tmp-supermin.d/
# Run the build step.
echo "Building the full appliance ..."
# Run the build step.
echo "Building the full appliance ..."
-echo "If you see 'Permission denied' errors here, you can probably ignore"
-echo "them, but encourage your distro to stop using security-through-obscurity."
"$supermin" --build --format ext2 tmp-supermin.d -o tmp-appliance.d
# Add the kernel and initrd to the image.
"$supermin" --build --format ext2 tmp-supermin.d -o tmp-appliance.d
# Add the kernel and initrd to the image.
@@
-90,6
+88,6
@@
EOF
# Copy out the kernel, initrd and disk image.
mv tmp-appliance.d/kernel .
mv tmp-appliance.d/initrd .
# Copy out the kernel, initrd and disk image.
mv tmp-appliance.d/kernel .
mv tmp-appliance.d/initrd .
-qemu-img convert -f raw tmp-appliance.d/root -O qcow2 "$output"
+qemu-img convert -f raw tmp-appliance.d/root -O qcow2
-c
"$output"
#rm -rf tmp-supermin.d tmp-appliance.d
#rm -rf tmp-supermin.d tmp-appliance.d