Linux command
grub-mklayout 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create keyboard layout
grub-mklayout -o [layout.gkb] < [layout.ckb]
Convert from console layout
ckbcomp [us] | grub-mklayout -o [us.gkb]
Verbose output
grub-mklayout -v -o [layout.gkb] < [input]
说明
grub-mklayout creates keyboard layout files for GRUB by converting console keyboard maps to GRUB's GKB format. It reads from stdin and produces a binary layout file for use during boot. The tool enables non-US keyboard layouts in GRUB, allowing users to type passwords and commands in the boot menu using their native keyboard layout.
参数
- -o, --output _FILE_
- Output GKB file.
- -v, --verbose
- Verbose mode.
- --help
- Display help information.
FAQ
What is the grub-mklayout command used for?
grub-mklayout creates keyboard layout files for GRUB by converting console keyboard maps to GRUB's GKB format. It reads from stdin and produces a binary layout file for use during boot. The tool enables non-US keyboard layouts in GRUB, allowing users to type passwords and commands in the boot menu using their native keyboard layout.
How do I run a basic grub-mklayout example?
Run `grub-mklayout -o [layout.gkb] < [layout.ckb]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _FILE_ do in grub-mklayout?
Output GKB file.