nixpkgs/nixos/modules/tasks
Jakub Sokołowski c70f047315
nixos/zfs: assert no force import with hibernation
According to a ZFS issue about hibernation causing data corruption:
https://github.com/openzfs/zfs/issues/12842

The way this happens is if the system force imports a pool that was
suspended during hibernation. I've had this happen twice on NixOS and
I'd like to avoid having this happen again, to me or others.

To do this I've added an assertion that makes sure you can't have
`forceImportRoot` or `forceImportAll` enabled with `allowHibernation`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-17 13:11:23 +01:00
..
filesystems nixos/zfs: assert no force import with hibernation 2022-12-17 13:11:23 +01:00
auto-upgrade.nix nixos/*: automatically convert option docs 2022-08-19 22:40:58 +02:00
bcache.nix nixos/*: md-convert hidden plaintext options 2022-08-31 16:32:54 +02:00
cpu-freq.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
encrypted-devices.nix nixos/tasks: invariant option docs MD conversions 2022-07-24 13:01:47 +02:00
filesystems.nix nixos/filesystems: fix a typo in docs 2022-11-27 21:57:35 +01:00
lvm.nix nixos/lvm: replace boot.isContainer with services.lvm.enable 2022-11-09 23:47:37 +01:00
network-interfaces-scripted.nix nixos/network-interfaces-scripted: don't bindTo absent network-setup.service 2022-06-26 11:03:57 +03:00
network-interfaces-systemd.nix nixos/network-interfaces-systemd: do not ignore /0 gateway routes 2022-08-19 02:25:41 +02:00
network-interfaces.nix lib.replaceChars: warn about being a deprecated alias 2022-12-15 22:25:51 +02:00
powertop.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
scsi-link-power-management.nix nixos/*: automatically convert option docs to MD 2022-08-03 22:46:41 +02:00
snapraid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
stratis.nix nixos/stratis: init 2022-09-12 15:19:36 +08:00
swraid.nix nixos/*: md-convert hidden plaintext options 2022-08-31 16:32:54 +02:00
trackpoint.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
tty-backgrounds-combine.sh