Hello
I've build a new yum rpm for centos4 incorporating the patch for chroot.
(I used www.jpackage.org to help with the rpm building and
http://www-128.ibm.com/developerworks/library/l-rpm2/ to understand the
patching process)
It basically works a lot better now.
However I think there are still 2 problems.
1/ It seems to be very fragile when finding files in a repository. Often yum
will say it cannot find the file.
When yum gets run again, it seems to find the file and then falls over again
somewhere later with the same error,
but with a different file.
2/There are many packages where yum says
eg
No Match for argument: indexhtml-4-1.centos4
No Match for argument: redhat-logos-1.1.25-1.centos4.3
No Match for argument: setup-2.5.37-1.1
No Match for argument: tzdata-2004e-2
No Match for argument: glibc-2.3.4-2
Yum can find some files, but not all of them. The corresponding list of files
in my 01 file
(copied from the centos list on the vserver site) is
indexhtml-4-1.centos4
redhat-logos-1.1.25-1.centos4.3
setup-2.5.37-1.1
basesystem-8.0-4
tzdata-2004e-2
glibc-2.3.4-2
So it seems to have found basesystem-8.0-4 ok.
Example of running yum
*
glibc-common-2.3.4-2.13.i 100% |=| 636 kB00:20
--- Package glibc-common.i386 0:2.3.4-2.13 set to be updated
--- Downloading header for hwdata to pack into transaction set.
hwdata-0.146.12.EL-1.noar 100% |=| 17 kB00:00
--- Package hwdata.noarch 0:0.146.12.EL-1 set to be updated
--- Downloading header for pciutils to pack into transaction set.
Error: failure: CentOS/RPMS/pciutils-2.1.99.test8-3.1.i386.rpm from base:
[Errno 256] No more mirrors to try.
rm -rf /etc/vservers/.defaults/vdirbase/min-centos4 /etc/vservers/min-centos4
/etc/vservers/.defaults/vdirbase/.pkg/min-centos4
[EMAIL PROTECTED] ~]# ./build_vserver_guest.sh
Renamed '/etc/vservers/.defaults/vdirbase/min-centos4' to
'/etc/vservers/.defaults/vdirbase/min-centos4.~1131012443~'
Renamed '/etc/vservers/min-centos4' to '/etc/vservers/min-centos4.~1131012443~'
Renamed '/etc/vservers/.defaults/vdirbase/.pkg/min-centos4' to
'/etc/vservers/.defaults/vdirbase/.pkg/min-centos4.~1131012443~'
Setting up Install Process
Setting up repositories
update100% |=| 951 B00:00
base 100% |=| 1.1 kB00:00
addons100% |=| 951 B00:00
extras100% |=| 1.1 kB00:00
Reading repository metadata in from local files
primary.xml.gz100% |=| 16 kB00:00
update: ## 47/47
Added 47 new packages, deleted 0 old in 0.59 seconds
primary.xml.gz100% |=| 466 kB00:14
base : ## 1434/1434
Added 1434 new packages, deleted 0 old in 12.58 seconds
primary.xml.gz100% |=| 157 B00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz100% |=| 9.3 kB00:00
extras: ## 33/33
Added 33 new packages, deleted 0 old in 0.36 seconds
Parsing package install arguments
No Match for argument: indexhtml-4-1.centos4
No Match for argument: redhat-logos-1.1.25-1.centos4.3
No Match for argument: setup-2.5.37-1.1
No Match for argument: tzdata-2004e-2
No Match for argument: glibc-2.3.4-2
No Match for argument: chkconfig-1.3.11.2-1
No Match for argument: dmraid-1.0.0.rc5f-rhel4.1
No Match for argument: iputils-20020927-16
No Match for argument: centos-release-4-0.1
No Match for argument: net-tools-1.60-37
No Match for argument: perl-5.8.5-12.1
No Match for argument: popt-1.9.1-7_nonptl
No Match for argument: rpmdb-CentOS-4.0-0.20050228
No Match for argument: vim-minimal-6.3.046-0.40E.4
No Match for argument: cpio-2.5-7.EL4.1
No Match for argument: coreutils-5.2.1-31
No Match for argument: grub-0.95-3.1
No Match for argument: krb5-libs-1.3.4-10
No Match for argument: openssl-0.9.7a-43.1
No Match for argument: rpm-libs-4.3.3-7_nonptl
No Match for argument: shadow-utils-4.0.3-41.1
No Match for argument: dbus-glib-0.22-11.EL
No Match for argument: nscd-2.3.4-2
No Match for argument: pam-0.77-65.1
No Match for argument: policycoreutils-1.18.1-4
No Match for argument: SysVinit-2.85-34
No Match for argument: lvm2-2.00.31-1.0.RHEL4
No Match for argument: kudzu-1.1.95.8-1
No Match for argument: comps-4.0CENTOS-0.20050228
No Match for argument: rmt-0.4b37-1
No Match for argument: bzip2-1.0.2-13
No Match for argument: logrotate-3.7.1-2
No Match for argument: rsh-0.17-25.1
No Match for argument: netconfig-0.8.21-1
No Match for argument: unix2dos-2.2-24
No Match for argument: binutils-2.15.92.0.2-10.EL4
No Match for argument: