<tt><font size=2>John Florian/EngMOp/MAS/DCC wrote on 10/04/2012 14:50:10:<br>
&gt; I'm building F18 images with livecd-creator on F18 and for the first<br>
&gt; build attempt after boot, I see many unexpected errors like this <br>
&gt; snippet shows:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: libsemanage &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##################### [315/492]
</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: shadow-utils &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##################### [316/492]
</font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: libutempter &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;### &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; [317/492]warning: group utempter does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group utmp does not exist - using root</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: libutempter &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##################### [317/492]
</font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: parted &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #####################
[331/492] </font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; useradd: group 'dhcpd' does not exist</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: dhcp &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ####################
&nbsp;<br>
&gt; [332/492]warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: user dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group dhcpd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: dhcp &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #####################
[332/492] </font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: os-prober &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##################### [335/492]
</font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: openssh &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;########## &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; [336/492]warning: group ssh_keys does not exist - using root</font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: samba-common &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##################### [338/492]
</font></tt>
<br><tt><font size=2>&gt; Failed to initialize SELinux context: No such
file or directory</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: iputils &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#####################
[339/492] </font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: mesa-dri-drivers &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; ##################### [347/492] </font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; useradd: group 'polkitd' does not exist</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: polkit &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; [348/492]warning: user polkitd does not exist - using root</font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: alsa-utils &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##################### [354/492]
</font></tt>
<br><tt><font size=2>&gt; error: %pre(rpcbind-0.2.0-17.fc18.i686) scriptlet
failed, exit status 6</font></tt>
<br><tt><font size=2>&gt; error: rpcbind-0.2.0-17.fc18.i686: install failed</font></tt>
<br><tt><font size=2>&gt; groupadd: failure while writing changes to /etc/group</font></tt>
<br><tt><font size=2>&gt; useradd: group 'chrony' does not exist</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: chrony &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; [356/492]warning: group chrony does not exist - using root</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: chrony &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ####################
&nbsp;<br>
&gt; [356/492]warning: user chrony does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group chrony does not exist - using
root</font></tt>
<br><tt><font size=2>&gt; warning: user chrony does not exist - using root</font></tt>
<br><tt><font size=2>&gt; warning: group chrony does not exist - using
root</font></tt>
<br><tt><font size=2>&gt; &nbsp; Installing: chrony &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #####################
[356/492] </font></tt>
<br><tt><font size=2>&gt; [snip]</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; If I let it run through to completion and rerun the exact same <br>
&gt; command again, everything works normally. &nbsp;I used to see this
<br>
&gt; behavior for every build attempt prior to sssd coming along when I
<br>
&gt; was still using nscd, if nscd was running. &nbsp;Back then I'd have
to <br>
&gt; stop nscd for the duration of the build. &nbsp;I never had such a
problem<br>
&gt; with sssd, but this looks eerily familiar now with F18 (where I'm
<br>
&gt; still using sssd instead of nscd).</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Has anyone else seen something similar, or is this a known bug? &nbsp;I
<br>
&gt; have not had a chance to dig into this yet, but I've been seeing <br>
&gt; this with F18 since before Alpha was out.</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; PS. &nbsp;FWIW, this F18 box started life as F17 and was been yum
distro-<br>
&gt; sync'd and kept updated.</font></tt>
<br>
<br><font size=2 face="sans-serif">I believe I've already found the problem.
&nbsp;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: &nbsp;denied &nbsp;{ read } for &nbsp;pid=2748 comm=&quot;groupadd&quot;
name=&quot;run&quot; dev=&quot;loop0&quot; 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: &nbsp;denied &nbsp;{ read } for &nbsp;pid=2748 comm=&quot;groupadd&quot;
name=&quot;run&quot; dev=&quot;loop0&quot; 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=&quot;utmp&quot; exe=&quot;/usr/sbin/groupadd&quot;
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=&quot;utmp&quot; exe=&quot;/usr/sbin/groupadd&quot;
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=&quot;utmp&quot; exe=&quot;/usr/sbin/groupadd&quot; 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. &nbsp;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>