Let’s suppose I want to add some swap space to my Ubuntu Core device. Don’t tell me not to please
I make a file as /writable/swapfile (is this location okay?)
I mkswap /writable/swapfile and after swapon /writable/swapfile I now have swap and all is good.
To make the change permanent I would normally ninja a line in /etc/fstab to ensure my swap file is added on boot. However the /etc/fstab on core has a big warning:-
# Auto-generated by /init
# DO NOT EDIT THIS FILE BY HAND - YOUR CHANGES WILL BE OVERWRITTEN
# (See writable-paths(5) for details)
Ah, okay. Well, it says I need to “See writable-paths(5) for details”, so lets do that.
popey@localhost:~$ man writable-paths.5
man: command not found
set up autologin ( /etc/systemd/system/getty@tty1.service.d/autologin.conf ) and have ~/.profile run your stuff if $(tty) = /dev/tty1 (that’s what I do at the moment)
Looks like comment #11 from @ogra suggests I can edit /etc/default/swapfile to get one easily? That file has “SIZE=0” on mine, perhaps I should just set it and reboot to see what happens