<div dir="ltr">Hi All,<div><br></div><div>I am trying to figure out a way to produce a uSD card image file during my build process and do it as a non-root user.  I am hoping to do this from a post image script.</div><div><br>
</div><div>I can create the image file with dd and partition it with parted as a non-root user.  However, I have not figured out how to format, and populate the image file.  Tools such as kpartx and losetup seem ideal for this purpose except that they must be run as root.</div>
<div><br></div><div>Does anyone know of a way to do this using qemu or fuse or related tools?</div><div><br></div><div>Thanks,</div><div><br></div><div>Dallas</div></div>