Commit dea3962
committed
guestfs: fix custom image partition not expanded after disk resize
The commit e46bf3c ("guestfs: add unified LIBVIRT_IMAGE_SIZE
configuration") added disk resizing for custom images but only resized
the disk image file, not the partition inside. This resulted in VMs
having a 20GB disk but only a 2.9GB root filesystem partition, causing
out-of-space errors during kernel installation.
Add virt-resize step after qemu-img resize to expand the root partition
(/dev/sda1) to use the full disk space. This ensures VMs get the full
20GB root filesystem as intended.
Without this fix, VMs show:
/dev/vda1 2.8G (despite 20GB disk)
With this fix, VMs will have:
/dev/vda1 20G (using full disk)
Fixes: e46bf3c ("guestfs: add unified LIBVIRT_IMAGE_SIZE configuration")
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent d908dbd commit dea3962
1 file changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
57 | 86 | | |
58 | 87 | | |
59 | 88 | | |
| |||
0 commit comments