about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/qemu.html26
1 files changed, 20 insertions, 6 deletions
diff --git a/tools/qemu.html b/tools/qemu.html
index 8c53ce7..272a26b 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -63,24 +63,38 @@
         to use parted to create a gpt system table;</p>
 
         <pre>
-        # parted /dev/nbd0
-        (parted) mklabel gpt
-        (parted) mkpart ext4 0% 100%
-        (parted) set 1 boot on
+        # parted --script $DEV \
+            mklabel gpt \
+            mkpart ESP fat32 1MiB 120MiB \
+            mkpart primary ext4 120MiB 720MiB \
+            mkpart primary ext4 720MiB 2720MiB \
+            mkpart primary ext4 2720MiB 5000MiB \
+            set 1 boot on
         </pre>
 
         <pre>
         # kpartx -a -s -l -u /dev/nbd0
         </pre>
 
+        <p>Use /dev/mapper/$(name_of_device) to assign correct blocks;</p>
+
         <pre>
-        # mkfs.ext4 /dev/mapper/nbd0p1
+        # mkfs.fat -F 32 $BLK_EFI
+        # mkfs.ext4 $BLK_BOOT
+        # mkfs.ext4 $BLK_ROOT
+        # mkfs.ext4 $BLK_VAR
         </pre>
 
         <p>Mount partition;</p>
 
         <pre>
-        # mount /dev/mapper/nbd0p1
+        # mount $BLK_ROOT $CHROOT
+        # mkdir -p $CHROOT/boot
+        # mount $BLK_BOOT $CHROOT/boot
+        # mkdir -p $CHROOT/boot/efi
+        # mount $BLK_EFI $CHROOT/boot/efi
+        # mkdir -p $CHROOT/var
+        # mount $BLK_VAR $CHROOT/var
         </pre>
 
         <h2 id="net">2. Network</h2>