[Fedora-livecd-list] imgcreate/live.py

Bruno Wolff III bruno at fedoraproject.org
Tue Sep 14 01:05:58 UTC 2010


 imgcreate/live.py |   29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

New commits:
commit ef154abad01d221f1917c58946926770cd80f5fa
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Mon Sep 13 20:00:44 2010 -0500

    Revise basic video change to fix issue with default menu item

diff --git a/imgcreate/live.py b/imgcreate/live.py
index 1e0f117..e4e0c2e 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -452,24 +452,12 @@ menu hiddenrow 5
             template = """label %(short)s
   menu label %(long)s
   kernel vmlinuz%(index)s
-  append initrd=initrd%(index)s.img root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(extra)s
-
-
-  label %(short)s
-  menu label %(long)s %(basicvideo)s
-  kernel vmlinuz%(index)s
   append initrd=initrd%(index)s.img root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(xdriver)s %(extra)s
 """
         else:
             template = """label %(short)s
   menu label %(long)s
   kernel mboot.c32
-  append xen%(index)s.gz --- vmlinuz%(index)s root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(extra)s --- initrd%(index)s.img
-
-
-  label %(short)s
-  menu label %(long)s %(basicvideo)s
-  kernel mboot.c32
   append xen%(index)s.gz --- vmlinuz%(index)s root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(xdriver)s %(extra)s --- initrd%(index)s.img
 """
         return template % args
@@ -504,7 +492,7 @@ menu hiddenrow 5
 
             # Basic video driver
             basic = "system with basic video driver"
-            xdriver = "xdriver=vesa"
+            xdriver = "xdriver=vesa nomodeset"
 
 
             # tell dracut not to ask for LUKS passwords or activate mdraid sets
@@ -519,14 +507,25 @@ menu hiddenrow 5
                                            liveargs = kern_opts,
                                            long = long,
                                            short = "linux" + index,
-                                           basicvideo = basic,
-                                           xdriver = xdriver,
+                                           basicvideo = "",
+                                           xdriver = "",
                                            extra = "",
                                            index = index)
 
             if default:
                 cfg += "menu default\n"
 
+            cfg += self.__get_image_stanza(is_xen, isDracut,
+                                           fslabel = self.fslabel,
+                                           isofstype = "auto",
+                                           liveargs = kern_opts,
+                                           long = long,
+                                           short = "linux" + index,
+                                           basicvideo = basic,
+                                           xdriver = xdriver,
+                                           extra = "",
+                                           index = index)
+
             if checkisomd5:
                 cfg += self.__get_image_stanza(is_xen, isDracut,
                                                fslabel = self.fslabel,




More information about the livecd mailing list