3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/tasks
Cole Helbling 516b49155e nixos/zfs: replace parentheses with braces
The parentheses prevent the `continue` line from working by running the
enclosed in a subshell -- I noticed that ZFS would start asking me for
my password to encrypted child datasets, even though they were not
specified in `requestEncryptionCredentials`. The following logs would
also be present in the import unit's journal:

    Oct 31 22:13:17 host systemd[1]: Starting Import ZFS pool "pool"...
    Oct 31 22:13:44 host zfs-import-pool-start[3711]: importing ZFS pool "pool"...
    Oct 31 22:13:44 host zfs-import-pool-start[4017]:pool/nix/store/39zij3xcxn4w38v6x8f88bx8y91nv0rm-unit-script-zfs-import-pool-start/bin/zfs-import-pool-start: line 31: continue: only meaningful in a `for', `while', or `until' loop
    Oct 31 22:13:44 host zfs-import-pool-start[4020]:pool/nix/store/39zij3xcxn4w38v6x8f88bx8y91nv0rm-unit-script-zfs-import-pool-start/bin/zfs-import-pool-start: line 31: continue: only meaningful in a `for', `while', or `until' loop
    Oct 31 22:15:14 host zfs-import-pool-start[4023]: Failed to query password: Timer expired
    Oct 31 22:15:14 host zfs-import-pool-start[4024]: Key load error: encryption failure
    Oct 31 22:15:14 host systemd[1]: zfs-import-pool.service: Main process exited, code=exited, status=255/EXCEPTION
    Oct 31 22:15:14 host systemd[1]: zfs-import-pool.service: Failed with result 'exit-code'.
    Oct 31 22:15:14 host systemd[1]: Failed to start Import ZFS pool "pool".
2021-11-03 04:59:46 -04:00
..
filesystems nixos/zfs: replace parentheses with braces 2021-11-03 04:59:46 -04:00
auto-upgrade.nix
bcache.nix
cpu-freq.nix nixos/cpu-freq: fix typo in description 2021-04-21 22:03:18 +02:00
encrypted-devices.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
filesystems.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
lvm.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
network-interfaces-scripted.nix nixos/networking: support FOU encapsulation for sits 2021-10-16 20:48:03 -04:00
network-interfaces-systemd.nix nixos/networking: support FOU encapsulation for sits 2021-10-16 20:48:03 -04:00
network-interfaces.nix nixos/networking: support FOU encapsulation for sits 2021-10-16 20:48:03 -04:00
powertop.nix
scsi-link-power-management.nix
snapraid.nix nixos/snapraid: init 2021-07-14 19:02:19 +01:00
swraid.nix
trackpoint.nix xserver: Generate readable config indentation 2021-06-17 03:34:40 +02:00
tty-backgrounds-combine.sh