UNPKG

511 BMarkdownView Raw
1grub2-mkconfig
2===
3
4生成 grub.cfg 配置文件。
5
6## 语法
7
8```shell
9Usage: grub2-mkconfig [OPTION]
10Generate a grub config file
11
12 -o, --output=FILE output generated config to FILE [default=stdout]
13 -h, --help print this message and exit
14 -v, --version print the version information and exit
15
16Report bugs to <bug-grub@gnu.org>.
17
18```
19
20## 实例
21
22生成新的grub配置文件
23
24```shell
25grub2-mkconfig -o /boot/grub2/grub.cfg
26
27# 或者
28
29grub2-mkconfig > /boot/grub2/grub.cfg
30```