Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 155398

Summary: [RFE] add boot-time option to avoid loading the entire rescue image into memory
Product: [Fedora] Fedora Reporter: Alexandre Oliva <oliva>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-22 12:54:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alexandre Oliva 2005-04-19 22:27:31 UTC
It takes a long time to load the rescue image into memory, especially on
notebooks with their slow CD drives.  If all I want to do with the rescue image
will take just a few seconds, it's not reasonable to wait 1-2 minutes to have it
loaded into memory.  I've often wanted an option to enable me to skip the
loading into memory.  Setting a low limit for memory might work, but it might
have other undesirable side effects.  Any chance such an option could be added?

Comment 1 Jeremy Katz 2005-04-27 05:32:50 UTC
We shouldn't be loading things into memory and instead just mounting it.  Can
you provide more details on what you're seeing here?

Comment 2 Alexandre Oliva 2005-05-04 17:25:22 UTC

                    /* if in rescue mode lets copy stage 2 into RAM so we can */
                   /* free up the CD drive and user can have it avaiable to  */
                   /* aid system recovery.                                   */
                   if (FL_RESCUE(flags) && totalMemory() > 128000) {
                        snprintf(path, sizeof(path),
"/mnt/source/%s/base/stage2.img", getProductPath());
                        rc = copyFile(path, "/tmp/ramfs/stage2.img");
                        stage2img = "/tmp/ramfs/stage2.img";
                        stage2inram = 1;
                    } else {
                        snprintf(path, sizeof(path),
"/mnt/source/%s/base/stage2.img", getProductPath());
                        stage2img = strdup(path);
                        stage2inram = 0;

Comment 3 Jeremy Katz 2005-05-05 21:39:17 UTC
Hmm, I had forgotten all about that / didn't know about it to begin with :-)

Fixed in CVS so that booting with 'linux text rescue' won't load it.  It's a
little bit of overload, but I think it's fair enough at this point.

Comment 4 Alexandre Oliva 2005-05-22 12:54:27 UTC
Thanks, verified to work.