This is an ugly hack, but it gets nfsiso working. You can switch from NFSISO to another source, and back to the same NFSISO, just not to a different NFSISO. That's going to have to be a "known issue" for F18 Beta. --- pyanaconda/packaging/yumpayload.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py index 787f951..50f281d 100644 --- a/pyanaconda/packaging/yumpayload.py +++ b/pyanaconda/packaging/yumpayload.py @@ -133,9 +133,14 @@ class YumPayload(PackagePayload): if self.install_device and \ get_mount_device(ISO_DIR) == self.install_device.path: self.install_device.teardown(recursive=True) - else: - # NFS - isys.umount(ISO_DIR, removeDir=False) + # The below code will fail when nfsiso is the stage2 source + # But if we don't do this we may not be able to switch from + # one nfsiso repo to another nfsiso repo. We need to have a + # way to detect the stage2 state and work around it. + # Commenting out the below is a hack for F18. FIXME + #else: + # # NFS + # isys.umount(ISO_DIR, removeDir=False)
self.install_device = None
This is an ugly hack, but it gets nfsiso working. You can switch from NFSISO to another source, and back to the same NFSISO, just not to a different NFSISO. That's going to have to be a "known issue" for F18 Beta.
Yeah, I guess we'll have to do this for now. Remember to push to f18-beta-branch as well.
- Chris
anaconda-patches@lists.fedorahosted.org