Skip to content

Commit c865dde

Browse files
authored
Create /mnt/ folder in case it is missing in CI runners (#60055)
Sometimes we get a worker that does not have /mnt filesystem mounted. In this case we will attempt to use the same approach as with other jobs - we will just create empty /mnt folder and hope the disk space will be enough to run the job we want to run
1 parent 8e2f3af commit c865dde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/ci/make_mnt_writeable.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ function make_mnt_writeable {
2222
sudo blkid
2323
echo "Check that we have expected /mnt to be a separate mount"
2424
if ! lsblk | grep -q /mnt; then
25-
echo "/mnt is missing as a separate mount, runner misconfigured!"
26-
exit 42
25+
echo "!!!! /mnt is missing as a separate mount, runner misconfigured!"
26+
echo "Creating /mnt drive hoping that it will be enough space to use in /"
27+
sudo mkdir -p /mnt/
2728
fi
2829
echo "Checking free space!"
2930
df -H

0 commit comments

Comments
 (0)