Before proceeding, this requires some knowledge of Catalyst.
IMPORTANT If you wish to use your own specs, make sure your dracut command-line args follow the ones I have in my spec files.
- Rebuild Catalyst with the patch in
portage/patchesso it automatically addscdrootto the boot args - Add
package.useandsavedconfiginportage/into the appropiate folders in Catalyst's portage confdir - Make a stage1, I've added one to this repo for conveinience
- Copy
90dokeymapinto the stage1 chroot at/usr/lib/dracut/modules.d/ - Copy
keymapsinto the stage1 chroot at/lib - Proceed with making a stage2, if you used the one provided, no editing is needed
In the portage/ directory there are the directories:
- package.use
- patches
- savedconfig
package.use is used to set savedconfig on sys-apps/busybox so we can use a custom config for it
patches contains a patch that will automatically append cdroot to dracut's boot args
savedconfig contains a config for sys-apps/busybox that will allow us to use loadkmap
This is a dracut module that will display the list of keymaps and allows the user to select one
Taken from genkernel, this is the list of keymaps it has available
spec files I used to save time for testing.