From 81655b72471b329234db05082d3321ad04543d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 19 Mar 2012 19:01:52 +0000 Subject: [PATCH] Have a more featured initrd and crashDump for the pc system tarball. svn path=/nixos/trunk/; revision=33274 --- modules/installer/cd-dvd/system-tarball-pc.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/installer/cd-dvd/system-tarball-pc.nix b/modules/installer/cd-dvd/system-tarball-pc.nix index 3da07c39336..04dec697a1b 100644 --- a/modules/installer/cd-dvd/system-tarball-pc.nix +++ b/modules/installer/cd-dvd/system-tarball-pc.nix @@ -158,10 +158,19 @@ in services.openssh.enable = true; jobs.openssh.startOn = pkgs.lib.mkOverrideTemplate 50 {} ""; - boot.kernelPackages = pkgs.linuxPackages_2_6_39; + # To have a nicer initrd, even though the initrd can't mount an nfsroot now + boot.initrd.withExtraTools = true; + + # To be able to use the systemTarball to catch troubles. + boot.crashDump = { + enable = true; + # Why not a recent kernel? + kernelPackages = pkgs.linuxPackages_3_2; + }; + nixpkgs.config = { packageOverrides = p: rec { - linux_2_6_39 = p.linux_2_6_39.override { + linux_3_2 = p.linux_3_2.override { extraConfig = '' # Enable drivers in kernel for most NICs. E1000 y