Revisor and live_ram

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

 



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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux