Bug 155398 - [RFE] add boot-time option to avoid loading the entire rescue image into memory
[RFE] add boot-time option to avoid loading the entire rescue image into memory
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Mike McLean
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2005-04-19 18:27 EDT by Alexandre Oliva
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-22 08:54:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexandre Oliva 2005-04-19 18:27:31 EDT
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 01:32:50 EDT
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 13:25:22 EDT

                    /* 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 17:39:17 EDT
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 08:54:27 EDT
Thanks, verified to work.

Note You need to log in before you can comment on or make changes to this bug.