[oe] do_rootfs : (offline root mode: not running openntpd.postinst)
Christophe Aeschlimann
c.aeschlimann at acn-group.ch
Wed Apr 29 12:22:34 UTC 2009
Hi,
I'm facing a problem with the openntpd recipe (version 3.9p1). When I select
this recipe to be build in my image it builds correctly and is present on my
jffs2 image file which is great. But then it won't run on the target because
openntpd requires a special user to be created and it is not. (as stated in the
recipe by the build configuration this user should be named "ntpd").
By checking the recipe I saw that pkg_postinst is defined and should create the
user in the passwd file after the package has been installed. So far so good.
But then I realized that this function was never called when the do_rootfs is
done for my image file.
It seems that when the packages are installed in the rootfs directory
(do_rootfs) all the pkg_postinst functions of the recipes are skipped with the
following message :
(offline root mode: not running base-passwd.postinst)
(offline root mode: not running busybox.postinst)
(offline root mode: not running dropbear.postinst)
[stripped]
(offline root mode: not running openntpd.postinst)
etc...
I guess that this a feature and not a bug but I'd like to understand why these
functions are not called ?
Of course I can modify the recipe so it will change my passwd file during
install or add some initialization script to check that this user is created
before ntpd runs but I'm more curious about why we skip all the postinst scripts.
Thanks for any comments,
Christophe
More information about the Openembedded-devel
mailing list