From 4eec099db83ce522f30d02de07970d4f2cbcb41f Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 16 May 2024 19:15:11 +0800 Subject: [PATCH] switch-root: update comment regarding dropped mounts Follow-up for 07c5c2ab8b80f75a1c89fc405db1ce1dfd08534b --- src/shared/switch-root.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.47.3