diff options
Diffstat (limited to 'tools/qemu.html')
-rw-r--r-- | tools/qemu.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/tools/qemu.html b/tools/qemu.html index 04c367d..44f48ae 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -43,7 +43,7 @@ this describes how to create a qcow2 type;</p> <pre> - $ qemu-img create -f qcow2 crux-img.qcow2 15G + $ qemu-img create -f qcow2 crux-img.qcow2 20G </pre> <h3 id="mount">2.1. Mount images</h3> @@ -68,19 +68,15 @@ unit mib \ mkpart primary 2 4 \ name 1 grub \ - mkpart ESP fat32 4 128 \ + mkpart ESP fat32 4 132 \ name 2 efi \ - mkpart primary ext4 128 1128 \ + mkpart primary ext4 132 1132 \ name 3 boot \ - mkpart primary ext4 1128 12128 \ - name 4 root \ - mkpart primary ext4 12128 14128 \ - name 5 var \ - mkpart primary ext4 14128 100% \ - name 6 lvm \ + mkpart primary 1132 100% \ + name 4 lvm \ set 1 bios_grub on \ set 2 boot on \ - set 6 lvm on + set 4 lvm on </pre> <pre> @@ -90,11 +86,19 @@ <p>Use /dev/mapper/$(name_of_device) to assign correct blocks;</p> <pre> + pvcreate /dev/mapper/${DEV_NAME}p4 + vgcreate vg_system /dev/mapper/${DEV_NAME}p4 + lvcreate -L 15G -n lv_root vg_system + lvcreate -L 2G -n lv_var vg_system + lvcreate -l 100%FREE -n lv_home vg_system + </pre> + + <pre> mkfs.fat -F 32 /dev/mapper/${DEV_NAME}p2 mkfs.ext4 /dev/mapper/${DEV_NAME}p3 - mkfs.ext4 /dev/mapper/${DEV_NAME}p4 - mkfs.ext4 /dev/mapper/${DEV_NAME}p5 - pvcreate /dev/mapper/${DEV_NAME}p6 + mkfs.ext4 /dev/vg_system/lv_root + mkfs.ext4 /dev/vg_system/lv_var + mkfs.ext4 /dev/vg_system/lv_home </pre> <p>Read <a href="lvm.html">lvm</a> documentation on how to setup @@ -103,7 +107,7 @@ <p>Mount partition;</p> <pre> - mount /dev/mapper/${DEV_NAME}p4 $CHROOT + mount /dev/vg_system/ mkdir -p $CHROOT/proc mkdir -p $CHROOT/sys mkdir -p $CHROOT/dev |