> > recipes intentionally don't require root privileges. That's a good
> > thing. In a past life (MeeGo?) I had package installs running as root
> > in a chroot mess up my bind-mounted /dev filesystem, affecting the host.
> > Luckily that never caused permanent damage.
> >
> > Some things that MIC does (loop-mounting the disk image to partition
> > and format it) require root privileges and thus cannot be done in recipes.
> 
> So how does yocto create images without mounting files via loopback?
wic uses uses mkfs.ext4 -d to convert directory into the image
Here is a quote from mkfs.ext4 man:
       -d root-directory
              Add the files from the root-directory to the filesystem.

You can find wic sources in openembedded tree  I believe.

Regards,
Ed
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to