switch-root: update comment regarding dropped mounts

Follow-up for 07c5c2ab8b
This commit is contained in:
Mike Yuan
2024-05-16 19:15:11 +08:00
parent 2599b32e72
commit 4eec099db8

View 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 {