Re: Revisor and live_ram

2010-09-15 Thread Trever Fischer

 On Wed, 2010-09-15 at 01:25 -0400, Trever Fischer wrote:
 Excuse me if this is the wrong place to send this.

 As my fedora ambassador duties, I tend to show other students the neat
 things you can do with Fedora with my trusty USB drive I always keep on
 my
 keychain. More often than not, I'm booting up Fedora into some laptop or
 university desktop with copious quantities of ram (more than 2G,
 commonly
 4 or more). Also more often than not, I've edited the boot options when
 it
 starts up to add the 'live_ram' flag which copies the image into RAM and
 permits me to unplug the USB drive so I'm not late for class while they
 explore.

 I've longed for an option in the stock boot menu to expose this
 seemingly
 hidden magic to the general public, so I wrote a tiny patch for
 python-imgcreate (which is used by revisor). It adds one new option to
 the
 isolinux boot menu, labeled Boot and run from RAM.

 I've tested it by re-spinning the KDE spin and the custom one I use for
 day-to-day use on my usb drive. Flawless victory.

 You'll probably need to re-diff this against the recent changes to add a
 'basic graphics driver' entry to the same boot menu -
 http://koji.fedoraproject.org/koji/buildinfo?buildID=195368 is the
 latest build (or check git).
I already did, actually. This patch puts the code immediately before the
Basic Video option, and can be cleanly applied to 6f79b742.


-- 
Trever Fischer (tdfischer)
Fedora Ambassador, KDE Hacker
http://wm161.net
GPG: C40F2998 hkp://wwwkeys.pgp.net

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Revisor and live_ram

2010-09-14 Thread Trever Fischer
Excuse me if this is the wrong place to send this.

As my fedora ambassador duties, I tend to show other students the neat
things you can do with Fedora with my trusty USB drive I always keep on my
keychain. More often than not, I'm booting up Fedora into some laptop or
university desktop with copious quantities of ram (more than 2G, commonly
4 or more). Also more often than not, I've edited the boot options when it
starts up to add the 'live_ram' flag which copies the image into RAM and
permits me to unplug the USB drive so I'm not late for class while they
explore.

I've longed for an option in the stock boot menu to expose this seemingly
hidden magic to the general public, so I wrote a tiny patch for
python-imgcreate (which is used by revisor). It adds one new option to the
isolinux boot menu, labeled Boot and run from RAM.

I've tested it by re-spinning the KDE spin and the custom one I use for
day-to-day use on my usb drive. Flawless victory.

8
diff --git a/imgcreate/live.py b/imgcreate/live.py
index fcb7198..7cfd14c 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -518,6 +518,17 @@ menu hiddenrow 5
 cfg += self.__get_image_stanza(is_xen, isDracut,
fslabel = self.fslabel,
isofstype = auto,
+   liveargs = kern_opts + 
live_ram,
+   long = long +  and run from
RAM,
+   short = linux-ram + index,
+   basicvideo = ,
+   xdriver = ,
+   extra = ,
+   index = index)
+
+cfg += self.__get_image_stanza(is_xen, isDracut,
+   fslabel = self.fslabel,
+   isofstype = auto,
liveargs = kern_opts,
long = long +  (Basic Video),
short = linux + index,
8


-- 
Trever Fischer (tdfischer)
Fedora Ambassador, KDE Hacker
http://wm161.net
GPG: C40F2998 hkp://wwwkeys.pgp.net

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel