bugGNU GRUB - Bugs: bug #32450, pager does not work within a...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #32450: pager does not work within a menuentry if loaded via configfile

Submitter:  Josh Triplett <joshtriplett>
Submitted:  Sun 13 Feb 2011 07:16:49 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 25 Mar 2011 01:40:55 AM UTC, comment #2: 

Thanks, the fix (in bzr rev 3106) works perfectly here.

Josh Triplett <joshtriplett>
Wed 23 Mar 2011 11:46:20 AM UTC, comment #1: 

fixed

Vladimir Serbinenko <phcoder>
Group administrator
Sun 13 Feb 2011 07:16:49 AM UTC, original submission:  

Originally reported as http://bugs.debian.org/612995

From the command line, I can "set pager=1", and then either cat a long file or use a for loop to echo 30 lines, and see that the pager puts up a "-- MORE --" prompt and waits for a key.  However, the same thing doesn't seem to work from within a menuentry in a file loaded by "configfile".  Try putting the following file as "test.cfg" somewhere grub can get at, and then loading it via "configfile /path/to/test.cfg" from the grub command line:


set pager=1

menuentry "Always present" {
    echo Insert something always useful here.
    for x in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ; do
        echo Piles of output
    done
}

x=3
if [ "$x" -gt 0 ] ; then
    menuentry "Conditionally present" {
        echo Insert something conditionally useful here.
    }
fi

if [ "$x" -gt 5 ] ; then
    menuentry "Conditionally present (and missing)" {
        echo Insert something conditionally non-useful here.
    }
fi


Loading test.cfg via configfile will bring up a menu with two entries. Choosing either one of them should prompt for a key at the end of the menuentry, and choosing the first one should additionally have a MORE prompt after 24 lines as well as the prompt at the end.

If instead I make that file grub.cfg, rather than loading it via configfile from the command line, then the MORE prompt works in the first menu entry, but I still don't get prompts at the end of each menuentry's output like I did with previous versions of GRUB2.  (I know that it works with at least bzr revision 2587.)

Josh Triplett <joshtriplett>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by joshtriplett (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-23 phcoder Open/ClosedOpen Closed
    2011-03-23 phcoder StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code