From: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
To: openembedded-devel@openembedded.org
Subject: initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table
Date: Tue, 8 Jan 2008 16:15:25 +0100 [thread overview]
Message-ID: <20080108151525.GA30805@deadlock.dhs.org> (raw)
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
next reply other threads:[~2008-01-08 15:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 15:15 Sergey 'Jin' Bostandzhyan [this message]
2008-01-10 15:44 ` initscripts ignores IMAGE_DEVICE_TABLES and installs it's own table Leon Woestenberg
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=20080108151525.GA30805@deadlock.dhs.org \
--to=jin@mediatomb.cc \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.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.