Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Nirmal A
I'm using Fedora 12 and I'm trying to create a liveCD using the following command (logged in as root user)

livecd-creator -c fedora-live-base.ks

Following error is seen.

Installing: perl-Digest-SHA1             ####################### [88/91]
  Installing: perl-Pod-Simple              ####################### [89/91]
  Installing: perl-Crypt-PasswdMD5         ####################### [90/91]
  Installing: syslinux                     ####################### [91/91]

/usr/lib/python2.6/site-packages/imgcreate/errors.py:45: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  return unicode(self.message)
Error creating Live CD : Unable to run ['/usr/bin/passwd', '-d', 'root']!

What could be the reason for this error ? Any will help will be appreciated.
I'm attaching the ks file with this mail

thanks
Nirmal






--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

fedora-live-base.ks (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Bruno Wolff III
On Tue, Dec 29, 2009 at 19:33:30 +0530,
  Nirmal A <[hidden email]> wrote:

> I'm using Fedora 12 and I'm trying to create a liveCD using the following
> command (logged in as root user)
>
> *livecd-creator -c fedora-live-base.ks*
>
> Following error is seen.
>
> Installing: perl-Digest-SHA1             ####################### [88/91]
>   Installing: perl-Pod-Simple              ####################### [89/91]
>   Installing: perl-Crypt-PasswdMD5         ####################### [90/91]
>   Installing: syslinux                     ####################### [91/91]
>
> /usr/lib/python2.6/site-packages/imgcreate/errors.py:45: DeprecationWarning:
> BaseException.message has been deprecated as of Python 2.6
>   return unicode(self.message)
> *Error creating Live CD : Unable to run ['/usr/bin/passwd', '-d', 'root']!
>
> *What could be the reason for this error ? Any will help will be
> appreciated.
> I'm attaching the ks file with this mail

It's probably this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=538496

I haven't retested this since getting the selinux-policy update that
is supposed to fix it. Do you have selinux-policy-doc-3.6.32-59.fc12
or later installed? It has been in updates since the 24th.

--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
Reply | Threaded
Open this post in threaded view
|

Re: Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Bruno Wolff III
On Tue, Dec 29, 2009 at 11:16:13 -0600,
  Bruno Wolff III <[hidden email]> wrote:
>
> I haven't retested this since getting the selinux-policy update that
> is supposed to fix it. Do you have selinux-policy-doc-3.6.32-59.fc12
> or later installed? It has been in updates since the 24th.

One aspect of the problem was fixed but there is a different issue now
blocking clearing the root password in the live image. It is still related
to selinux, but changing the policy might not be the correct fix.

--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
Reply | Threaded
Open this post in threaded view
|

Re: Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Nirmal A
Thanks Bruno.
I have selinux-policy-doc-3.6.32-59.fc12 installed but I still get the same error (ie: clearing the root password in the live image fails -  Unable to run ['/usr/bin/passwd', '-d', 'root']!

I tried setting selinux to permissive mode but same error occurs.

Any solution / workaround exist for this ?



On Tue, Dec 29, 2009 at 6:47 PM, Bruno Wolff III <[hidden email]> wrote:
On Tue, Dec 29, 2009 at 11:16:13 -0600,
 Bruno Wolff III <[hidden email]> wrote:
>
> I haven't retested this since getting the selinux-policy update that
> is supposed to fix it. Do you have selinux-policy-doc-3.6.32-59.fc12
> or later installed? It has been in updates since the 24th.

One aspect of the problem was fixed but there is a different issue now
blocking clearing the root password in the live image. It is still related
to selinux, but changing the policy might not be the correct fix.


--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
Reply | Threaded
Open this post in threaded view
|

Re: Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Bruno Wolff III
On Wed, Dec 30, 2009 at 06:02:27 -0500,
  Nirmal A <[hidden email]> wrote:
> Thanks Bruno.
> I have selinux-policy-doc-3.6.32-59.fc12 installed but I still get the same
> error (ie: clearing the root password in the live image fails -  Unable to
> run ['/usr/bin/passwd', '-d', 'root']!
>
> I tried setting selinux to permissive mode but same error occurs.
>
> Any solution / workaround exist for this ?

The work around is to run livecd-creator with the system in permissive mode.
I have setenforce commands in the scripts I use to build live images.
There will still be AVCs in the logs, but the resulting images should be
OK.

It looks like there is also an issue with umount trying to update /etc/mtab.
That one looks normal. Why /selinux/enforce is getting mislabelled is a
separate question that I don't see an obvious answer to.

--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
Reply | Threaded
Open this post in threaded view
|

Re: Fedora 12 Live CD creation error : Unable to run ['/usr/bin/passwd', '-d', 'root']!

Nirmal A
Hi,

I'm running the livecd-creator with the system in permissive mode only but still got the error.

 
On Wed, Dec 30, 2009 at 10:04 PM, Bruno Wolff III <[hidden email]> wrote:
On Wed, Dec 30, 2009 at 06:02:27 -0500,
 Nirmal A <[hidden email]> wrote:
> Thanks Bruno.
> I have selinux-policy-doc-3.6.32-59.fc12 installed but I still get the same
> error (ie: clearing the root password in the live image fails -  Unable to
> run ['/usr/bin/passwd', '-d', 'root']!
>
> I tried setting selinux to permissive mode but same error occurs.
>
> Any solution / workaround exist for this ?

The work around is to run livecd-creator with the system in permissive mode.
I have setenforce commands in the scripts I use to build live images.
There will still be AVCs in the logs, but the resulting images should be
OK.

It looks like there is also an issue with umount trying to update /etc/mtab.
That one looks normal. Why /selinux/enforce is getting mislabelled is a
separate question that I don't see an obvious answer to.


--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list