[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Anaconda - Kadischi LiveCD installer

I am working with some prototype installer Anaconda/Kadischi discs..
but to make that happen, Anaconda has been modified just a tiny bit.

I have a patch here that deals with a make dev/root node that if it recieves an OSError it will pass instead of fail, which is required inside the LiveCD environment. I'm not absolutely sure this is the
right way to handle this scenario however. Any thoughts?

I also have a patch that makes Anaconda not fail, when trying to invoke syslogd when it is already running in teh LiveCD environment, and isn't in the same path as Anaconda would be looking for in a normal case scenario. Please look at the patches, and see if we can do something proper here
to allow Anaconda to be spawned from a working LiveCD system.

If anything, the patches at least provide a standpoint from my situation to explain where problems are occuring in spawning Anaconda on a running, Live system. Maybe the devs know a better solution than what is delivered in teh patches.
These problems rectified brings it one step closer to having
a LiveCD to system installer, which would be awesome.

Thank you.
J. Hartline
--- fsset.py.orig	2006-09-16 20:06:21.000000000 -0500
+++ fsset.py	2006-09-16 20:11:45.000000000 -0500
@@ -1285,7 +1285,10 @@
             isys.makeDevInode(root.device.getDevice(), dev)        
         rdev = os.stat(dev).st_rdev
-        os.mknod("%s/dev/root" % (instPath,), stat.S_IFBLK | 0600, rdev)
+        try:
+            os.mknod("%s/dev/root" % (instPath,), stat.S_IFBLK | 0600, rdev)
+        except:
+            pass
     # return the "boot" device
     def getBootDev(self):
--- syslogd.py.orig	2006-09-16 20:07:19.000000000 -0500
+++ syslogd.py	2006-09-16 20:12:13.000000000 -0500
@@ -73,8 +73,11 @@
                     if os.access (f+"/syslogd", os.X_OK):
                         path = f+"/syslogd"
-            os.execv (path, ("syslogd", root, log))
+            try: 
+                os.execv (path, ("syslogd", root, log))
+            except:
+                pass
     def stop(self):
         if self.pid == -1:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]