Building a UML image of CentOS 4.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm wondering what the best way of building a UML image is; I tried the
following based on documents I found on the web for FC2

  mkdir -p $T/etc $T/dev $T/proc $T/sys $T/var/tmp $T/var/cache/yum \
           $T/var/lock/rpm $T/var/cache/yum/update/headers \
           $T/var/cache/yum/update/packages

  touch $T/etc/fstab
  mknod $T/dev/null c 1 3
  chmod 666 $T/dev/null
  mount --bind /proc $T/proc
  mount --bind /sys $T/sys

  rpm --root $T -Uvh --nodeps --force $UML/RPM/centos-release-4-4.2.i386.rpm \
                                      $UML/RPM/yum-2.4.3-1.c4.noarch.rpm

  yum -y -C --installroot=$T groupinstall "Base"


($T is a temp directory; $UML is where I'm storing my software)

Unfortunately yum fails to run, complaining about repomd.xml files being
missing.



+ rpm --root /var/tmp/bld.13824 -Uvh --nodeps --force /usr/local/uml/RPM/centos-release-4-4.2.i386.rpm /usr/local/uml/RPM/yum-2.4.3-1.c4.noarch.rpm
warning: /usr/local/uml/RPM/centos-release-4-4.2.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:yum                    ########################################### [ 50%]
error: %post(yum-2.4.3-1.c4.noarch) scriptlet failed, exit status 255
   2:centos-release         ########################################### [100%]
+ yum -y -C --installroot=/var/tmp/bld.13824 groupinstall Base
Setting up Group Process
Setting up repositories
Cannot open/read repomd.xml file for repository: update
Cannot find repomd.xml file for update
Error: Cannot find repomd.xml file for update



(The yum rpm install problem is because chkconfig doesn't exist; not
a problem.)

Any ideas?

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux