Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian_add_swap not persisted across reboots #127

Closed
trestletech opened this issue Apr 22, 2017 · 4 comments
Closed

debian_add_swap not persisted across reboots #127

trestletech opened this issue Apr 22, 2017 · 4 comments
Labels
Milestone

Comments

@trestletech
Copy link

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
Copy link
Collaborator

sckott commented Apr 25, 2017

thanks @trestletech

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

@trestletech
Copy link
Author

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
Copy link
Collaborator

sckott commented Apr 26, 2017

Ah, cool, thanks very much

@sckott sckott closed this as completed in 38d24a6 May 6, 2017
@sckott
Copy link
Collaborator

sckott commented May 6, 2017

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

@sckott sckott modified the milestone: v0.6 May 7, 2017
@sckott sckott added the bug label Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants