summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-12-16 15:42:41 +0100
committerLluís Batlle i Rossell <viric@viric.name>2012-12-16 15:43:47 +0100
commit5a475f72501f4fafd90342db2b22651fde40b097 (patch)
tree6bc31c38156d465ba2aaaf90bc52ced54e79f5a5 /pkgs/os-specific
parentd068aa986167abcbf1b25f439b74136b4060f2fd (diff)
downloadnixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar.gz
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar.bz2
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar.lz
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar.xz
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.tar.zst
nixpkgs-5a475f72501f4fafd90342db2b22651fde40b097.zip
utillinux: fixing mount/umount, for our case of /etc/mtab symlinking to /proc/mounts
In systemd, without this patch, 'mount' for 'user' fstab devices works, but
umount does not; it says to require root.
All gets normal with this patch.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/util-linux/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index ae5727568f2..35d01739a2a 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -21,10 +21,13 @@ stdenv.mkDerivation rec {
   # (/sbin/mount.*) through an environment variable, but that's
   # somewhat risky because we have to consider that mount can setuid
   # root...
+  # --enable-libmount-mount  fixes the behaviour being /etc/mtab a symlink to /proc/monunts
+  #     http://pl.digipedia.org/usenet/thread/19513/1924/
   configureFlags = ''
     --disable-use-tty-group
     --enable-write
     --enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/sbin:/sbin
+    --enable-libmount-mount
     ${if ncurses == null then "--without-ncurses" else ""}
   '';