All of lore.kernel.org
 help / color / mirror / Atom feed
* How do you remove an IMAGEFS?
@ 2017-06-23 23:21 Paul D. DeRocco
  2017-06-27  7:58 ` Patrick Ohly
  0 siblings, 1 reply; 4+ messages in thread
From: Paul D. DeRocco @ 2017-06-23 23:21 UTC (permalink / raw)
  To: yocto

x86-base.inc adds "live" to IMAGE_FSTYPES. I have no need for a live
image, or an iso, so I thought adding IMAGE_FSTYPES_remove = "live iso" to
my image recipe might work, but it complained in do_bootimg that my recipe
"depends upon non-existent task do_image_ext4". On a hunch, I movved the
IMAGE_FSTYPES_remove to before inheriting core-image, and then it didn't
complain, but it didn't build ANY images.

So what's the right way to suppress live image and iso image generation,
where those things are included in some stock config file somewhere?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com



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

* Re: How do you remove an IMAGEFS?
  2017-06-23 23:21 How do you remove an IMAGEFS? Paul D. DeRocco
@ 2017-06-27  7:58 ` Patrick Ohly
  2017-06-27 19:08   ` Paul D. DeRocco
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Ohly @ 2017-06-27  7:58 UTC (permalink / raw)
  To: Paul D. DeRocco; +Cc: yocto

On Fri, 2017-06-23 at 16:21 -0700, Paul D. DeRocco wrote:
> x86-base.inc adds "live" to IMAGE_FSTYPES. I have no need for a live
> image, or an iso, so I thought adding IMAGE_FSTYPES_remove = "live iso" to
> my image recipe might work, but it complained in do_bootimg that my recipe
> "depends upon non-existent task do_image_ext4". On a hunch, I movved the
> IMAGE_FSTYPES_remove to before inheriting core-image,

That's the only feasible approach at the moment. IMAGE_FSTYPES gets
checked while inheriting the class and then triggers inheriting
image-live.bbclass even when the "live" type gets removed later one.

There's a patch for x86-base.inc which removes this unconditional
extension of IMAGE_FSTYPES, see "[OE-core] [PATCH] x86-base.inc: Don't
add live to IMAGE_FSTYPES, default instead".

>  and then it didn't
> complain, but it didn't build ANY images.

You still need to set some kind of IMAGE_FSTYPES, for example "wic".

Further hacks may be needed depending on your version of OE-core, for
example inheriting the class set by EFI_PROVIDER.

Here's how we solved this in refkit:
https://github.com/intel/intel-iot-refkit/blob/0ec24f348453/meta-refkit-core/classes/refkit-image.bbclass#L219

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





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

* Re: How do you remove an IMAGEFS?
  2017-06-27  7:58 ` Patrick Ohly
@ 2017-06-27 19:08   ` Paul D. DeRocco
  2017-06-27 19:28     ` Patrick Ohly
  0 siblings, 1 reply; 4+ messages in thread
From: Paul D. DeRocco @ 2017-06-27 19:08 UTC (permalink / raw)
  To: 'Patrick Ohly'; +Cc: yocto

> From: Patrick Ohly [mailto:patrick.ohly@intel.com] 
> 
> On Fri, 2017-06-23 at 16:21 -0700, Paul D. DeRocco wrote:
> > x86-base.inc adds "live" to IMAGE_FSTYPES. I have no need for a live
> > image, or an iso, so I thought adding IMAGE_FSTYPES_remove 
> > = "live iso" to
> > my image recipe might work, but it complained in do_bootimg 
> > that my recipe
> > "depends upon non-existent task do_image_ext4". On a hunch, 
> > I movved the
> > IMAGE_FSTYPES_remove to before inheriting core-image,
> 
> That's the only feasible approach at the moment. IMAGE_FSTYPES gets
> checked while inheriting the class and then triggers inheriting
> image-live.bbclass even when the "live" type gets removed later one.
> 
> There's a patch for x86-base.inc which removes this unconditional
> extension of IMAGE_FSTYPES, see "[OE-core] [PATCH] x86-base.inc: Don't
> add live to IMAGE_FSTYPES, default instead".
> 
> >  and then it didn't
> > complain, but it didn't build ANY images.
> 
> You still need to set some kind of IMAGE_FSTYPES, for example "wic".

Yes, that's what I ended up doing, so it's nice to know I'm on the right track.

However, when I explicitly added "hddimg", I found that Syslinux was still configured for live image, with "boot" and "install" menu options. I found some code in image.bbclass that looks like it forces "image-live" if either "iso" or "hddimg" is included. I can of course hide that by setting various Syslinux options, but how do I get a plain hddimg that just boots up and runs, without any support for an "install" option in the kernel? Is that normally done with "wic" and a minimal .wks script?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com



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

* Re: How do you remove an IMAGEFS?
  2017-06-27 19:08   ` Paul D. DeRocco
@ 2017-06-27 19:28     ` Patrick Ohly
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Ohly @ 2017-06-27 19:28 UTC (permalink / raw)
  To: Paul D. DeRocco; +Cc: yocto

On Tue, 2017-06-27 at 12:08 -0700, Paul D. DeRocco wrote:
> However, when I explicitly added "hddimg", I found that Syslinux was
> still configured for live image, with "boot" and "install" menu
> options. I found some code in image.bbclass that looks like it forces
> "image-live" if either "iso" or "hddimg" is included. I can of course
> hide that by setting various Syslinux options, but how do I get a
> plain hddimg that just boots up and runs, without any support for an
> "install" option in the kernel? Is that normally done with "wic" and a
> minimal .wks script?

I don't know that much about how boot loader menus get generated (we
don't use a boot loader in refkit). But yes, wic is the mechanism of
choice for creating images these days.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





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

end of thread, other threads:[~2017-06-27 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23 23:21 How do you remove an IMAGEFS? Paul D. DeRocco
2017-06-27  7:58 ` Patrick Ohly
2017-06-27 19:08   ` Paul D. DeRocco
2017-06-27 19:28     ` Patrick Ohly

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.