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 |
|
w = intf.waitWindow(_("Converting to RAID"), |
43 |
|
_("Converting to RAID, this may take several minutes...")) |
44 |
|
|
45 |
|
# XXX - FIXME - HACK RAID upgrade |
46 |
|
|
47 |
|
rc = iutil.execWithRedirect("/tmp/updates/raidconvert", |
48 |
|
["raidconvert"], |
49 |
|
stdin = None, |
50 |
|
stdout = "/dev/tty5", |
51 |
|
stderr = "/dev/tty5") |
52 |
|
w.pop() |
53 |
|
|
54 |
|
if rc: |
55 |
|
raise SystemError |
56 |
|
|
57 |
if dir == DISPATCH_BACK: |
if dir == DISPATCH_BACK: |
58 |
return |
return |
59 |
if id.rootParts is None: |
if id.rootParts is None: |
154 |
return -1 |
return -1 |
155 |
|
|
156 |
if flags.setupFilesystems: |
if flags.setupFilesystems: |
|
oldfsset.checkFilesystems(instPath) |
|
157 |
oldfsset.mountFilesystems(instPath, readOnly = readOnly) |
oldfsset.mountFilesystems(instPath, readOnly = readOnly) |
158 |
|
|
159 |
# XXX we should properly support 'auto' at some point |
# XXX we should properly support 'auto' at some point |
406 |
try: |
try: |
407 |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
408 |
except: |
except: |
409 |
pass |
log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
# log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
410 |
|
|
411 |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
412 |
instPath) |
instPath) |