nixpkgs/nixos/modules/tasks
r-vdp 9226d4e9ee
nixos/filesystems: don't silently ignore label when device is set
Before this change, when both device and label were set, the label would
be silently ignored. This is especially problematic when the device is
set in another module, and it's not immediately obvious why the label is
not having any effect.

Additionally, some other modules use the device option to get the device
of a filesystem, but this option is not populated when only the label is
set, causing those modules to conclude that the filesystem does not have
a backing device.

With this change, we populate the device option using the label when the
label is set. This means that we get a clear error message when both the
device and label are set, and that the device is properly populated
whenever the label is used to specify the backing device.
2024-12-03 11:45:42 +01:00
..
filesystems zfs: remove recommendations to use unstable 2024-11-01 18:50:24 -04:00
auto-upgrade.nix nixos/auto-upgrade: Format 2024-11-15 08:36:15 +01:00
bcache.nix nixos/bcache: enable bcache when using systemd in stage 1 initrd 2024-09-22 23:37:51 +05:30
cpu-freq.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
encrypted-devices.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
filesystems.nix nixos/filesystems: don't silently ignore label when device is set 2024-12-03 11:45:42 +01:00
lvm.nix nixos/lvm: expand enable description to better inform users about their actions 2024-11-12 16:54:14 +01:00
network-interfaces-scripted.nix nixos/networking: improve vlan service description 2024-10-04 22:09:01 +02:00
network-interfaces-systemd.nix nixos/network-interfaces-systemd: improve default ethernet network matching 2024-10-08 20:23:48 +07:00
network-interfaces.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
powertop.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
scsi-link-power-management.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
stratis.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
swraid.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
trackpoint.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tty-backgrounds-combine.sh