mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Add swap to /mnt (#965)
This commit is contained in:
@@ -6,6 +6,11 @@ echo ImageOS=$IMAGE_OS | tee -a /etc/environment
|
|||||||
mkdir -p /etc/skel/.config/configstore
|
mkdir -p /etc/skel/.config/configstore
|
||||||
echo 'export XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/skel/.bashrc
|
echo 'export XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/skel/.bashrc
|
||||||
|
|
||||||
|
# Change waagent entries to use /mnt for swapfile
|
||||||
|
sed -i 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' /etc/waagent.conf
|
||||||
|
sed -i 's/ResourceDisk.EnableSwap=n/ResourceDisk.EnableSwap=y/g' /etc/waagent.conf
|
||||||
|
sed -i 's/ResourceDisk.SwapSizeMB=0/ResourceDisk.SwapSizeMB=4096/g' /etc/waagent.conf
|
||||||
|
|
||||||
# Prepare directory and env variable for toolcache
|
# Prepare directory and env variable for toolcache
|
||||||
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
|
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
|
||||||
mkdir $AGENT_TOOLSDIRECTORY
|
mkdir $AGENT_TOOLSDIRECTORY
|
||||||
|
|||||||
Reference in New Issue
Block a user