* Disable all fbcondecor-related stuff if boot.vesa is disabled.

svn path=/nixos/trunk/; revision=30343
This commit is contained in:
Eelco Dolstra 2011-11-08 19:43:15 +00:00
parent 0446f652a2
commit fdc51c2c97
3 changed files with 8 additions and 12 deletions

View File

@ -120,11 +120,7 @@ let kernel = config.boot.kernelPackages.kernel; in
system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages; system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages;
boot.kernelParams = boot.kernelParams =
[ "splash=verbose" optionals config.boot.vesa [ "splash=verbose" "vga=0x317" ];
# Force the Completely Fair Scheduler to be used by default.
#"elevator=cfq"
] ++
optional config.boot.vesa "vga=0x317";
boot.kernelModules = [ "loop" ]; boot.kernelModules = [ "loop" ];

View File

@ -91,7 +91,7 @@ let
enableSplashScreen = enableSplashScreen =
config.boot.initrd.enableSplashScreen && kernelPackages.splashutils != null; config.boot.vesa && config.boot.initrd.enableSplashScreen && kernelPackages.splashutils != null;
# Some additional utilities needed in stage 1, like mount, lvm, fsck # Some additional utilities needed in stage 1, like mount, lvm, fsck

View File

@ -50,7 +50,7 @@ in
services.ttyBackgrounds = { services.ttyBackgrounds = {
enable = mkOption { enable = mkOption {
default = splashutils != null; default = true;
description = '' description = ''
Whether to enable graphical backgrounds for the virtual consoles. Whether to enable graphical backgrounds for the virtual consoles.
''; '';
@ -82,11 +82,11 @@ in
###### implementation ###### implementation
config = mkIf config.services.ttyBackgrounds.enable ( config = mkIf (config.boot.vesa && config.services.ttyBackgrounds.enable && splashutils != null) (
mkAssert (splashutils != null) " mkAssert (splashutils != null) ''
The kernelPackages does not provide splashutils, as required by ttyBackgrounds. The kernelPackages does not provide splashutils, as required by ttyBackgrounds.
Either provide kernelPackages with splashutils, or disable ttyBackgrounds. Either provide kernelPackages with splashutils, or disable ttyBackgrounds.
" { '' {
services.ttyBackgrounds.specificThemes = singleton services.ttyBackgrounds.specificThemes = singleton
{ tty = config.services.syslogd.tty; { tty = config.services.syslogd.tty;