PDA

View Full Version : [SOLVED] Revisor error


ashash
1st August 2010, 08:59 AM
I want to build a custom installation CD from Fedora 12.
So I'm using revisor, and select "CD set". After selecting the packages that I want, and clicking "Forward", when it shows an error message

Got an error from /usr/bin/xsltproc (return code 6)

I use a local repository. Total size of my selected package is less than 100 MB. In fact I select only the kernel-PAE package and let the revisor to find other needed packages, which are totally 114 packages.
here is my kickstart file:

#platform=x86, AMD64, or Intel EM64T
#version=F12
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Root password
rootpw --iscrypted ****************
# System authorization information
auth --useshadow --passalgo=md5
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Use CDROM installation media
cdrom
part / --size=16384
#192.168.20.14
# System timezone
timezone *****************
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all

and here is the changed part of configuration file:

[fedora]
name=Fedora 12 - i386
baseurl=file:///home/livecd/Packages
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-12&arch=i386
enabled=1
gpgcheck=0

I can make a live CD without error.

---------- Post added at 11:59 PM CDT ---------- Previous post was at 12:26 PM CDT ----------

If I change the repository to one exists in the Fedora 12 DVD the error won't occur and creation work while continue until another error:

Got an error from /usr/lib/revisor/scripts//F11-buildinstall (return code 1)

This repository's (Fedora's DVD) packages are grouped into categories such as base system, administration, ... as you know. But the repository that I created, using createrepo command, was not grouped, how can I do this, because I am thinking that this the reason of the error.

The Fedora's DVD does not contain the syslinux and anaconda-runtime as I know these are needed.

ashash
3rd August 2010, 12:22 AM
Using the repodata folder that exists in Fedora's DVD, I created a repository that its packages are grouped.
I removed the line "part / --size=16384" from kickstart file.

I found that the F12-buildinstall script exits at this line

yumdownloader -c $yumconf anaconda || exit 1

I add some codes before the

if [ -z "$yumconf" ]; then

codes that I added

yumconf=$(mktemp ${TMPDIR:-/tmp}/yum.conf.XXXXXX)
cat > $yumconf <<EOF
[main]
cachedir=$CACHEDIR
keepcache=0
gpgcheck=0
plugins=0
reposdir=
tsflags=nodocs

[anacondarepo]
name=anaconda repo
baseurl=$REPO
enabled=1
EOF

These are just copy and paste of the codes within the if statement.

Then I ran the revisor and I chose the kernel package and syslinux and anaconda.
This time the no error was occurred and I had the CD at the end.

But I don't know what the problem really is.

---------- Post added at 03:22 PM CDT ---------- Previous post was at 08:22 AM CDT ----------

Finally I found the problem and the solution!

I change the anaconda section of revisor-f12-i386.conf to


[anaconda-updates]
name=Fedora Unity Anaconda Updates for Fedora 12
baseurl=file:///home/livecd/Packages
#baseurl=http://www.kanarip.com/anaconda/f12/i386/
enabled=1

Then I tried again and got the error again.

In F12-buildinstall script there exists some codes

repoquery -c $yumconf anaconda
and
yumdownloader -c $yumconf anaconda

where in my case the content of yumconf was "/etc/revisor/conf.d/revisor-f12-i386.conf".

The script tries to rum these commands but it failed because of the "update" repository was enabled and it tries to retrieve repmod.xml from it but it couldn't. Simply, I change the enable value of it to 0.


[updates]
name=Fedora 12 - i386 - Updates
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/12/i386/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f12&arch=i386
enabled=0
gpgcheck=0

Now I have no errors and I can make CDs easily. So, I need no changes in the script, unlike the way that I used before, and told in previous post.

Thanks

ashash
4th August 2010, 04:04 PM

Previously I told that I think anaconda and syslinux packages must be selected, but I was wrong, there is no need to select them and this is no required to create CD set, but syslinux must be selected in live CD creation.

ashash
8th August 2010, 02:10 PM
I have another problem. Now I want to make an installation DVD. But I got the previous error

Got an error from /usr/lib/revisor/scripts/F12-buildinstall (return code 1)

I know, it exits at this line in the F12-buildinstall script

$UPD_INSTROOT $DEBUGSTR $NOGRSTR --arch $BUILDARCH $UPDATES --imgdir $TREEDIR/install $yumconf || die "upd-instroot failed"

But i don't know why, Have you any idea?

ashash
9th August 2010, 11:39 AM
I tried it on another machine and it was successful. I think something has corrupted on the machine.