bin: automatically enable and disable swap for lineage buildscript

This commit is contained in:
Joel Beckmeyer 2024-03-11 09:30:43 -04:00
parent e6bd24164c
commit e3a3a491f5

View File

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
sudo swapon /dev/disk/by-partlabel/sata_ssd_swap
set -x set -x
podman pull lineageos4microg/docker-lineage-cicd:experimental podman pull lineageos4microg/docker-lineage-cicd:experimental
@ -21,3 +23,5 @@ podman run \
-v "$ANDROID_HOME/lineageos4microg/keys:/srv/keys" \ -v "$ANDROID_HOME/lineageos4microg/keys:/srv/keys" \
-v "$ANDROID_HOME/lineageos4microg/manifests:/srv/local_manifests" \ -v "$ANDROID_HOME/lineageos4microg/manifests:/srv/local_manifests" \
lineageos4microg/docker-lineage-cicd:experimental lineageos4microg/docker-lineage-cicd:experimental
sudo swapoff /dev/disk/by-partlabel/sata_ssd_swap