

Silakan diubah pada bagian password sesuai dengan keinginan. Zcat /mnt/chr-extended.gz | pv > /dev/vda & \Įcho "Don't forget your password: $PASSWORD" & \

Pv /dev/nbd0 | gzip > /mnt/chr-extended.gz & \Įcho "Writing raw image, this will take time" & \

You can check it with fdisk before appliyng this" & \Įcho "This scary sequence removes seconds partition on nbd0 and creates new, but bigger one" & \Įcho -e 'd\n2\nn\np\n2\n65537\n\nw\n' | fdisk /dev/nbd0 & \Įcho "Compressing to gzip, this can take several minutes" & \ GATEWAY=`ip route list | grep default | cut -d' ' -f 3` & \Įcho "/ip address add address=$ADDRESS interface=Įcho "Magic constant is 65537 (second partition address). Qemu-img resize chr.qcow2 1073741824 & \Įcho "Give some time for qemu-nbd to be ready" & \ĪDDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` & \ Qemu-img convert chr.img -O qcow2 chr.qcow2 & \
