From 440b793a5b8fcd5250229ce9821e50a6f1065063 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Oct 2012 14:34:39 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=98autocreate=E2=80=99=20FS=20op?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Systemd creates missing mountpoints unconditionally. --- modules/tasks/filesystems.nix | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/tasks/filesystems.nix b/modules/tasks/filesystems.nix index e81ebd660044..14abe22a2da7 100644 --- a/modules/tasks/filesystems.nix +++ b/modules/tasks/filesystems.nix @@ -64,9 +64,6 @@ in specify a volume label (label) for file systems that support it, such as ext2/ext3 (see mke2fs -L). - - autocreate forces mountPoint to be created with - mkdir -p . ''; type = types.list types.optionSet; @@ -108,15 +105,6 @@ in description = "Options used to mount the file system."; }; - autocreate = mkOption { - default = false; - type = types.bool; - description = '' - Automatically create the mount point defined in - . - ''; - }; - autoFormat = mkOption { default = false; type = types.bool; @@ -219,12 +207,6 @@ in fi '')} - # Create missing mount points. Note that this won't work - # if the mount point is under another mount point. - ${flip concatMapStrings config.fileSystems (fs: optionalString fs.autocreate '' - mkdir -p -m 0755 '${fs.mountPoint}' - '')} - # Create missing swapfiles. # FIXME: support changing the size of existing swapfiles. ${flip concatMapStrings config.swapDevices (sw: optionalString (sw.size != null) ''