Backend: Make sure no temporally dirs are mounted from previous runs
This commit is contained in:
parent
e16f53af93
commit
e8141aff1c
36
.github/workflows/build-beta-images.yml
vendored
36
.github/workflows/build-beta-images.yml
vendored
@ -63,6 +63,18 @@ jobs:
|
||||
|
||||
cd build
|
||||
|
||||
# make sure no temporally dirs are mounted from previous runs
|
||||
while :
|
||||
do
|
||||
sudo pkill compile.sh
|
||||
sudo pkill arm-binfmt-P
|
||||
sudo pkill aarch64-binfmt-P
|
||||
[[ "$(df | grep '.tmp' | wc -l)" -eq 0 ]] && rm -rf .tmp && break
|
||||
echo "Mounted temp directories. Trying to unmount."
|
||||
df | grep ".tmp" | awk '{print $6}' | xargs sudo umount 2>/dev/null
|
||||
sleep 10
|
||||
done
|
||||
|
||||
# use prepared configs
|
||||
sudo cp ../scripts/configs/* userpatches/
|
||||
|
||||
@ -152,6 +164,18 @@ jobs:
|
||||
|
||||
cd build
|
||||
|
||||
# make sure no temporally dirs are mounted from previous runs
|
||||
while :
|
||||
do
|
||||
sudo pkill compile.sh
|
||||
sudo pkill arm-binfmt-P
|
||||
sudo pkill aarch64-binfmt-P
|
||||
[[ "$(df | grep '.tmp' | wc -l)" -eq 0 ]] && rm -rf .tmp && break
|
||||
echo "Mounted temp directories. Trying to unmount."
|
||||
df | grep ".tmp" | awk '{print $6}' | xargs sudo umount 2>/dev/null
|
||||
sleep 10
|
||||
done
|
||||
|
||||
# use prepared configs
|
||||
sudo cp ../scripts/configs/* userpatches/
|
||||
|
||||
@ -241,6 +265,18 @@ jobs:
|
||||
|
||||
cd build
|
||||
|
||||
# make sure no temporally dirs are mounted from previous runs
|
||||
while :
|
||||
do
|
||||
sudo pkill compile.sh
|
||||
sudo pkill arm-binfmt-P
|
||||
sudo pkill aarch64-binfmt-P
|
||||
[[ "$(df | grep '.tmp' | wc -l)" -eq 0 ]] && rm -rf .tmp && break
|
||||
echo "Mounted temp directories. Trying to unmount."
|
||||
df | grep ".tmp" | awk '{print $6}' | xargs sudo umount 2>/dev/null
|
||||
sleep 10
|
||||
done
|
||||
|
||||
# use prepared configs
|
||||
sudo cp ../scripts/configs/* userpatches/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user