Try to guess the VG name

This commit is contained in:
Jeremy Gardais 2020-10-19 18:25:36 +02:00
parent 2596c370a3
commit 97c530fc70
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

4
debian/chroot.mount vendored
View File

@ -11,8 +11,8 @@ fi
## If empty, the script will try to get one with nslookup ## If empty, the script will try to get one with nslookup
new_hostname="" new_hostname=""
## Volume Group name to use for LVM ## Try to guess the VG name by using the last VG detected
vgname="${new_hostname}vg" vgname=$(vgdisplay --short | tail -n 1 | sed 's/.*"\(.*\)" .*/\1/')
## If the script should create extra volume (eg. backup, virt, Proxmox,…) ## If the script should create extra volume (eg. backup, virt, Proxmox,…)
manage_extra_lv=0 manage_extra_lv=0
## Colors definition {{{ ## Colors definition {{{