S98configure role
I'm wondering what is the role of this script, placed in /etc/rcS.d.
What I guess is that, for some reasons, some packages get installed but not configured (then unpacked) since their postinstall script returns non zero value.
Here it is a small extract of rootfs_ipk.bbclass:
for
i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.postinst; do
if [ -f $i ] && ! sh -e $i configure; then
opkg-
cl ${IPKG_ARGS} flag unpacked basename $i .postinst
fi
done
For example, in my beagleboard, I get udev unpacked because udev-cache can't be found in /etc/init.d (sounds strange, it's there!).
Then udev remain unpacked but the magic S98configure heals udev, adjusting all stuff.
But, here is my question, what about the very
first boot? Do I have a first boot without udev-cache? Unfortunately at
the moment I haven't the chance to investigate and burn a SD card and can't go further, however I'm very interested to listen to your opinions.
Thank you,
bye,
Luca
Supera i limiti: raddoppia la velocità da 10 a 20 Mega! Risparmia con Tutto Incluso: telefono + adsl 20 mega a soli 26,60 € al mese per un anno! SCONTO DI 160 EURO! http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso/?WT.mc_id=01fw
Quoted 6 lines · On Thu, Oct 14, 2010 at 2:32 AM, [email protected] <…
I'm wondering what is the role of this script, placed in
/etc/rcS.d.What I guess is that, for some reasons, some packages get installed but not configured (then unpacked) since their postinstall script returns non zero value.
Yes, this is correct. Some postinsts do things which can be done at image creation time on the build machine, but not all. Those which must *run* the binaries in the filesystem, for example, cannot be run at build time, so must be run at first boot time on the target.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Hello,
for me the S98configure is a NO GO !
I have to provide read only images that have to be used w/o any first boot configurations.
For me there is no necessary to final install a image at first boot.
Normally all configurations are able to be done at image creation time by some scripting. For example, adding a user can be done by scripting, and not necessarily have to be done by adduser/addgroup.
Its up to the recipes to create packages which are installable offline totally and completely.
Handling of individual settings like serial numbers, keys ... for me should not be a matter of first boot. It may be a matter of flashing(environment partition) or special configuration partitions.
There may be some cases, a first boot installation is necessary, but for me it is better to have an unmodified/unmodifieable image on the target.
Regards
Wolfgang
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Chris Larson
Gesendet: Donnerstag, 14. Oktober 2010 16:02
An: [email protected]
Betreff: Re: [oe] S98configure role
Quoted 6 lines · On Thu, Oct 14, 2010 at 2:32 AM, [email protected] <…
I'm wondering what is the role of this script, placed in
/etc/rcS.d.What I guess is that, for some reasons, some packages get installed but not configured (then unpacked) since their postinstall script returns non zero value.
Yes, this is correct. Some postinsts do things which can be done at image creation time on the build machine, but not all. Those which must *run* the binaries in the filesystem, for example, cannot be run at build time, so must be run at first boot time on the target.
Signature · 9 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 14 lines · Wolfgang (external)
for me the S98configure is a NO GO !
I have to provide read only images that have to be used w/o any first boot configurations.For me there is no necessary to final install a image at first boot.
Normally all configurations are able to be done at image creation time by some scripting.
For example, adding a user can be done by scripting, and not necessarily have to be done by adduser/addgroup.Its up to the recipes to create packages which are installable offline totally and completely.
Quoted 8 lines
Handling of individual settings like serial numbers, keys ... for me should not be a matter of first boot.
It may be a matter of flashing(environment partition) or special configuration partitions.There may be some cases, a first boot installation is necessary, but for me it is better to have an unmodified/unmodifieable image on the target.
Then go ahead and modify your tree to do so, but don't expect OE to come that way out of the box.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Hello,
Quoted 1 line
Quoted 1 line
Then go ahead and modify your tree to do so, but don't expect OE to
come
Quoted 1 line
Quoted 1 line
that way out of the box.
I've done so, but things may be much easier if the recipes are tuned to read only usage.
It is possibe, but the use cases may be too wide to do it in general.
Regards
Wolfgang