[Yum-devel] Exit non-0 when scriptlets fail?
Jesse Keating
jkeating at redhat.com
Sun Dec 21 16:40:54 UTC 2008
On Sun, 2008-12-21 at 07:24 -0800, Jesse Keating wrote:
>
> Hrm, neither of those seem to be what I'm seeing. In my attempts to
> reproduce with a small subset, I can't manage to get yum to exit non-0
> even if I do get scriptlet errors. Of course, I'm not getting the exact
> same errors because I think the errors I got with the large package set
> are due to rpm ordering. I gave up late last night :/
Alright, I finally repeated the problem.
Trying to install NetworkManager into a fresh chroot dir will result in
a non-zero exit, likely due to the rpm ordering putting setup after the
avahi-autoipd install, which tries to add a group in %pre.
groupadd: unable to open group file
useradd: unknown GID 100
useradd: unknown group avahi-autoipd
error: %pre(avahi-autoipd-0.6.24-1.fc11.i386) scriptlet failed, exit
status 6
error: install: %pre scriptlet failed (2), skipping
avahi-autoipd-0.6.24-1.fc11
It seems difficult to get this particular ordering reliably, adding a
few more packages will result in different ordering. I think this is
all due to shadow-utils not properly requiring the database files things
like groupadd and useradd will modify, so that's where the fix should
go. At this point, the only thing in yum that is worrisome is that even
though avahi-autoipd had a fatal error, yum only shows:
Warning: scriptlet or other non-fatal errors occurred during
transaction, and that the summary shows avahi-autoipd was installed.
The files from avahi-autoipd aren't installed either. So it seems that
yum is getting a bit confused here.
--
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20081221/842a5e67/attachment.pgp
More information about the Yum-devel
mailing list