The Fidelix Linux Distribution

Simple, Stable, and Secure

SWITCH_ROOT(1) User Commands SWITCH_ROOT(1)

switch_root - manual page for switch_root 1.31.1

switch_root [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]

BusyBox v1.31.1 (2020-04-30 13:38:01 EDT) multi-call binary.

Free initramfs and switch to another root fs: chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.

-c DEV
Reopen stdio to DEV after switch
April 2020 Fidelix 1.0