Hi,
I'm trying to make a shell function get_iso_paths()
which would return every path to every storage id of type dir which has content type iso
I found that I can get the storage id of type dir with content type iso with
Example
So function
output
However I want the path for each folder that contains those iso
Is there a standard way to get "path of a dir type storage id" ?
Other than parsing /etc/pve/storage.cfg ?
I'm trying to make a shell function get_iso_paths()
which would return every path to every storage id of type dir which has content type iso
I found that I can get the storage id of type dir with content type iso with
Code:
pvesm status --content iso
Example
Code:
root@proxmox:~# pvesm status --content iso
Name Type Status Total Used Available %
lvm-iso dir active 205314024 198659016 0 96.76%
root@proxmox:~#
So function
Code:
get_storage_id_dir_with_iso() { pvesm status --content iso | awk '$2 == "dir" {print $1}'; }
output
Code:
root@proxmox:~# get_storage_id_dir_with_iso
lvm-iso
root@proxmox:~#
However I want the path for each folder that contains those iso
Is there a standard way to get "path of a dir type storage id" ?
Other than parsing /etc/pve/storage.cfg ?