<tt><font size=2>John Florian/EngMOp/MAS/DCC wrote on 10/04/2012 14:50:10:<br>
> I'm building F18 images with livecd-creator on F18 and for the first<br>
> build attempt after boot, I see many unexpected errors like this <br>
> snippet shows:</font></tt>
<br><tt><font size=2>> <br>
> [snip]</font></tt>
<br><tt><font size=2>> Installing: libsemanage
##################### [315/492]
</font></tt>
<br><tt><font size=2>> Installing: shadow-utils
##################### [316/492]
</font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> Installing: libutempter
###
<br>
> [317/492]warning: group utempter does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group utmp does not exist - using root</font></tt>
<br><tt><font size=2>> Installing: libutempter
##################### [317/492]
</font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> Installing: parted
#####################
[331/492] </font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> useradd: group 'dhcpd' does not exist</font></tt>
<br><tt><font size=2>> Installing: dhcp
####################
<br>
> [332/492]warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>> Installing: dhcp
#####################
[332/492] </font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> Installing: os-prober
##################### [335/492]
</font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> Installing: openssh
##########
<br>
> [336/492]warning: group ssh_keys does not exist - using root</font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> Installing: samba-common
##################### [338/492]
</font></tt>
<br><tt><font size=2>> Failed to initialize SELinux context: No such
file or directory</font></tt>
<br><tt><font size=2>> Installing: iputils
#####################
[339/492] </font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> Installing: mesa-dri-drivers
##################### [347/492] </font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> useradd: group 'polkitd' does not exist</font></tt>
<br><tt><font size=2>> Installing: polkit
<br>
> [348/492]warning: user polkitd does not exist - using root</font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> Installing: alsa-utils
##################### [354/492]
</font></tt>
<br><tt><font size=2>> error: %pre(rpcbind-0.2.0-17.fc18.i686) scriptlet
failed, exit status 6</font></tt>
<br><tt><font size=2>> error: rpcbind-0.2.0-17.fc18.i686: install failed</font></tt>
<br><tt><font size=2>> groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>> useradd: group 'chrony' does not exist</font></tt>
<br><tt><font size=2>> Installing: chrony
<br>
> [356/492]warning: group chrony does not exist - using root</font></tt>
<br><tt><font size=2>> Installing: chrony
####################
<br>
> [356/492]warning: user chrony does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group chrony does not exist - using
root</font></tt>
<br><tt><font size=2>> warning: user chrony does not exist - using root</font></tt>
<br><tt><font size=2>> warning: group chrony does not exist - using
root</font></tt>
<br><tt><font size=2>> Installing: chrony
#####################
[356/492] </font></tt>
<br><tt><font size=2>> [snip]</font></tt>
<br><tt><font size=2>> <br>
> If I let it run through to completion and rerun the exact same <br>
> command again, everything works normally. I used to see this
<br>
> behavior for every build attempt prior to sssd coming along when I
<br>
> was still using nscd, if nscd was running. Back then I'd have
to <br>
> stop nscd for the duration of the build. I never had such a
problem<br>
> with sssd, but this looks eerily familiar now with F18 (where I'm
<br>
> still using sssd instead of nscd).</font></tt>
<br><tt><font size=2>> <br>
> Has anyone else seen something similar, or is this a known bug? I
<br>
> have not had a chance to dig into this yet, but I've been seeing <br>
> this with F18 since before Alpha was out.</font></tt>
<br><tt><font size=2>> <br>
> PS. FWIW, this F18 box started life as F17 and was been yum
distro-<br>
> sync'd and kept updated.</font></tt>
<br>
<br><font size=2 face="sans-serif">I believe I've already found the problem.
On the host running livecd-creator, I'm seeing AVCs like:</font>
<br>
<br><font size=2 face="sans-serif">type=AVC msg=audit(1349382348.700:114):
avc: denied { read } for pid=2748 comm="groupadd"
name="run" dev="loop0" ino=16053 scontext=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:var_t:s0 tclass=lnk_file</font>
<br><font size=2 face="sans-serif">type=AVC msg=audit(1349382348.700:115):
avc: denied { read } for pid=2748 comm="groupadd"
name="run" dev="loop0" ino=16053 scontext=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:var_t:s0 tclass=lnk_file</font>
<br><font size=2 face="sans-serif">type=ADD_GROUP msg=audit(1349382351.086:116):
pid=2748 uid=0 auid=10325 ses=2 subj=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023
msg='op=adding group to /etc/gshadow acct="utmp" exe="/usr/sbin/groupadd"
hostname=? addr=? terminal=pts/0 res=failed'</font>
<br><font size=2 face="sans-serif">type=ADD_GROUP msg=audit(1349382351.087:117):
pid=2748 uid=0 auid=10325 ses=2 subj=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023
msg='op=adding group to /etc/group acct="utmp" exe="/usr/sbin/groupadd"
hostname=? addr=? terminal=pts/0 res=failed'</font>
<br><font size=2 face="sans-serif">type=ADD_GROUP msg=audit(1349382351.087:118):
pid=2748 uid=0 auid=10325 ses=2 subj=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023
msg='op= acct="utmp" exe="/usr/sbin/groupadd" hostname=?
addr=? terminal=pts/0 res=failed'</font>
<br>
<br><font size=2 face="sans-serif">Why it only affects the first run of
livecd-creator, I do not understand. It looks like I'm being bitten
by </font><a href="https://bugzilla.redhat.com/show_bug.cgi?id=858373"><font size=2 face="sans-serif">https://bugzilla.redhat.com/show_bug.cgi?id=858373</font></a><font size=2 face="sans-serif">.<br>
--<br>
John Florian</font>
<br>