[OE-core] [PATCH] base-passwd: Fix the broken preinst/postinstall

Koen Kooi koen at dominion.thruhere.net
Mon Nov 14 13:37:17 UTC 2011


Op 14 nov. 2011, om 13:52 heeft Phil Blundell het volgende geschreven:

> On Mon, 2011-11-14 at 12:49 +0000, Richard Purdie wrote:
>> The preinst accesses file which may not yet have been unpacked.
>> The postinst is too late for the creation of these files
>> for at least the opkg backend.
>> 
>> This patch therefore encodes the file contents into the preinst,
>> resolving the various issues once and for all.
>> 
>> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> 
> If you're going to do that (which does look reasonable) then you might
> as well stop the package from shipping passwd.master and group.master at
> all.  I don't think anything else uses those files so they're just
> wasting space at the moment.

IIRC 'update-passwd' will use those. That's not a criticism on Phils suggestion, I like it very much.

regards,

Koen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20111114/1def1215/attachment-0002.sig>


More information about the Openembedded-core mailing list