Bug#612995: grub-pc: pager does not work within a menuentry if loaded via configfile
Josh Triplett
josh at joshtriplett.org
Sat Feb 12 05:56:25 UTC 2011
Package: grub-pc
Version: 1.99~rc1-2
Severity: normal
>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
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy
ii grub-common 1.99~rc1-2 GRand Unified Bootloader, version
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-5 The Linux Kernel Device Mapper use
ii ucf 3.0025+nmu1 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 6.0.5 common files for the Debian Deskto
-- debconf information excluded
More information about the Pkg-grub-devel
mailing list