storage
storage copied to clipboard
Would like to add primary partition support
Hello, I would like to extend the storage role so it could create primary partitions on a disk. As blivet is being used by anaconda it is not clear to me why this is not already possible. Could somebody explain to me why this is not possible? Or better yet, explain to me how this actually already is possible! ;)
Pointers on where I would need to modify what in the storage r /ole would also be greatly appreciated.
Thanks!
Regards, Geert
Ps. I know the parted module, but blivet VS parted is an easy win for blivet to my opinion.
@vojtechtrefny @japokorn any ideas?
The role can currently create a single partition on the entire disk, see https://github.com/linux-system-roles/storage/issues/120 I think the main reason for this is we originally focused on the higher level storage (LVM, RAID...) and ignored everything "below" and nobody really asked for support for managing partitions (until now).
You can create "partition volume" with something like this
roles:
- name: linux-system-roles.storage
storage_pools:
- name: vda
type: partition
disks: vda
volumes:
- name: vda1
type: partition
fs_type: ext4
but BlivetPartitionVolume
currently ignores the size passed to the volume and just creates the partition on the entire disk. So this is one thing that needs to be change, we also don't support any "advanced" options for partitions like creating extended partitions on MBR or resizing partitions etc.
But partitioning support is definitely something that can be added, as you said blivet can do it.