Snappy Swap
Oliver Grawert
ogra at ubuntu.com
Wed Mar 23 20:52:09 UTC 2016
hi,
Am Mittwoch, den 23.03.2016, 06:35 -0400 schrieb Kyle Fazzari:
> Hey all,
>
> I was asked the other day about enabling swap in Snappy Ubuntu Core,
> and
> it seems it's currently not possible. Admittedly not something that's
> probably desirable by default (e.g. with just an SD card), but one
> can
> still put the writable partition on an external HD, and one can put a
> swap partition there too. There's just no way to make Ubuntu Core use
> it.
>
> Is that something that should be supported?
sorry for the late reply :)
as i said on IRC this morning, i could imagine us to simply have a
kernel cmdline option with the respective initrd scripts to either use
an exiting swap partition (and inject it into fstab during its
generation by the initrd) or to define a system wide swapfile (and
size) that gets dynamically used...
both (file support as well as partition support) should be relatively
straight forward to implement this way and could be easily configured
through cmdline-options/bootloader-variables in the gadget snap then
...
i guess the idea to use a swapfile from an application snap wont really
fly since your snap would need the power to call swapon/swapoff on
system level (would we want to allow that to an app snap ?)
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160323/1b35e41a/attachment.pgp>
More information about the snappy-devel
mailing list