Browse Source

fix(i18n): skip if data is missing

On system that doesn't have either consolefonts, consoletrans, keymaps,
or unimaps, "kbddir" is empty, thus the followed installation will
broken with errors like:

	cp: cannot stat '/consolefonts/*': No such file or directory

Let's report the checks as failure if "kbddir" is empty.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
master
Đoàn Trần Công Danh 3 years ago committed by Harald Hoyer
parent
commit
651fe01e79
  1. 2
      modules.d/10i18n/module-setup.sh

2
modules.d/10i18n/module-setup.sh

@ -265,6 +265,8 @@ install() { @@ -265,6 +265,8 @@ install() {
kbddir=''
done

[[ "$kbddir" ]] || return 1

[[ -f $dracutsysrootdir$I18N_CONF && -f $dracutsysrootdir$VCONFIG_CONF ]] \
|| [[ ! ${hostonly} || ${i18n_vars} ]] || {
derror 'i18n_vars not set! Please set up i18n_vars in ' \

Loading…
Cancel
Save