- getDict = {'gpgcheck':1,'arch':arch}
- url="PlanetLabConf/yum.conf.php"
- dest="%s/etc/yum.conf"%SYSIMG_PATH
- log.write("downloading bootstrap yum.conf\n")
- yumconf=bs_request.DownloadFile (url,getDict,None,
- 1, 1, dest)
- if not yumconf:
- log.write("Cannot fetch %s from %s - aborting yum extensions"%(dest,url))
- # failures here should not stop the install process
- return 1
-
- # yum also needs /proc to be mounted
- # do it here so as to not break the tarballs-only case
- cmd = "mount -t proc none %s/proc" % SYSIMG_PATH
- utils.sysexec( cmd, log )
- # we now just need to yum groupinstall everything
- for extension in yum_extensions:
- yum_command="yum groupinstall extension%s"%extension
- utils.breakpoint ("before chroot %s %s"%(SYSIMG_PATH,yum_command))
- log.write("Attempting to install extension %s through yum\n"%extension)
- utils.sysexec_noerr("chroot %s %s" % (SYSIMG_PATH,yum_command))
- # xxx how to check that this completed correctly ?
- # let's cleanup
- utils.sysexec_noerr( "umount %s/proc" % SYSIMG_PATH, log )
- utils.breakpoint ("Done with yum extensions")