All of lore.kernel.org
 help / color / mirror / Atom feed
* Can wic split rootfs files across partitions?
@ 2016-03-30 18:48 Karl Voelker
  2016-03-31  9:40 ` Jens Rehsack
  2016-04-01  6:19 ` Ed Bartosh
  0 siblings, 2 replies; 3+ messages in thread
From: Karl Voelker @ 2016-03-30 18:48 UTC (permalink / raw)
  To: yocto

I am trying to build a multi-partition image with wic, with separate
partitions for / and /var. So, the / partition should get all the files
except those under /var, and the /var partition should get the files
under /var.

I thought this was possible because of the suggestion in the docs that
the mntpoint arg of a "part" command could be /usr or /home (see
http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#command-part-or-partition).

However, after trying a few different things in my wks file, and looking
through a lot of the wic source code, I am starting to wonder if this
kind of thing is not actually supported. If it is supported, is there an
example somewhere? None of the examples in scripts/lib/wic/canned-wks
appear to cover this situation.

Thanks,

Karl Voelker


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

* Re: Can wic split rootfs files across partitions?
  2016-03-30 18:48 Can wic split rootfs files across partitions? Karl Voelker
@ 2016-03-31  9:40 ` Jens Rehsack
  2016-04-01  6:19 ` Ed Bartosh
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Rehsack @ 2016-03-31  9:40 UTC (permalink / raw)
  To: Karl Voelker; +Cc: yocto

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


> Am 30.03.2016 um 20:48 schrieb Karl Voelker <karl@karlv.net>:
> 
> I am trying to build a multi-partition image with wic, with separate
> partitions for / and /var. So, the / partition should get all the files
> except those under /var, and the /var partition should get the files
> under /var.
> 
> I thought this was possible because of the suggestion in the docs that
> the mntpoint arg of a "part" command could be /usr or /home (see
> http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#command-part-or-partition).
> 
> However, after trying a few different things in my wks file, and looking
> through a lot of the wic source code, I am starting to wonder if this
> kind of thing is not actually supported. If it is supported, is there an
> example somewhere? None of the examples in scripts/lib/wic/canned-wks
> appear to cover this situation.

We didn't figure out how it can easily be done and use a mix of volatile
and overlayfs settings to have /etc and /var separated from readonly /.

Cheers
--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 859 bytes --]

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

* Re: Can wic split rootfs files across partitions?
  2016-03-30 18:48 Can wic split rootfs files across partitions? Karl Voelker
  2016-03-31  9:40 ` Jens Rehsack
@ 2016-04-01  6:19 ` Ed Bartosh
  1 sibling, 0 replies; 3+ messages in thread
From: Ed Bartosh @ 2016-04-01  6:19 UTC (permalink / raw)
  To: Karl Voelker; +Cc: yocto

On Wed, Mar 30, 2016 at 11:48:21AM -0700, Karl Voelker wrote:
> I am trying to build a multi-partition image with wic, with separate
> partitions for / and /var. So, the / partition should get all the files
> except those under /var, and the /var partition should get the files
> under /var.
> 
> I thought this was possible because of the suggestion in the docs that
> the mntpoint arg of a "part" command could be /usr or /home (see
> http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#command-part-or-partition).
>
> However, after trying a few different things in my wks file, and looking
> through a lot of the wic source code, I am starting to wonder if this
> kind of thing is not actually supported. If it is supported, is there an
> example somewhere? None of the examples in scripts/lib/wic/canned-wks
> appear to cover this situation.
> 

I'm afraid it's not possible. Wic takes rootfs directories and puts them
to partitions. It doesn't split subdirectories to different partitions
and in my opinion it shouldn't. It's a job of build recipe to prepare
rootfs directories.

Regarding documentation. /usr and /home are mentioned there just as
examples of mount points. If you have rootfs directory to put into /usr
you can put /usr to .wks file and wic will put content of your rootfs
into separate partition and add one line to fstab to mount it to /usr.

I think it's possible to write source plugin to take subdirectory
instead of whole rootfs directory and put it into partition, but I'd
not suggest this. It's much more simpler to create or modify build
recipes to prepare one rootfs directory per partition.

--
Regards,
Ed


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

end of thread, other threads:[~2016-04-01  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 18:48 Can wic split rootfs files across partitions? Karl Voelker
2016-03-31  9:40 ` Jens Rehsack
2016-04-01  6:19 ` Ed Bartosh

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.