Skip to content

Commit 651fe01

Browse files
sgnharaldh
authored andcommitted
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>
1 parent 96c3133 commit 651fe01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ install() {
265265
kbddir=''
266266
done
267267
268+
[[ "$kbddir" ]] || return 1
269+
268270
[[ -f $dracutsysrootdir$I18N_CONF && -f $dracutsysrootdir$VCONFIG_CONF ]] \
269271
|| [[ ! ${hostonly} || ${i18n_vars} ]] || {
270272
derror 'i18n_vars not set! Please set up i18n_vars in ' \

0 commit comments

Comments
 (0)