mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
nixos/stc: Improve mount unit handling
We should sometimes restart the units rather than reloading them so the changes are actually applied. / and /nix are explicitly excluded because there was some very old issue where these were unmounted. I don't think this will affect many people since most people use fstab mounts instead but I plan to adapt this behavior for fstab mounts as well in the future (once I wrote a test for the fstab thingies).
This commit is contained in:
parent
37b8244412
commit
eb831f759b
3 changed files with 51 additions and 9 deletions
|
@ -25,8 +25,11 @@ checks:
|
|||
since changes in their values are applied by systemd when systemd is
|
||||
reloaded.
|
||||
|
||||
- `.mount` units are **reload**ed. These mostly come from the `/etc/fstab`
|
||||
parser.
|
||||
- `.mount` units are **reload**ed if only their `Options` changed. If anything
|
||||
else changed (like `What`), they are **restart**ed unless they are the mount
|
||||
unit for `/` or `/nix` in which case they are reloaded to prevent the system
|
||||
from crashing. Note that this is the case for `.mount` units and not for
|
||||
mounts from `/etc/fstab`. These are explained in [](#sec-switching-systems).
|
||||
|
||||
- `.socket` units are currently ignored. This is to be fixed at a later
|
||||
point.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue