Fixing the top-level expression not to boot only from uImage, but keep on

booting vmlinuz in non armv5tel.

svn path=/nixos/trunk/; revision=17393
This commit is contained in:
Lluís Batlle i Rossell 2009-09-23 20:51:09 +00:00
parent 8b9f510b08
commit ff1a79ed88

View File

@ -32,11 +32,14 @@ let
config.nesting.children;
systemBuilder =
''
systemBuilder = let
kernelfile = if (pkgs.stdenv.system == "armv5tel-linux")
then "${config.boot.kernelPackages.kernel}/uImage"
else "${config.boot.kernelPackages.kernel}/vmlinuz";
in ''
ensureDir $out
ln -s ${config.boot.kernelPackages.kernel}/uImage $out/kernel
ln -s ${kernelfile} $out/kernel
if [ -n "$grub" ]; then
ln -s $grub $out/grub
fi