add dracut i18n_module required for systemd#87
add dracut i18n_module required for systemd#87ader1990 merged 1 commit intoflatcar:flatcar-masterfrom
Conversation
Use PR flatcar/bootengine#87 Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
|
To reduce size we could remove the |
The best way is adding a Gentoo package install mask for these paths (needs to be done for the package that introduces them to the base image). |
will try it out asap, thanks. |
Just to be sure on what we expect to be the reduced size, I took a snapshot of those 3 dir sizes: |
I tried this: But it is not enough, because it will do changes in the /usr partition, not on the initrd. So the previous way of trying this, with a custom dracut i18n module is required. Will continue by readding the custom module with the above required files. |
|
I think it could work if you use |
I tried this and the folders were still present in the initrd. I have tried another way of doing this too, using PKG_INSTALL_MASK: The binaries were not present anymore, but what happened, because the "owner" of moving the binaries is the https://github.com/dracutdevs/dracut/blob/master/modules.d/10i18n/module-setup.sh, the 10i18n/module-setup.sh made a symlink of /usr/share/keymaps to /keymaps, probably because this condition here was not valid anymore https://github.com/dracutdevs/dracut/blob/master/modules.d/10i18n/module-setup.sh#L263 which lead to creating the symlinks by the line here: https://github.com/dracutdevs/dracut/blob/master/modules.d/10i18n/module-setup.sh#L134. At this moment, I think falling back to the custom dracut module looks like a better way. Thanks. |
37ccbca to
e6fb498
Compare
|
Ready for review, tested and working with flatcar/scripts#1679. |
The dracut i18n_module is required for the systemd unit systemd-vconsole-setup.service. If the dracut i18n_module is not installed in the initrd, systemd-vconsole-setup fails with error loadkeys binary not found. Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
e6fb498 to
81271b5
Compare
|
Looks good, but still would let @pothos review. |
Use commit for flatcar/bootengine#87. Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
Use commit for flatcar/bootengine#87. Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
add dracut i18n module required for systemd-vconsole-setup.