pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
155 stars 24 forks source link

debian_add_swap not persisted across reboots #127

Closed trestletech closed 7 years ago

trestletech commented 7 years ago

It looks like debian_add_swap() doesn't do this so it works on the initial boot but is gone after reboot.

Running swapon /swapfile fixes things, but only until the machine shuts down again.

I believe that the swap entry needs to be added to /etc/fstab in order to survive a reboot.

sckott commented 7 years ago

thanks @trestletech

Is /etc/fstab a dir or file? So just create the swapfile, then add to a /etc/fstab?

trestletech commented 7 years ago

Yeah, it's a file. Looks like it's just a one line append to /etc/fstab. See "Make the Swap File Permanent" here: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

sckott commented 7 years ago

Ah, cool, thanks very much

sckott commented 7 years ago

@trestletech okay, fixed, let me know if that doesn't work