diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-05 19:48:27 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-05 19:48:27 -0700 |
commit | cd01485ec126c103fa9ab718685d184b70d0e1ff (patch) | |
tree | 0c003455bf0795a04e4fb198d2e85e2c7b63ffb3 /scripts/main.sh | |
parent | f416f777b2c2cac095e851e6799020f91e34aed1 (diff) | |
parent | 3b385f26973e45b4c2e2f3ebf9d52ab0131cff5e (diff) |
Merge branch 'lukeshu/rebuild-nodes-take4'
Diffstat (limited to 'scripts/main.sh')
-rwxr-xr-x | scripts/main.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/main.sh b/scripts/main.sh index 160aa42..d89f387 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -17,6 +17,8 @@ CGO_ENABLED=0 go build -trimpath ./cmd/btrfs-rec mkdir -p "$b.gen" { set +x; } &>/dev/null +export GOMEMLIMIT="$(awk '/^MemTotal:/{ print $2 "KiB" }' </proc/meminfo)" + gen $b.gen/0.scandevices.json \ ./btrfs-rec --pv=$b.img \ inspect scandevices |