grub2-mkconfig
生成 grub.cfg 配置文件。
语法
1Usage: grub2-mkconfig [OPTION]
2Generate a grub config file
3
4 -o, --output=FILE output generated config to FILE [default=stdout]
5 -h, --help print this message and exit
6 -v, --version print the version information and exit
7
8Report bugs to <[email protected]>.
实例
生成新的grub配置文件
1grub2-mkconfig -o /boot/grub2/grub.cfg
2
3# 或者
4
5grub2-mkconfig > /boot/grub2/grub.cfg
来源:https://github.com/jaywcjlove/linux-command