[OE-core] Create btrfs subvolume during image building

Sander van Grieken sander at outrightsolutions.nl
Tue Jul 2 12:19:25 UTC 2013


On Tuesday, July 2, 2013 14:04 CEST, Yevhen Kyriukha <kirgene at gmail.com> wrote: 
 
> Hi!
> 
> I'd like to create image with btrfs rootfs partition.
> I want to store all files on separate subvolume on btrfs partition.
> For this purpose I'm creating *.bbclass that simply extends IMAGE_CMD.
> 
> The problem is that to create btrfs subvolume I need to mount it first, but
> only root can execute "mount".
> 
> Are there any ways to accomplish this?
> 
> Best regards,
> Yevhen
 
You can mark /dev/loop0 in /etc/fstab as user mountable, and use that in your IMAGE_CMD

Regards,
Sander




More information about the Openembedded-core mailing list