[gnome-build-meta/valentindavid/eos-installer: 4/15] Make bootable image resizable at first boot
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-build-meta/valentindavid/eos-installer: 4/15] Make bootable image resizable at first boot
- Date: Wed,  8 Apr 2020 14:11:35 +0000 (UTC)
commit 72c002196b798ac0b917271f617d351ab7d5f18a
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]