mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-08-06 13:34:22 -04:00
use rsync --preallocate for deployment
This commit is contained in:
parent
05bc9199b3
commit
7836022d46
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
shopt -s expand_aliases
|
||||||
|
|
||||||
. hosts.sh
|
. hosts.sh
|
||||||
|
|
||||||
|
@ -15,6 +16,8 @@ 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')
|
||||||
|
|
||||||
|
alias rsync='rsync --preallocate'
|
||||||
|
|
||||||
# check for Arch ISO
|
# check for Arch ISO
|
||||||
ssh $remote '[[ $(grep IMAGE_ID /etc/os-release) = "IMAGE_ID=archlinux" ]]' || exit 5
|
ssh $remote '[[ $(grep IMAGE_ID /etc/os-release) = "IMAGE_ID=archlinux" ]]' || exit 5
|
||||||
ssh $remote '[[ $(grep IMAGE_VERSION /etc/os-release) = "IMAGE_VERSION=2025.05.01" ]]' || exit 5
|
ssh $remote '[[ $(grep IMAGE_VERSION /etc/os-release) = "IMAGE_VERSION=2025.05.01" ]]' || exit 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue