Is there any way to mount a ramdisk for my snappy app?

Jamie Strandboge jamie at canonical.com
Mon Dec 21 14:10:09 UTC 2015


On 12/20/2015 10:47 PM, XiaoGuo Liu wrote:
> Hi,
> 
> The IO operation is slow for disks. I want to mount a ramdisk for my snappy app?
> Is there anyway to do it? Currently, in my script, I do it like:
> 
> #!/bin/sh
> set -e
> 
> echo "Going to create a ramdisk directory"
> mkdir -p ramdisk
> mount -t tmpfs none ./ramdisk -o size=10m
> 
> 
> When it is executed, I get an error for the above command.
> 

Mount is not allowed by the security policy. The security policy does allow for
using an app-specific directory in /run/shm, but there is a bug in snappy where
the directory is not first created by the launcher:

https://bugs.launchpad.net/ubuntu-core-launcher/+bug/1511762

I suggest commenting in the bug.


-- 
Jamie Strandboge                 http://www.ubuntu.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20151221/d4fb235b/attachment.pgp>


More information about the snappy-app-devel mailing list