mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 19:46:10 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/systemctl-switch-root
Normal file
21
tldr/linux/systemctl-switch-root
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user