diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-02-26 16:05:15 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-02-26 16:05:15 +0000 |
commit | 874095679362bbec9e90cb7f9d8ee988c9a49bf6 (patch) | |
tree | d46843113728e6262dccc4ce9349a1186168c533 | |
parent | 5b7f5b1f2c1864811af3f742ea3293664f1c71c0 (diff) | |
download | bootloader-theme-874095679362bbec9e90cb7f9d8ee988c9a49bf6.tar bootloader-theme-874095679362bbec9e90cb7f9d8ee988c9a49bf6.tar.gz bootloader-theme-874095679362bbec9e90cb7f9d8ee988c9a49bf6.tar.bz2 bootloader-theme-874095679362bbec9e90cb7f9d8ee988c9a49bf6.tar.xz bootloader-theme-874095679362bbec9e90cb7f9d8ee988c9a49bf6.zip |
Fix index of entry to boot passed to the bootloader, fixes bug #48150
-rw-r--r-- | src/common.inc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/common.inc b/src/common.inc index 2ead446..64ac8b6 100644 --- a/src/common.inc +++ b/src/common.inc @@ -264,7 +264,17 @@ dup boot.splitstr join bc.cmd over strcpy pop free dup { free } forall free - pop bc.cmd menu.entry + pop bc.cmd + + % we want the index of the entry that was selected in the list of *all* + % entries (including hidden ones) + menu.texts menu.entry get + 0 1 menu.texts.real length + { + dup menu.texts.real exch get + 2 index eq { exit } { pop } ifelse + } for + exch pop } def |