Create grub2-mkconfig.md (#435)

This commit is contained in:
lutixiaya 2022-10-21 15:31:36 +08:00 committed by GitHub
parent 5e5804945a
commit fbf588f8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
command/grub2-mkconfig.md Normal file
View File

@ -0,0 +1,30 @@
grub2-mkconfig
===
生成 grub.cfg 配置文件。
## 语法
```shell
Usage: grub2-mkconfig [OPTION]
Generate a grub config file
-o, --output=FILE output generated config to FILE [default=stdout]
-h, --help print this message and exit
-v, --version print the version information and exit
Report bugs to <bug-grub@gnu.org>.
```
## 实例
生成新的grub配置文件
```shell
grub2-mkconfig -o /boot/grub2/grub.cfg
# 或者
grub2-mkconfig > /boot/grub2/grub.cfg
```