* Use aufs instead of unionfs, it seems to be more stable.
svn path=/nixos/trunk/; revision=10390
This commit is contained in:
parent
6f0772d9f0
commit
2da50038e4
|
@ -219,7 +219,7 @@ if test -n "@isLiveCD@"; then
|
|||
mkdir /mnt/tmpfs
|
||||
mount -n -t tmpfs -o "mode=755" none /mnt/tmpfs
|
||||
mkdir /mnt/union
|
||||
mount -t unionfs -o dirs=/mnt/tmpfs=rw:$targetRoot=ro none /mnt/union
|
||||
mount -t aufs -o dirs=/mnt/tmpfs=rw:$targetRoot=ro none /mnt/union
|
||||
targetRoot=/mnt/union
|
||||
fi
|
||||
|
||||
|
|
|
@ -15,9 +15,10 @@ rec {
|
|||
# The label used to identify the installation CD.
|
||||
rootLabel = "NIXOS";
|
||||
extraTTYs = [7 8]; # manual, rogue
|
||||
extraModulePackages = [pkgs.aufs];
|
||||
initrd = {
|
||||
extraKernelModules = [
|
||||
"unionfs" # needed for live-CD operation
|
||||
"aufs" # needed for live-CD operation
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -123,6 +123,14 @@
|
|||
";
|
||||
};
|
||||
|
||||
extraModulePackages = mkOption {
|
||||
default = [];
|
||||
example = [pkgs.aufs pkgs.nvidiaDriver];
|
||||
description = ''
|
||||
A list of additional packages supplying kernel modules.
|
||||
'';
|
||||
};
|
||||
|
||||
kernelModules = mkOption {
|
||||
default = [];
|
||||
description = "
|
||||
|
|
|
@ -43,7 +43,8 @@ rec {
|
|||
# Determine the set of modules that we need to mount the root FS.
|
||||
modulesClosure = import ../helpers/modules-closure.nix {
|
||||
inherit (pkgs) stdenv module_init_tools;
|
||||
inherit kernel rootModules;
|
||||
inherit rootModules;
|
||||
kernel = modulesTree;
|
||||
};
|
||||
|
||||
|
||||
|
@ -148,9 +149,10 @@ rec {
|
|||
# directory.
|
||||
modulesTree = pkgs.module_aggregation (
|
||||
[kernel]
|
||||
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi
|
||||
++ pkgs.lib.optional config.networking.enableIntel3945ABGFirmware pkgs.iwlwifi
|
||||
# !!! this should be declared by the xserver Upstart job.
|
||||
++ pkgs.lib.optional (config.services.xserver.enable && config.services.xserver.videoDriver == "nvidia") pkgs.nvidiaDrivers
|
||||
++ config.boot.extraModulePackages
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue