1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Removing grub from the system expression for armv5tel-linux.

svn path=/nixos/trunk/; revision=17392
This commit is contained in:
Lluís Batlle i Rossell 2009-09-23 20:51:00 +00:00
parent b2334990db
commit 8b9f510b08
2 changed files with 8 additions and 5 deletions

View file

@ -27,7 +27,6 @@ let
pkgs.gnupatch
pkgs.gnused
pkgs.gnutar
pkgs.grub
pkgs.gzip
pkgs.host
pkgs.iputils
@ -60,7 +59,8 @@ let
pkgs.usbutils
pkgs.utillinux
pkgs.wirelesstools
] ++ config.environment.extraPackages;
] ++ optional (pkgs.stdenv.system != "armv5tel-linux") [ pkgs.grub ]
++ config.environment.extraPackages;
options = {

View file

@ -36,8 +36,10 @@ let
''
ensureDir $out
ln -s ${config.boot.kernelPackages.kernel}/vmlinuz $out/kernel
ln -s $grub $out/grub
ln -s ${config.boot.kernelPackages.kernel}/uImage $out/kernel
if [ -n "$grub" ]; then
ln -s $grub $out/grub
fi
ln -s ${config.system.build.bootStage2} $out/init
ln -s ${config.system.build.initialRamdisk}/initrd $out/initrd
ln -s ${config.system.activationScripts.script} $out/activate
@ -71,7 +73,8 @@ let
name = "system";
buildCommand = systemBuilder;
inherit children;
inherit (pkgs) grub;
grub = if (pkgs.stdenv.system != "armv5tel-linux") then pkgs.grub
else null;
grubDevice = config.boot.grubDevice;
kernelParams =
config.boot.kernelParams ++ config.boot.extraKernelParams;