diff --git a/images/ubuntu/scripts/build/configure-environment-azure-arm.sh b/images/ubuntu/scripts/build/configure-environment-azure-arm.sh index 5f8088ba0de6..c3eb78085f29 100644 --- a/images/ubuntu/scripts/build/configure-environment-azure-arm.sh +++ b/images/ubuntu/scripts/build/configure-environment-azure-arm.sh @@ -5,6 +5,6 @@ ################################################################################ # 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 +sed -i -e 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' \ + -e 's/ResourceDisk.EnableSwap=n/ResourceDisk.EnableSwap=y/g' \ + -e 's/ResourceDisk.SwapSizeMB=0/ResourceDisk.SwapSizeMB=4096/g' /etc/waagent.conf