All of lore.kernel.org
 help / color / mirror / Atom feed
* Building XFS images
@ 2020-04-21 13:43 Drew Moseley
  2020-04-21 15:55 ` [yocto] " Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Moseley @ 2020-04-21 13:43 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

I'm attempting to add image type support for XFS images.  The utils are
in meta-filesystems and seem to work just fine.  However, mkfs.xfs does
not have the ability to add files into an image as it is created, which
the other mkfs.* utilities do.  Outside of bitbake builds, I can
obviously just loopback mount and copy using sudo to ensure ownership,
etc is preserved.  It doesn't look like pseudo/fakeroot support mounting
images and the copying with ownership.  Is there a mechanism to do this?


Drew



[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 2505 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] Building XFS images
  2020-04-21 13:43 Building XFS images Drew Moseley
@ 2020-04-21 15:55 ` Ross Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2020-04-21 15:55 UTC (permalink / raw)
  To: drew.moseley; +Cc: yocto

On Tue, 21 Apr 2020 at 14:43, Drew Moseley via lists.yoctoproject.org
<drew.moseley=northern.tech@lists.yoctoproject.org> wrote:
> I'm attempting to add image type support for XFS images.  The utils are
> in meta-filesystems and seem to work just fine.  However, mkfs.xfs does
> not have the ability to add files into an image as it is created, which
> the other mkfs.* utilities do.  Outside of bitbake builds, I can
> obviously just loopback mount and copy using sudo to ensure ownership,
> etc is preserved.  It doesn't look like pseudo/fakeroot support mounting
> images and the copying with ownership.  Is there a mechanism to do this?

Right, to loopback mount you need to be root, and there's only so much
magic pseudo can do.  Even if you could loopback mount as a user,
you'd not have permission to write the correct ownership.

mkfs.xfs either needs a way to create a file system from a directory,
or an offline way to edit the filesystem.

Ross

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-21 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 13:43 Building XFS images Drew Moseley
2020-04-21 15:55 ` [yocto] " Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.