John Newbigin <jnewbigin@xxxxxxxxxxxxxxx> wrote: >Ron Yorston wrote: >> "Eduardo Grosclaude" <eduardo.grosclaude@xxxxxxxxx> wrote: >> >>>Great! I was just looking for this! Unfortunately there seems to be >>>something missing: by the time we run the first yum command, there's no >>>distroverpkg package installed under $LIVE to query for $releasever. >>>--------------- >>>Should the user install centos-release RPM with prefix equal to $LIVE >>>beforehand? >>>Or is there any other easy but correct way to pass this variable to yum? >> >My yum config does not use $releasever which is probably why mine works. > A simple sed should be able to trick it up in your yum config, or copy >the release file into the chroot before running yum, that is probably >best. I'll try that out and update the docs. Or fetch the centos-release RPM and run: rpm -ivh --nodeps --root $LIVE centos-release-4-3.2.i386.rpm >> >> I got around this by editing my yum repo files to replace $releasever >> with 4. Which is horrible, so I too would like to know if there's a >> better way. >.. >> Actually, I was able to scroll back far enough to see this during the >> installation: >> >> error: %pre(coreutils-5.2.1-31.2.i386) scriptlet failed, exit status 255 >> error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-31.2 >You should not get any errors at this stage. You must mount /dev /proc >and /sys or your install will fail. Well, I do get errors. I've tried this several times on three machines, including one that was freshly installed with CentOS 4.3 for just this purpose. Every time I get error in %pre and %post, and the resulting installation is incomplete. See attachment. Ron
Running Transaction Installing: hwdata ##################### [ 1/116] Installing: libgcc ##################### [ 2/116] error: %post(libgcc-3.4.5-2.i386) scriptlet failed, exit status 255 Installing: setup ##################### [ 3/116] Installing: filesystem ##################### [ 4/116] Installing: basesystem ##################### [ 5/116] Installing: centos-yumconf ##################### [ 6/116] Installing: tzdata ##################### [ 7/116] Installing: glibc-common ##################### [ 8/116] error: %post(glibc-common-2.3.4-2.19.i386) scriptlet failed, exit status 255 Installing: glibc ##################### [ 9/116] error: %post(glibc-2.3.4-2.19.i686) scriptlet failed, exit status 255 Installing: libselinux ##################### [ 10/116] error: %post(libselinux-1.19.1-7.i386) scriptlet failed, exit status 255 Installing: chkconfig ##################### [ 11/116] Installing: zlib ##################### [ 12/116] error: %post(zlib-1.2.1.2-1.2.i386) scriptlet failed, exit status 255 Installing: popt ##################### [ 13/116] error: %post(popt-1.9.1-13_nonptl.i386) scriptlet failed, exit status 255 Installing: mktemp ##################### [ 14/116] Installing: e2fsprogs ##################### [ 15/116] error: %post(e2fsprogs-1.35-12.3.EL4.i386) scriptlet failed, exit status 255 Installing: audit-libs ##################### [ 16/116] error: %post(audit-libs-1.0.12-1.EL4.i386) scriptlet failed, exit status 255 Installing: glib2 ##################### [ 17/116] error: %post(glib2-2.4.7-1.i386) scriptlet failed, exit status 255 Installing: bzip2-libs ##################### [ 18/116] error: %post(bzip2-libs-1.0.2-13.EL4.3.i386) scriptlet failed, exit status 255 Installing: elfutils-libelf ##################### [ 19/116] error: %post(elfutils-libelf-0.97-5.i386) scriptlet failed, exit status 255 Installing: expat ##################### [ 20/116] error: %post(expat-1.95.7-4.i386) scriptlet failed, exit status 255 Installing: gdbm ##################### [ 21/116] error: %post(gdbm-1.8.0-24.i386) scriptlet failed, exit status 255 Installing: libstdc++ ##################### [ 22/116] error: %post(libstdc++-3.4.5-2.i386) scriptlet failed, exit status 255 Installing: db4 ##################### [ 23/116] error: %post(db4-4.2.52-7.1.i386) scriptlet failed, exit status 255 Installing: beecrypt ##################### [ 24/116] error: %post(beecrypt-3.1.0-6.i386) scriptlet failed, exit status 255 Installing: rpm-libs ##################### [ 25/116] Installing: gmp ##################### [ 26/116] error: %post(gmp-4.1.4-3.i386) scriptlet failed, exit status 255 Installing: device-mapper ##################### [ 27/116] error: %post(device-mapper-1.02.02-3.0.RHEL4.i386) scriptlet failed, exit status 255 Installing: iputils ##################### [ 28/116] Installing: libsepol ##################### [ 29/116] error: %post(libsepol-1.1.1-2.i386) scriptlet failed, exit status 255 Installing: usbutils ##################### [ 30/116] Installing: libattr ##################### [ 31/116] error: %post(libattr-2.4.16-3.i386) scriptlet failed, exit status 255 Installing: libacl ##################### [ 32/116] error: %post(libacl-2.2.23-5.i386) scriptlet failed, exit status 255 Installing: ethtool ##################### [ 33/116] Installing: mingetty ##################### [ 34/116] Installing: pcre ##################### [ 35/116] error: %post(pcre-4.5-3.2.RHEL4.i386) scriptlet failed, exit status 255 Installing: libcap ##################### [ 36/116] error: %post(libcap-1.10-20.i386) scriptlet failed, exit status 255 Installing: termcap ##################### [ 37/116] Installing: libtermcap ##################### [ 38/116] error: %post(libtermcap-2.0.8-39.i386) scriptlet failed, exit status 255 Installing: bash ##################### [ 39/116] error: %post(bash-3.0-19.2.i386) scriptlet failed, exit status 255 Installing: ncurses ##################### [ 40/116] error: %post(ncurses-5.4-13.i386) scriptlet failed, exit status 255 Installing: info ##################### [ 41/116] error: %post(info-4.7-5.i386) scriptlet failed, exit status 255 Installing: grep ##################### [ 42/116] error: %post(grep-2.5.1-32.2.i386) scriptlet failed, exit status 255 Installing: readline ##################### [ 43/116] error: %post(readline-4.3-13.i386) scriptlet failed, exit status 255 Installing: findutils ##################### [ 44/116] error: %post(findutils-4.1.20-7.el4.1.i386) scriptlet failed, exit status 255 Installing: gawk ##################### [ 45/116] error: %post(gawk-3.1.3-10.1.i386) scriptlet failed, exit status 255 Installing: sed ##################### [ 46/116] error: %post(sed-4.1.2-4.i386) scriptlet failed, exit status 255 Installing: vim-common ##################### [ 47/116] Installing: sqlite ##################### [ 48/116] error: %post(sqlite-3.2.2-1.i386) scriptlet failed, exit status 255 Installing: python-sqlite ##################### [ 49/116] Installing: gpm ##################### [ 50/116] error: %post(gpm-1.20.1-71.RHEL4.i386) scriptlet failed, exit status 255 Installing: tar ##################### [ 51/116] error: %post(tar-1.14-10.RHEL4.i386) scriptlet failed, exit status 255 Installing: binutils ##################### [ 52/116] error: %post(binutils-2.15.92.0.2-18.i386) scriptlet failed, exit status 255 Installing: elfutils ##################### [ 53/116] error: %post(elfutils-0.97-5.i386) scriptlet failed, exit status 255 Installing: cpio ##################### [ 54/116] error: %post(cpio-2.5-9.RHEL4.i386) scriptlet failed, exit status 255 Installing: psmisc ##################### [ 55/116] Installing: less ##################### [ 56/116] Installing: gzip ##################### [ 57/116] error: %post(gzip-1.3.3-15.rhel4.i386) scriptlet failed, exit status 255 Installing: libxml2 ##################### [ 58/116] error: %post(libxml2-2.6.16-6.i386) scriptlet failed, exit status 255 Installing: net-tools ##################### [ 59/116] error: %post(net-tools-1.60-37.EL4.6.i386) scriptlet failed, exit status 255 Installing: alsa-lib ##################### [ 60/116] error: %post(alsa-lib-1.0.6-5.RHEL4.i386) scriptlet failed, exit status 255 Installing: audit ##################### [ 61/116] error: %post(audit-1.0.12-1.EL4.i386) scriptlet failed, exit status 255 Installing: centos-release ##################### [ 62/116] Installing: iproute ##################### [ 63/116] Installing: slang ##################### [ 64/116] error: %post(slang-1.4.9-8.i386) scriptlet failed, exit status 255 Installing: newt ##################### [ 65/116] error: %post(newt-0.51.6-7.rhel4.i386) scriptlet failed, exit status 255 Installing: alsa-utils ##################### [ 66/116] Installing: crontabs ##################### [ 67/116] Installing: mkisofs ##################### [ 68/116] Installing: eject ##################### [ 69/116] Installing: rootfiles ##################### [ 70/116] Installing: perl ##################### [ 71/116] Installing: cracklib ##################### [ 72/116] error: %post(cracklib-2.7-29.i386) scriptlet failed, exit status 255 Installing: cracklib-dicts ##################### [ 73/116] Installing: perl-Filter ##################### [ 74/116] Installing: vim-enhanced ##################### [ 75/116] error: %pre(coreutils-5.2.1-31.2.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-31.2 error: %pre(pam-0.77-66.14.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping pam-0.77-66.14 Installing: krb5-libs ##################### [ 78/116] error: %post(krb5-libs-1.3.4-33.i386) scriptlet failed, exit status 255 Installing: openssl ##################### [ 79/116] error: %post(openssl-0.9.7a-43.8.i686) scriptlet failed, exit status 255 Installing: python ##################### [ 80/116] Installing: shadow-utils ##################### [ 81/116] error: %post(shadow-utils-4.0.3-60.RHEL4.i386) scriptlet failed, exit status 255 Installing: module-init-tools ##################### [ 82/116] error: %post(module-init-tools-3.1-0.pre5.3.2.i386) scriptlet failed, exit status 255 Installing: util-linux ##################### [ 83/116] error: %post(util-linux-2.12a-16.EL4.16.i386) scriptlet failed, exit status 255 error: %pre(dbus-0.22-12.EL.5.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping dbus-0.22-12.EL.5 error: %pre(rpm-4.3.3-13_nonptl.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping rpm-4.3.3-13_nonptl Installing: rpm-python ##################### [ 86/116] error: %post(rpm-python-4.3.3-13_nonptl.i386) scriptlet failed, exit status 255 Installing: dbus-glib ##################### [ 87/116] error: %post(dbus-glib-0.22-12.EL.5.i386) scriptlet failed, exit status 255 error: %pre(MAKEDEV-3.15.2-3.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping MAKEDEV-3.15.2-3 Installing: python-elementtree ##################### [ 89/116] Installing: python-urlgrabber ##################### [ 90/116] Installing: libxml2-python ##################### [ 91/116] Installing: bind-libs ##################### [ 92/116] error: %post(bind-libs-9.2.4-2.i386) scriptlet failed, exit status 255 Installing: SysVinit ##################### [ 93/116] error: %post(SysVinit-2.85-34.3.i386) scriptlet failed, exit status 255 Installing: procps ##################### [ 94/116] error: %post(procps-3.2.3-8.4.i386) scriptlet failed, exit status 255 Installing: sysklogd ##################### [ 95/116] error: %post(sysklogd-1.4.1-26_EL.i386) scriptlet failed, exit status 255 Installing: bind-utils ##################### [ 96/116] Installing: wget ##################### [ 97/116] error: %post(wget-1.10.2-0.40E.i386) scriptlet failed, exit status 255 Installing: hotplug ##################### [ 98/116] Installing: lvm2 ##################### [ 99/116] Installing: udev ##################### [100/116] error: %post(udev-039-10.12.EL4.i386) scriptlet failed, exit status 255 Installing: mkinitrd ##################### [101/116] error: %pre(hal-0.4.2-3.EL4.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping hal-0.4.2-3.EL4 Installing: kudzu ##################### [103/116] error: %post(kudzu-1.1.95.15-1.i386) scriptlet failed, exit status 255 Installing: which ##################### [104/116] error: %post(which-2.16-4.i386) scriptlet failed, exit status 255 error: %pre(initscripts-7.93.24.EL-1.1.centos4.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping initscripts-7.93.24.EL-1.1.centos4 error: %pre(kernel-2.6.9-34.0.2.EL.i686) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping kernel-2.6.9-34.0.2.EL Installing: cyrus-sasl ##################### [107/116] error: %post(cyrus-sasl-2.1.19-5.EL4.i386) scriptlet failed, exit status 255 Installing: cyrus-sasl-md5 ##################### [108/116] Installing: openldap ##################### [109/116] error: %post(openldap-2.2.13-4.i386) scriptlet failed, exit status 255 Installing: libuser ##################### [110/116] error: %post(libuser-0.52.5-1.el4.1.i386) scriptlet failed, exit status 255 Installing: pciutils ##################### [111/116] Installing: dhclient ##################### [112/116] Installing: vixie-cron ##################### [113/116] error: %post(vixie-cron-4.1-44.EL4.i386) scriptlet failed, exit status 255 Installing: gnupg ##################### [114/116] error: %post(gnupg-1.2.6-6.i386) scriptlet failed, exit status 255 Installing: passwd ##################### [115/116] Installing: yum [116/116]warning: /etc/yum.conf created as /etc/yum.conf.rpmnew Installing: yum ##################### [116/116] error: %post(yum-2.4.2-2.centos4.noarch) scriptlet failed, exit status 255
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos