On Mon, 22 Mar 2010 18:40:52 +0000, "Richard W.M. Jones" <rjones@redhat.com> wrote:
This program is now working and ready for testing.
Rich.
Test builds here (thanks Richard): http://koji.fedoraproject.org/koji/taskinfo?taskID=2070438 Did some quick testing and found two small issues: - The bootable flag is not copied to the new image - The first partition starts at sector 64, while the source image starts at 63. (Not really an issue, though) Other than that, it works :) $ virt-resize --resize /dev/sda1=100% fedora-12-kvm.img out.img Summary of changes: /dev/sda1: partition will be left alone There is a surplus of 853037568 bytes (813.5M). An extra partition will be created for the surplus. Copying /dev/sda1 ...done $ sfdisk -d fedora-12-kvm.img out.img # partition table of fedora-12-kvm.img unit: sectors fedora-12-kvm.img1 : start= 63, size= 4192902, Id=83, bootable fedora-12-kvm.img2 : start= 0, size= 0, Id= 0 fedora-12-kvm.img3 : start= 0, size= 0, Id= 0 fedora-12-kvm.img4 : start= 0, size= 0, Id= 0 # partition table of out.img unit: sectors out.img1 : start= 64, size= 4192902, Id=83 out.img2 : start= 4193024, size= 1666287, Id=83 out.img3 : start= 0, size= 0, Id= 0 out.img4 : start= 0, size= 0, Id= 0 -- Dennis Krul Tilaa e: dennis@tilaa.nl w: http://www.tilaa.nl