Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64 - odd bootstrap behavior



On Thu, 18 Aug 2011, Wolfgang Solfrank wrote:

Hi,

Just a bit more info - the printed menu is 1-origin, but it starts with the 2nd "Boot single user" line. It looks like this:

1. Boot single user
2. Disable ACPI
3. Disable ACPI and SMP
4. Drop to boot prompt
5. Run memory test

So, it is actually completely ignoring my first menu line!

menu=Boot normally


Anyone else seeing this?

This is an old bug in the parsing of boot.cfg.  It doesn't ignore
empty lines or, contrary to what the manual page says, lines beginning
with a hash.  It prepends those to the next line and then tries to split
the result at a "=", looks up the part before the "=" in the list of
available commands, silently dropping anything it cannot understand.

So in your case, it tries to look up the command "\nmenu", which it
doesn't grok.

Oh, I just remembered that I did send-pr this last year, but forgot
about it.  Try the fix from PR#43563.

The fix from PR/43563 works great and my system once again boots normally/correctly.

To those who are more expert than I in stuff from /stand:

        Is there any reason why this fix should not be committed?


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index