3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/services
Lluís Batlle i Rossell bc4e159d0e Fixing a terrible bug in nixos nfs-kernel server, related to the exports file.
The file contents were taken as a file path. This resulted in a system with a totally broken /etc:
lrwxrwxrwx 1 root nixbld   51 22 feb 21:45 bashrc -> /nix/store/gh71a6w50cxrl4124kxfn24yi0b7aaka-useradd
lrwxrwxrwx 1 root nixbld   44 22 feb 21:45 nix.conf -> 192.168.1.4(rw,no_root_squash,no_all_squash)
lrwxrwxrwx 1 root nixbld   58 22 feb 21:45 inputrc -> /nix/store/1czhdj7q74dc556frqrh51jyshfsxhl3-bashrc-user.sh
lrwxrwxrwx 1 root nixbld   51 22 feb 21:45 nsswitch.conf -> /nix/store/qsgsli992hd1g8245d8am9izn9xmw90x-inputrc
lrwxrwxrwx 1 root nixbld   20 22 feb 21:45 exports -> /home/sheevaplugroot

Notice that the inputrc has strange contents. In my case, that disabled me to type 's' or 'i' (at least) in any new interactive shell.

If you notice, the 'exports' symlink should point to a store file, which contents had to look like:
/home/sheevaplugroot 192.168.1.4(rw,no_root_squash,no_all_squash)

This patch achieves this later behaviour rather than the former.


svn path=/nixos/trunk/; revision=20181
2010-02-22 21:41:49 +00:00
..
audio * Change all the startOn / stopOn attributes to the Upstart 0.6 syntax 2009-11-06 22:19:17 +00:00
backup * mysql-backup: option for which user to use for performing backups 2009-12-14 17:57:37 +00:00
databases * Use `psql' with an empty command to check whether PostgreSQL is up 2010-02-15 19:29:54 +00:00
hardware Adding the pcscd daemon (this daemon manages smartcard reader drivers), and offers 2010-01-11 21:56:01 +00:00
logging * Change all the startOn / stopOn attributes to the Upstart 0.6 syntax 2009-11-06 22:19:17 +00:00
mail * Change all the startOn / stopOn attributes to the Upstart 0.6 syntax 2009-11-06 22:19:17 +00:00
misc revert unintended part of the previous commit 2010-02-19 09:55:28 +00:00
monitoring zabbix agent: extraConfig 2010-02-16 12:51:28 +00:00
network-filesystems Fixing a terrible bug in nixos nfs-kernel server, related to the exports file. 2010-02-22 21:41:49 +00:00
networking * Use the moduli file. This shuts up the "WARNING: /etc/ssh/moduli 2010-02-01 17:05:02 +00:00
printing * Change all the startOn / stopOn attributes to the Upstart 0.6 syntax 2009-11-06 22:19:17 +00:00
scheduling * Synced with the trunk. 2009-11-24 16:11:01 +00:00
system Adding an option to disable nscd. 2009-12-16 20:51:25 +00:00
ttys * Change all the startOn / stopOn attributes to the Upstart 0.6 syntax 2009-11-06 22:19:17 +00:00
web-servers tomcat: add option to enable accesslog per virtual host (default: off) 2010-02-17 12:32:19 +00:00
x11 X11: Add a few more basic X clients to `systemPackages'. 2010-02-10 13:22:38 +00:00