Support swap
Bug #1560942 reported by
Kyle Fazzari
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
High
|
Unassigned | ||
snapd |
Invalid
|
Undecided
|
Unassigned | ||
ubuntu-core-config (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Enabling swap in Snappy is currently not possible. This is something that should be controlled by the gadget snap working with the OS snap, perhaps implemented as a swapfile on the writable partition.
For implementers: consider fallocate for swapfile creation-- it's much faster than dd.
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapd: | |
status: | New → Invalid |
Changed in snappy: | |
status: | Triaged → Fix Committed |
Changed in snappy: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The obvious manual workaround for the moment:
do something like this once:
sudo fallocate -l 4G /var/tmp/swapfile
then do something this after each boot:
sudo swapon /var/tmp/swapfile
'free' then shows the desired amount of swap.