]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
switch-root: update comment regarding dropped mounts 32863/head
authorMike Yuan <me@yhndnzj.com>
Thu, 16 May 2024 11:15:11 +0000 (19:15 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 16 May 2024 11:18:59 +0000 (19:18 +0800)
Follow-up for 07c5c2ab8b80f75a1c89fc405db1ce1dfd08534b

src/shared/switch-root.c

index 2a5307feb7b52540a162caf76a1641bda2a36173..e64b6f6c8fc5219f3444e5abb35f0310bb794dba 100644 (file)
@@ -30,8 +30,8 @@ int switch_root(const char *new_root,
                 const char *old_root_after,   /* path below the new root, where to place the old root after the transition; may be NULL to unmount it */
                 SwitchRootFlags flags) {
 
-        /* Stuff mounted below /run/ we don't save on soft reboot, as it might have lost its relevance, i.e.
-         * credentials, removable media and such, we rather want that the new boot mounts this fresh.  But on
+        /* Stuff mounted below /run/ we don't save on soft reboot, as it might have lost its relevance,
+         * e.g. removable media and such. We rather want that the new boot mounts this fresh. But on
          * the switch from initrd we do use MS_REC, as it is expected that mounts set up in /run/ are
          * maintained. */
         static const struct {