-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dracut i18n_module required for systemd #87
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.