PATCH: Anaconda & Kadischi installer, graphical mode

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

 



Here is a patch against anaconda-11.2.0.54-2 which I've created which allows Anaconda to be run in it's graphical mode, while inside a LiveCD, when doing LiveCD to HDD installs.
Since we pass an http:// or ftp:// URL to Anaconda, it's traditional setting
was to use TUI mode. I've tested this and it seems to work OK.

The only other solution I could think of, whether the patch is accepted or not is to actually check for the presence of a "/.livecd" file in the root of the environment we are running in, this would eliminate having to check flags.rootpath, and give finer grained control. Not knowing the route Anaconda is going to take in light of Pilgrim, and since we don't
use the already existant flags.livecd, I've provided both patches.

If niether patch is accepted, or a better method cannot be put in place to allow Anaconda to run in GUI mode when run within the LiveCD environment, namely Kadischi's I can always just provide the patch in the Kadischi package, and document it for those wanting to build or have LiveCDs that will install to disk in GUI mode.. when using http:// or ftp:// URL repository strings.

Attached are anaconda-live-file-GUI.patch for checking the presence of "/.livecd" file and
anaconda-live-rootpath-GUI.patch for simply checking flags.rootpath.

Thanks.
J. Hartline
--- anaconda.orig	2007-04-22 14:19:48.000000000 -0500
+++ anaconda	2007-04-24 02:07:52.000000000 -0500
@@ -715,7 +715,8 @@
     if not opts.display_mode:
         if (anaconda.methodstr and 
             anaconda.methodstr.startswith('ftp://') or
-            anaconda.methodstr.startswith('http://')):
+            anaconda.methodstr.startswith('http://')) and not
+            os.access('/.livecd', os.R_OK):           
             opts.display_mode = 't'
         else:
             opts.display_mode = 'g'
--- anaconda.orig	2007-04-22 14:19:48.000000000 -0500
+++ anaconda	2007-04-24 01:56:47.000000000 -0500
@@ -715,7 +715,8 @@
     if not opts.display_mode:
         if (anaconda.methodstr and 
             anaconda.methodstr.startswith('ftp://') or
-            anaconda.methodstr.startswith('http://')):
+            anaconda.methodstr.startswith('http://')) and not
+            flags.rootpath):
             opts.display_mode = 't'
         else:
             opts.display_mode = 'g'

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux