mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
1bd361d884
Co-authored-by: Lena Pastwa <lena@lnps.me>
521 B
521 B
switch_root
Use a different filesystem as the root of the mount tree. Note:
switch_rootwill fail to function if the new root is not the root of a mount. Use bind-mounting as a workaround. See also:chroot,mount. More information: https://manned.org/switch_root.
- Move
/proc,/dev,/sys, and/runto the specified filesystem, use this filesystem as the new root and start the specified init process:
switch_root {{new_root}} {{/sbin/init}}
- Display help:
switch_root {{[-h|--help]}}