From e3a3a491f5420ffb646134c287a00aeefd1aea3a Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 11 Mar 2024 09:30:43 -0400 Subject: [PATCH] bin: automatically enable and disable swap for lineage buildscript --- dot_local/bin/executable_lineageos4microg_build_redfin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_local/bin/executable_lineageos4microg_build_redfin b/dot_local/bin/executable_lineageos4microg_build_redfin index cbadca9..0e46202 100644 --- a/dot_local/bin/executable_lineageos4microg_build_redfin +++ b/dot_local/bin/executable_lineageos4microg_build_redfin @@ -1,5 +1,7 @@ #!/bin/sh +sudo swapon /dev/disk/by-partlabel/sata_ssd_swap + set -x podman pull lineageos4microg/docker-lineage-cicd:experimental @@ -21,3 +23,5 @@ podman run \ -v "$ANDROID_HOME/lineageos4microg/keys:/srv/keys" \ -v "$ANDROID_HOME/lineageos4microg/manifests:/srv/local_manifests" \ lineageos4microg/docker-lineage-cicd:experimental + +sudo swapoff /dev/disk/by-partlabel/sata_ssd_swap