How to resize partitions on startup with systemd-repart
?
#2654
-
I want to create an virtual machine image for QEMU/KVM with a at least 100 GB root partition:
(These are the default files.) Adding systemd-repart to the package list, and building the image
I convert it to qcow2, and resize it by adding 100 GB:
Booting the image with QEMU and passing the Linux kernel directly
the root partition was not expanded:
For some reason,
The files from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@paulmenzel The files from mkosi.repart apply when mkosi builds the image. They do not become part of the image. You need to ship separate repart definition files in the image itself to have systemd-repart grow the partitions on first boot. |
Beta Was this translation helpful? Give feedback.
@paulmenzel The files from mkosi.repart apply when mkosi builds the image. They do not become part of the image. You need to ship separate repart definition files in the image itself to have systemd-repart grow the partitions on first boot.