Linux command
systemctl-switch-root 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Switch
systemctl switch-root [/path/to/new_root]
Example
systemctl switch-root [/path/to/new_root] [/sbin/init]
Example
systemctl switch-root [/path/to/new_root] -v
说明
systemctl switch-root transitions the system from an initramfs to the real root filesystem and executes a new system manager. This is the final step of the boot process after the initramfs has set up the real root. This command is typically used internally by the initramfs to complete the boot process, not called manually.
参数
- -v, --verbose
- Enable verbose output
FAQ
What is the systemctl-switch-root command used for?
systemctl switch-root transitions the system from an initramfs to the real root filesystem and executes a new system manager. This is the final step of the boot process after the initramfs has set up the real root. This command is typically used internally by the initramfs to complete the boot process, not called manually.
How do I run a basic systemctl-switch-root example?
Run `systemctl switch-root [/path/to/new_root]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v, --verbose do in systemctl-switch-root?
Enable verbose output