systemctl-switch-root: add page (#18096)

* systemctl-switch-root: add page

* Update pages/linux/systemctl-switch-root.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* Update pages/linux/systemctl-switch-root.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* Update pages/linux/systemctl-switch-root.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

---------

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Harshavardhan
2025-09-15 10:43:07 +05:30
committed by GitHub
parent 9d162c580c
commit e68d080dd4
+16
View File
@@ -0,0 +1,16 @@
# systemctl switch-root
> Switch to a new root filesystem and execute a new system manager.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#switch-root%20ROOT%20INIT>.
- 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 --verbose switch-root {{path/to/new_root}}`