mirror of
https://git.56k.es/fanta/q.git
synced 2024-05-29 10:43:32 +02:00
grow root partition and resize
This commit is contained in:
parent
2e9ea9761e
commit
b2ebd3d2cb
2
q.py
2
q.py
|
@ -61,6 +61,8 @@ def createVms():
|
|||
os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --root-password password:"+vmPasswd)
|
||||
os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --hostname "+vmName)
|
||||
os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --install dropbear")
|
||||
os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --firstboot-command 'growpart /dev/sda 1'")
|
||||
os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --firstboot-command 'resize2fs /dev/sda1'")
|
||||
choice()
|
||||
|
||||
def runVms():
|
||||
|
|
Loading…
Reference in New Issue
Block a user