Extend cloud-init-growpart element capabilities

Right now, growpart command inside block-device elements is applied only to sdX and vdX devices. We need to extend the detection for NVME disks.

growpart $(pvs | tail -n +2 | awk '{print $1}' | sed 's/\(\/dev\/[sv]d[a-z]\)\([0-9]\)/\1 \2/') will not work for NVMEs.

Edited May 15, 2024 by Bogdan Nicolae
Assignee Loading
Time tracking Loading