[gnome-build-meta/valentindavid/pinebook-pro: 4/5] Make bootable image resizable at first boot



commit 7aa0a2a3247e66ed5f9f24cb740f6fa74de51d79
Author: Valentin David <valentin david codethink co uk>
Date:   Wed Apr 8 10:17:07 2020 +0200

    Make bootable image resizable at first boot

 elements/vm/image.bst | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/elements/vm/image.bst b/elements/vm/image.bst
index 193988eb..732fbc13 100644
--- a/elements/vm/image.bst
+++ b/elements/vm/image.bst
@@ -98,18 +98,16 @@ config:
             partition-type-uuid = "%{linux-root}"
         }
     }
-    image disk.qcow2 {
-        qemu {
-        }
-        partition image {
-            image = "disk.img"
-        }
-    }
     EOF
 
   - |
     cd /genimage
     genimage --rootpath "%{sysroot}"
 
+  # FIXME: Propose support for part attrs in genimage project
+  - sfdisk --part-attrs /genimage/images/disk.img 2 55
+
   - |
-    install -Dm644 -t "%{install-root}" genimage/images/disk.qcow2
+    qemu-img convert -f raw -O qcow2 \
+        /genimage/images/disk.img \
+        "%{install-root}/disk.qcow2"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]