All of lore.kernel.org
 help / color / mirror / Atom feed
* initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table
@ 2008-01-08 15:15 Sergey 'Jin' Bostandzhyan
  2008-01-10 15:44 ` Leon Woestenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey 'Jin' Bostandzhyan @ 2008-01-08 15:15 UTC (permalink / raw)
  To: openembedded-devel

Hi,

after being too annoying about this on IRC it was suggested that I write
to the mailinglist :>

I already submitted a bug report regarding this:
http://bugs.openembedded.org/show_bug.cgi?id=3593

Here is the problem:
I am using a custom Angstrom-2007 based distro, I use a static dev table (no
udev and no devfs). 

I defined a custom device table file in my machine conf by setting the
IMAGE_DEVICE_TABLES variable appropriately.

From what I can see, image.bbclass makes use of this variable when creating the
rootfs. However, the initscripts_1.0.bb package has it's own device_table.txt
version (located in initscripts-1.0/device_table.txt).

This file gets installed to /etc/device_table on the target. I guess it does
not matter when udev takes over, but remember - I am using a static dev; so in
my case the init.d/devices script checks what is used, it first looks for udev,
then for devfs, does not find those and finally populates /dev with
device_table from /etc/device_table which was installed by initscripts.

It did cost me quite some time to figure out where all those dev entries
were coming from, so it would be nice to have this fixed in a clean way.

Unfortunately a clean solution did not come to my mind, so I hacked the 
initscripts_1.0.bb locally by adding:
file://../../../../../../site/files/my_device_table.txt 
to the SRC_URI, further doing a:

do_install_prepend () {
    cp ../../../../../../site/files/my_device_table.txt  ${WORKDIR}/
}

and finally tuning the line in do_install:
install -m 0755  ${WORKDIR}/my_device_table.txt ${D}${sysconfdir}/device_table

As you can see this is quite an ugly approach, I hope someone can suggest
how to solve this properly?

Kind regards,
Jin




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

* Re: initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table
  2008-01-08 15:15 initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table Sergey 'Jin' Bostandzhyan
@ 2008-01-10 15:44 ` Leon Woestenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Woestenberg @ 2008-01-10 15:44 UTC (permalink / raw)
  To: openembedded-devel

Hi Sergey,

On Jan 8, 2008 4:15 PM, Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc> wrote:
> Hi,
>
> after being too annoying about this on IRC it was suggested that I write
> to the mailinglist :>
>
> I already submitted a bug report regarding this:
> http://bugs.openembedded.org/show_bug.cgi?id=3593

I responded in the bug report with a first proposal.


Regards,
-- 
Leon



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

end of thread, other threads:[~2008-01-10 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 15:15 initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table Sergey 'Jin' Bostandzhyan
2008-01-10 15:44 ` Leon Woestenberg

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.