/[smeserver]/cdrom.image/updates/upgrade.py
ViewVC logotype

Diff of /cdrom.image/updates/upgrade.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by slords, Mon Aug 1 05:02:21 2005 UTC Revision 1.7 by growell, Fri Sep 16 22:11:45 2005 UTC
# Line 38  from rhpl.translate import _ Line 38  from rhpl.translate import _
38  upgrade_remove_blacklist = ()  upgrade_remove_blacklist = ()
39    
40  def findRootParts(intf, id, dispatch, dir, chroot):  def findRootParts(intf, id, dispatch, dir, chroot):
41    
42        # XXX - FIXME - HACK RAID upgrade
43        rc = iutil.execWithRedirect("/tmp/updates/raidconvert",
44                                        ["raidconvert"],
45                                        stdin = None,
46                                        stdout = "/dev/tty5",
47                                        stderr = "/dev/tty5")
48        if rc:
49            raise SystemError
50    
51      if dir == DISPATCH_BACK:      if dir == DISPATCH_BACK:
52          return          return
53      if id.rootParts is None:      if id.rootParts is None:
# Line 138  def mountRootPartition(intf, rootInfo, o Line 148  def mountRootPartition(intf, rootInfo, o
148              return -1              return -1
149    
150      if flags.setupFilesystems:      if flags.setupFilesystems:
         oldfsset.checkFilesystems(instPath)  
151          oldfsset.mountFilesystems(instPath, readOnly = readOnly)          oldfsset.mountFilesystems(instPath, readOnly = readOnly)
152    
153      # XXX we should properly support 'auto' at some point      # XXX we should properly support 'auto' at some point
# Line 391  def upgradeFindPackages(intf, method, id Line 400  def upgradeFindPackages(intf, method, id
400              try:              try:
401                  os.unlink("%s/var/lib/rpm/%s" %(instPath, file))                  os.unlink("%s/var/lib/rpm/%s" %(instPath, file))
402              except:              except:
403                  pass                  log("failed to unlink /var/lib/rpm/%s" %(file,))
 #                log("failed to unlink /var/lib/rpm/%s" %(file,))  
404    
405          packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist,          packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist,
406                                                   instPath)                                                   instPath)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed