commands.sh

systemctl switch-root

linux

Switch to a new root filesystem and execute a new system manager.

More info →

Options (1)

-v, --verboseboolean

Switch 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_root

Switch to a new root filesystem and run a specific init binary

systemctl switch-root path/to/new_root /sbin/init

Switch to a new root filesystem with verbose output

systemctl switch-root path/to/new_root [-v|--verbose]
made by @shridhargupta | data from tldr-pages