I remember incus storage volume attach gained a –create flag recently, and it’s in 7.0.1.
I’m trying to find the one-line equivalent of the following:
incus storage volume create default vmhost0-sdb --type block size=10GiB
incus storage volume attach default vmhost0-sdb vmhost0 sdb
However I’ve not been able to do this with --create:
$ incus storage volume attach default vmhost0-sdc vmhost0 sdc --create --type block size=10GiB
Error: unknown flag: --type
Is the --create option limited to container filesystem volumes?