diff options
Diffstat (limited to 'scripts')
-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 |