mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 13:45:02 -05:00
deploy-initial: fix obtaining swap size
This commit is contained in:
parent
fed4e23007
commit
3c8a2b7ac2
@ -10,7 +10,7 @@ readonly host=$1
|
|||||||
readonly ip=${hosts_ipv4_address[$host]}
|
readonly ip=${hosts_ipv4_address[$host]}
|
||||||
readonly hostname=${hosts_hostname[$host]}
|
readonly hostname=${hosts_hostname[$host]}
|
||||||
readonly agcount=${hosts_agcount[$host]:-4}
|
readonly agcount=${hosts_agcount[$host]:-4}
|
||||||
readonly swap=${hosts_agcount[$host]:-2048}
|
readonly swap=${hosts_swap[$host]:-2048}
|
||||||
readonly remote=root@$ip
|
readonly remote=root@$ip
|
||||||
|
|
||||||
readonly drive=$(ssh $remote '[[ -e /dev/sda ]] && echo sda || echo vda')
|
readonly drive=$(ssh $remote '[[ -e /dev/sda ]] && echo sda || echo vda')
|
||||||
|
Loading…
Reference in New Issue
Block a user