From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: Karl Voelker <karl@karlv.net>
Cc: yocto@yoctoproject.org
Subject: Re: Can wic split rootfs files across partitions?
Date: Fri, 1 Apr 2016 09:19:30 +0300 [thread overview]
Message-ID: <20160401061930.GA12298@linux.intel.com> (raw)
In-Reply-To: <1459363701.3311990.563914570.78E2C83E@webmail.messagingengine.com>
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
prev parent reply other threads:[~2016-04-01 8:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160401061930.GA12298@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=karl@karlv.net \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.