forked from mirrors/nixpkgs
added example for GRUB 2
svn path=/nixos/trunk/; revision=33448
This commit is contained in:
parent
040042b8a5
commit
f4d26eb446
|
@ -106,8 +106,17 @@ in
|
||||||
extraEntries = mkOption {
|
extraEntries = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
|
# GRUB 1 example (not GRUB 2 compatible)
|
||||||
title Windows
|
title Windows
|
||||||
chainloader (hd0,1)+1
|
chainloader (hd0,1)+1
|
||||||
|
|
||||||
|
# GRUB 2 example
|
||||||
|
menuentry "Windows7" {
|
||||||
|
title Windows7
|
||||||
|
insmod ntfs
|
||||||
|
set root='(hd1,1)'
|
||||||
|
chainloader +1
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Any additional entries you want added to the GRUB boot menu.
|
Any additional entries you want added to the GRUB boot menu.
|
||||||
|
|
Loading…
Reference in a new issue