summary refs log tree commit diff
path: root/nixos/doc/manual/development
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2023-09-13 18:22:12 +0200
committerJanne Heß <janne@hess.ooo>2023-09-22 10:26:10 +0200
commit85c1c30fd9ab350ad254736d0950d07639b9f6e8 (patch)
treec2ef8efca934f044924f8abc100557af86a89dee /nixos/doc/manual/development
parentc3e6412260dd30f82b715f976fff834fbeddae2f (diff)
downloadnixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar.gz
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar.bz2
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar.lz
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar.xz
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.tar.zst
nixpkgs-85c1c30fd9ab350ad254736d0950d07639b9f6e8.zip
nixos/switch-to-configuration: Never unmount / or /nix
Also adds a huge test for fstab handling
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r--nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md b/nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md
index 9cbec729803..5d6d67f1aa9 100644
--- a/nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md
+++ b/nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md
@@ -21,8 +21,9 @@ If the action is `switch` or `test`, the currently running system is inspected
 and the actions to switch to the new system are calculated. This process takes
 two data sources into account: `/etc/fstab` and the current systemd status.
 Mounts and swaps are read from `/etc/fstab` and the corresponding actions are
-generated. If a new mount is added, for example, the proper `.mount` unit is
-marked to be started. The current systemd state is inspected, the difference
+generated. If the options of a mount are modified, for example, the proper `.mount`
+unit is reloaded (or restarted if anything else changed and it's neither the root
+mount or the nix store). The current systemd state is inspected, the difference
 between the current system and the desired configuration is calculated and
 actions are generated to get to this state. There are a lot of nuances that can
 be controlled by the units which are explained here.