It sounds to me like in this case, loader is setting up /mnt/runtime or
wherever as the mount point for stage2, but later on systemMounted
thinks it's under /mnt/source and that's what's causing the error.
Agreed?
In that case we either need to make systemMounted smarter and know that
/mnt/runtime could be mounted, in which case it shouldn't do anything,
or we need to play with stuff in loader to move the stage2 image around.
I know which I prefer.
This is sort of what I was thinking, though this is completely untested:
diff --git a/yuminstall.py b/yuminstall.py
index a815e55..e62bc61 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -334,6 +334,11 @@ class AnacondaYum(YumSorter):
if self._loopbackFile and os.path.exists(self._loopbackFile):
return
+ # If we have the stage2 image mounted off the CD, don't do
+ # the rest of this stuff.
+ if os.path.ismount("/mnt/runtime"):
+ return
+
stage2img = None
if os.path.exists("/tmp/stage2.img"):
- Chris