summary refs log tree commit diff
path: root/pkgs/tools/misc/grub/default.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-07-13 16:57:33 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-07-13 16:57:33 +0000
commit3a8a3c91f75761f83fa1090a328c53509afeed83 (patch)
treef6e23a0f34d349832ec28bad410815f2e15d8c4c /pkgs/tools/misc/grub/default.nix
parented658483e9e42198a5cbbeff950ecbf8a12bc330 (diff)
downloadnixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar.gz
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar.bz2
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar.lz
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar.xz
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.tar.zst
nixpkgs-3a8a3c91f75761f83fa1090a328c53509afeed83.zip
Adding a patch for grub, so livecds with grub can still boot with buggy bioses,
as those of Acer 292LMi or Airis N990. This allows booting the NixOS ISO releases.
I made it optional, not included by default. I don't think it would harm at all enabling
it always - let it be decided on forum.

svn path=/nixpkgs/trunk/; revision=16341
Diffstat (limited to 'pkgs/tools/misc/grub/default.nix')
-rw-r--r--pkgs/tools/misc/grub/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/grub/default.nix b/pkgs/tools/misc/grub/default.nix
index e0c35d63f72..f6f8f3ca251 100644
--- a/pkgs/tools/misc/grub/default.nix
+++ b/pkgs/tools/misc/grub/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, autoconf, automake}:
+{stdenv, fetchurl, autoconf, automake, buggyBiosCDSupport ? false}:
 
 stdenv.mkDerivation {
   name = "grub-0.97-patch-1.9";
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
     # /dev/disk/by-label/bla.  The symlink resolution code in
     # grub-install isn't smart enough.
     ./symlink.patch
-  ];
+  ] ++ (stdenv.lib.optional buggyBiosCDSupport ./buggybios.patch);
 
   # Autoconf/automake required for the splashimage patch.
   buildInputs = [autoconf automake];