From: Mike Yuan Date: Thu, 16 May 2024 11:15:11 +0000 (+0800) Subject: switch-root: update comment regarding dropped mounts X-Git-Tag: v256-rc3~57^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F32863%2Fhead;p=thirdparty%2Fsystemd.git switch-root: update comment regarding dropped mounts Follow-up for 07c5c2ab8b80f75a1c89fc405db1ce1dfd08534b --- diff --git a/src/shared/switch-root.c b/src/shared/switch-root.c index 2a5307feb7b..e64b6f6c8fc 100644 --- a/src/shared/switch-root.c +++ b/src/shared/switch-root.c @@ -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 {