3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules
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
..
config * Add devicemapper to the system path. 2010-01-07 15:55:05 +00:00
hardware Adding support for the rt73 usb wifi nic firmware loading. 2009-09-18 20:49:12 +00:00
installer Removing references to linux kernel 'vmlinuz', and making them point to 'bzImage'. 2010-02-18 11:35:39 +00:00
misc added privoxy nixos module 2009-10-05 15:11:32 +00:00
programs * Disable the "smart" tab completion again, because it causes lots of 2010-02-22 17:20:12 +00:00
security * Provide a bundle of CA certificates in /etc/ca-bundle.crt, and set 2010-01-20 14:22:47 +00:00
services Fixing a terrible bug in nixos nfs-kernel server, related to the exports file. 2010-02-22 21:41:49 +00:00
system svn path=/nixos/trunk/; revision=20016 2010-02-15 15:55:54 +00:00
tasks * grep returns a non-zero exit code if no line matches, causing the 2010-01-26 09:56:53 +00:00
testing * Move the serial console kernel parameters to test-instrumentation.nix. 2010-01-06 21:16:57 +00:00
virtualisation * When QEMU encounters a "disk full" condition on the host filesystem, 2010-01-27 10:36:43 +00:00
module-list.nix * Provide a bundle of CA certificates in /etc/ca-bundle.crt, and set 2010-01-20 14:22:47 +00:00
rename.nix * Obsoleted boot.initrd.extraKernelModules (use 2009-12-15 14:05:01 +00:00