Browse Source

remove qcow2 images

Steven Jacobs 1 year ago
parent
commit
f84ac84ee8

+ 2 - 3
nixos/nixos-17.09-x86_64.json

@@ -10,7 +10,7 @@
       "boot_wait": "5s",
       "disk_interface": "virtio-scsi",
       "disk_size": 5000,
-      "format": "qcow2",
+      "format": "raw",
       "headless": true,
       "iso_checksum": "{{user `iso_checksum`}}",
       "iso_checksum_type": "{{user `iso_checksum_type`}}",
@@ -52,8 +52,7 @@
   "post-processors": [
     {
       "inline": [
-        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2",
-        "qemu-img convert -O raw ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2 ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
+        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo e2fsck -fy ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo resize2fs -M ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "gzip -c ../dist/{{user `template`}}-qemu/{{user `template`}}.raw > ../dist/{{user `template`}}-qemu/{{user `template`}}.gz"

+ 2 - 3
void/void-20171007-x86_64-musl.json

@@ -11,7 +11,7 @@
       "boot_wait": "5s",
       "disk_interface": "virtio-scsi",
       "disk_size": 5000,
-      "format": "qcow2",
+      "format": "raw",
       "headless": true,
       "iso_checksum": "{{user `iso_checksum`}}",
       "iso_checksum_type": "sha256",
@@ -54,8 +54,7 @@
   "post-processors": [
     {
       "inline": [
-        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2",
-        "qemu-img convert -O raw ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2 ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
+        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo e2fsck -fy ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo resize2fs -M ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "gzip -c ../dist/{{user `template`}}-qemu/{{user `template`}}.raw > ../dist/{{user `template`}}-qemu/{{user `template`}}.gz"

+ 2 - 3
void/void-20171007-x86_64.json

@@ -11,7 +11,7 @@
       "boot_wait": "5s",
       "disk_interface": "virtio-scsi",
       "disk_size": 5000,
-      "format": "qcow2",
+      "format": "raw",
       "headless": true,
       "iso_checksum": "{{user `iso_checksum`}}",
       "iso_checksum_type": "sha256",
@@ -55,8 +55,7 @@
   "post-processors": [
     {
       "inline": [
-        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2",
-        "qemu-img convert -O raw ../dist/{{user `template`}}-qemu/{{user `template`}}.qcow2 ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
+        "mv ../dist/{{user `template`}}-qemu/{{user `template`}} ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo e2fsck -fy ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "sudo resize2fs -M ../dist/{{user `template`}}-qemu/{{user `template`}}.raw",
         "gzip -c ../dist/{{user `template`}}-qemu/{{user `template`}}.raw > ../dist/{{user `template`}}-qemu/{{user `template`}}.gz"