systemctl switch-root
linux
Switch to a new root filesystem and execute a new system manager.
More info →Options (1)
-v, --verbosebooleanSwitch to a new root filesystem with verbose output
Example:
systemctl switch-root {{path/to/new_root}} {{[-v|--verbose]}}Examples (3)
Switch to a new root filesystem and execute its default init system
systemctl switch-root path/to/new_rootSwitch to a new root filesystem and run a specific init binary
systemctl switch-root path/to/new_root /sbin/initSwitch to a new root filesystem with verbose output
systemctl switch-root path/to/new_root [-v|--verbose]made by @shridhargupta | data from tldr-pages