Skip to content

Commit

Permalink
fix(i18n): skip if data is missing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sgn authored and haraldh committed Apr 13, 2021
1 parent 96c3133 commit 651fe01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules.d/10i18n/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' \
Expand Down

0 comments on commit 651fe01

Please sign in to comment.