Skip to content

Instantly share code, notes, and snippets.

@nsacerdote
Created April 1, 2019 10:17
Show Gist options
  • Save nsacerdote/8e2fae3e1dd936d6a6d6d906b92b7460 to your computer and use it in GitHub Desktop.
Save nsacerdote/8e2fae3e1dd936d6a6d6d906b92b7460 to your computer and use it in GitHub Desktop.
commands:
01_swapmem_step:
command: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
ignoreErrors: true
test: test ! -f .swapmem
02_swapmem_step:
command: sudo /sbin/mkswap /var/swap.1
ignoreErrors: true
test: test ! -f .swapmem
03_swapmem_step:
command: sudo chmod 600 /var/swap.1
ignoreErrors: true
test: test ! -f .swapmem
04_swapmem_step:
command: sudo /sbin/swapon /var/swap.1
ignoreErrors: true
test: test ! -f .swapmem
05_flag_swapmem:
command: touch .swapmem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment