From 13a2563d029f9d51bce8200aa1650e6740d29f1e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 21 Aug 2011 21:03:02 +0000 Subject: [PATCH] * Create /var/lib/udisks because that's where udisks keeps its mtab file. Without this, users are not able to unmount their own devices (because udisks doesn't remember who mounted them). svn path=/nixos/trunk/; revision=28730 --- modules/services/hardware/udisks.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/hardware/udisks.nix b/modules/services/hardware/udisks.nix index 4a97dae7fa00..8d526e22bad1 100644 --- a/modules/services/hardware/udisks.nix +++ b/modules/services/hardware/udisks.nix @@ -33,6 +33,11 @@ with pkgs.lib; services.dbus.packages = [ pkgs.udisks ]; + system.activationScripts.udisks = + '' + mkdir -m 0755 -p /var/lib/udisks + ''; + }; }