From ff58b5dedec44d99fbb7842b5488c633982683a5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 14 Jun 2009 11:08:44 +0000 Subject: [PATCH] * Booting was broken when using the "label" option. svn path=/nixos/branches/modular-nixos/; revision=15957 --- modules/system/boot/stage-1.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system/boot/stage-1.nix b/modules/system/boot/stage-1.nix index ec2d6dc0620..c789205079b 100644 --- a/modules/system/boot/stage-1.nix +++ b/modules/system/boot/stage-1.nix @@ -57,7 +57,7 @@ let fileSystems = mkOption { options.neededForBoot = mkOption { default = false; - type = types.enable; + type = types.bool; description = " Mount this file system to boot on NixOS. "; @@ -220,9 +220,9 @@ let if fileSystems == null then abort "You must specify the fileSystems option!" else map (fs: fs.mountPoint) fileSystems; - devices = map (fs: if fs ? device then fs.device else "/dev/disk/by-label/${fs.label}") fileSystems; - fsTypes = map (fs: if fs ? fsType then fs.fsType else "auto") fileSystems; - optionss = map (fs: if fs ? options then fs.options else "defaults") fileSystems; + devices = map (fs: if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}") fileSystems; + fsTypes = map (fs: fs.fsType) fileSystems; + optionss = map (fs: fs.options) fileSystems; path = [ # `extraUtils' comes first because it overrides the `mount'