From: Claudius Heine <claudius.heine.ext@siemens.com>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users@googlegroups.com, Claudius Heine <ch@denx.de>
Subject: Re: [PATCH 2/2] integrate ubifs image type
Date: Tue, 29 Jan 2019 09:24:38 +0100 [thread overview]
Message-ID: <2c60f6d1-5531-c05b-b0bd-677aad52e10a@siemens.com> (raw)
In-Reply-To: <5fab2f59-9f15-713f-f2c8-15886800a3dc@siemens.com>
On 29/01/2019 09.16, [ext] Claudius Heine wrote:
>>>>> +do_ubifs_image[stamp-extra-info] = "${DISTRO}-${MACHINE}"
>>>>> +
>>>>> +# Generate ubifs filesystem image
>>>>> +do_ubifs_image() {
>>>>> + rm -f ${DEPLOY_DIR_IMAGE}/${UBIFS_IMAGE_FILE}
>>>>> +
>>>>> + buildchroot_do_mounts
>>>>> +
>>>>> + sudo flock ${MOUNT_LOCKFILE} -c ' \
>>>>> + mkdir -p ${BUILDROOT_DEPLOY} ${BUILDROOT_ROOTFS}
>>>>> + mount --bind ${DEPLOY_DIR_IMAGE} ${BUILDROOT_DEPLOY}
>>>>> + mount --bind ${IMAGE_ROOTFS} ${BUILDROOT_ROOTFS}
>>>>> + '
>>>>
>>>> I think this mounting should also be required by a proper ext4
>>>> class. On the other hand the wic one moves the image into the final
>>>> deploy folder.
>>>> Not sure what is best but maybe a good idea to go for "always move"
>>>> or "always mount".
>>>
>>> Hmm.. In OE this task would not to touch the deploy directory and
>>> *copy* all artifacts in a dedicated task AFAIK. But OE has a
>>> completely different image creation pipeline and infrastructure than
>>> isar, so who knows how things should be done here.
>>
>> We currently generate and deploy in one task. The fun thing is that we
>> need multiple commands and can probably end up in weird states if we
>> get interrupted or fail.
>>
>> Changing that general pattern is a discussion of its own, since it
>> would change the API.
>>
>> Staying in the current API i think the mount and generate directly into
>> deploy ... no more chmod/chown mv ... whatever. Would be the cleanest
>> way. We already have a reliable umount mechanism to clean up if things
>> go wrong.
>>
>> If you agree: Please include that deploydir/rootfs mount into the common
>> mounts and update your imager. I will do the same for wic and maybe
>> ext4.
>
> Ok. Will do that.
Hmmm... You mean mounts that are done by `buildchroot_do_mounts`?
Extending that function would cause deploydir and rootfs to be mounted
for every recipe. `rootfs` doesn't make sense for normal recipes and
mounting `deploydir` into every recipes workspace sound bad as well...
Maybe we would need a image specific mount function and then switch
every image type to this. But I guess that would be a feature on its own.
Claudius
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de
next prev parent reply other threads:[~2019-01-29 8:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 12:28 [PATCH 0/2] Integrate UBIFS support (+doc fixes) claudius.heine.ext
2019-01-28 12:28 ` [PATCH 1/2] doc/user: added targz-img to image type list claudius.heine.ext
2019-01-28 12:28 ` [PATCH 2/2] integrate ubifs image type claudius.heine.ext
2019-01-28 12:36 ` Jan Kiszka
2019-01-28 12:41 ` Claudius Heine
2019-01-28 13:03 ` Henning Schild
2019-01-28 13:40 ` Claudius Heine
2019-01-28 17:22 ` Henning Schild
2019-01-29 8:16 ` Claudius Heine
2019-01-29 8:24 ` Claudius Heine [this message]
2019-01-29 9:14 ` Henning Schild
2019-01-29 9:10 ` Henning Schild
2019-01-29 9:26 ` Claudius Heine
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=2c60f6d1-5531-c05b-b0bd-677aad52e10a@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=ch@denx.de \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox