All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Francois P. Gallichand" <francois.p.gallichand@ca.abb.com>
To: Anders Darander <anders@chargestorm.se>
Cc: Paul Eggleton <paul.eggleton@linux.intel.com>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Adding files to the hddimg
Date: Tue, 24 Jun 2014 17:19:04 +0000	[thread overview]
Message-ID: <1403630342378.67114@ca.abb.com> (raw)
In-Reply-To: <20140623122612.GB16414@ad.chargestorm.se>

Hello Anders,

I don't want to copy files into the rootfs, I know how to do that. It's really in the hddimg that I need to copy files, at the same level as the rootfs.

To make a short story, here's what I want to do. I want to use a usb drive to install a system so I "dd" the hddimg to this usb drive. The idea is to boot this usb drive on the target system so it can be used to accomplish various task, like installing a new system or updating or configuring an existing one. So to do that, I need to put the required files to install or configure the system also on the key. You could argue that I can still do all of this even if I put everything in the rootfs. However, I use squashfs for the rootfs (to save space), and also the files on the key must be modifiable by a user using a Windows computer (which is easy since this is a VFAT partition but not the rootfs that's not even writable).

Like I mentionned in previous email, one way to achieve that is to extend the bootimg.bbclass, but I tried that and it didn't work (and I don't know why). After talking to some people, I guess that the simple solution is to write a separate script that does what I need i.e.once I build the hddimg, it just mount the hddimg and copy the required stuff on it. It's just that I would have liked to do that in the Yocto environment, but it's no big priority.

The resulting real question however is how to extend a .bbclass and why what I tried before didn't work?

Any idea about that?

Regards,
Francois

________________________________________
De : Anders Darander <anders@chargestorm.se>
Envoyé : 23 juin 2014 08:26
À : Francois P. Gallichand
Cc : Paul Eggleton; yocto@yoctoproject.org
Objet : Re: [yocto] Adding files to the hddimg

* Francois P. Gallichand <francois.p.gallichand@ca.abb.com> [140618 19:22]:

> Thanks for the reply. But that's not really what I want to achieve.
> Really, I just want to copy some files into the .hddimg file that is
> built as a result of running bitbake. Like I said, I tried to extend
> the bootimg.bbclass, which is responsible for creating the .hddimg
> file, but it's not working and I don't know why.

Well, then I guess the question if what kinds of file is it, and how do
you want to copy them into the .hddimg?

Should they be copied into the rootfs in the .hddimg? If so, I'd suggest
to create a standard bitbake recipe and just install those files into
the rootfs.

If it's something else, I think you need to explain it a little bit
more.

Cheers,
Anders

> Any suggestions?
--
Anders Darander
ChargeStorm AB / eStorm AB


      reply	other threads:[~2014-06-24 17:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13 13:57 Adding files to the hddimg Francois P. Gallichand
2014-06-18 15:42 ` Francois P. Gallichand
2014-06-18 16:43   ` Paul Eggleton
2014-06-18 17:20     ` Francois P. Gallichand
2014-06-23 12:26       ` Anders Darander
2014-06-24 17:19         ` Francois P. Gallichand [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=1403630342378.67114@ca.abb.com \
    --to=francois.p.gallichand@ca.abb.com \
    --cc=anders@chargestorm.se \
    --cc=paul.eggleton@linux.intel.com \
    --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.