Skip to content

Commit bf68d8a

Browse files
Merge pull request #117 from GuentherJulian/feature/increaseSwapSize
feature/increaseSwapSize
2 parents ab8b7c6 + b1838e6 commit bf68d8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

runners/katacoda/templates/scripts/intro_background.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ while [ "$i" -le $STEPS ]; do
2323
i=$(( i + 1 ))
2424
done
2525

26+
#increase swap size by 4 GB by adding a new swap file
27+
mkdir /root/dev
28+
fallocate -l 4G /root/dev/md-0
29+
chmod 600 /root/dev/md-0
30+
mkswap /root/dev/md-0
31+
swapon /root/dev/md-0
32+
2633
#write 'Finished' in status file
2734
#the setup script checks the status file for this string
2835
echo "Finished" > $STATUS_FILE

0 commit comments

Comments
 (0)