I think this makes the memtest module work on grub1.

But I can't test it because grub-install fails for me for grub1.

I tested it works for grub2.


svn path=/nixos/trunk/; revision=33739
This commit is contained in:
Lluís Batlle i Rossell 2012-04-10 22:20:20 +00:00
parent fb0a54b803
commit 918edf8612
1 changed files with 6 additions and 1 deletions

View File

@ -19,11 +19,16 @@ in
}; };
config.boot.loader.grub = mkIf isEnabled { config.boot.loader.grub = mkIf isEnabled {
extraEntries = extraEntries = if config.boot.loader.grub.version == 2 then
'' ''
menuentry "${memtest86.name}" { menuentry "${memtest86.name}" {
linux16 $bootRoot/memtest.bin linux16 $bootRoot/memtest.bin
} }
''
else
''
menuentry "${memtest86.name}"
linux16 $bootRoot/memtest.bin
''; '';
extraPrepareConfig = extraPrepareConfig =
'' ''