HomeFreeBSD

Kernel part of reroot support - a way to change rootfs without reboot.

Description

Kernel part of reroot support - a way to change rootfs without reboot.

Note that the mountlist manipulations are somewhat fragile, and not very
pretty. The reason for this is to avoid changing vfs_mountroot(), which
is (obviously) rather mission-critical, but not very well documented,
and thus hard to test properly. It might be possible to rework it to use
its own simple root mount mechanism instead of vfs_mountroot().

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698

Details

Provenance
traszAuthored on
Differential Revision
D2698: Add "reboot -r" support - unmount old root and mount a new one.
Parents
rS287963: MFC r266310
Branches
Unknown
Tags
Unknown