# original redhat-i18n module. Anyway it won't hurt.
EXT_KEYMAPS+=\ ${UNIKEYMAP}\ ${GRP_TOGGLE}
- [[ ${KEYMAP} ]] || dwarning 'No KEYMAP.' || return 1
+ [[ ${KEYMAP} ]] || {
+ derror 'No KEYMAP.'
+ return 1
+ }
findkeymap ${KEYMAP}
for map in ${EXT_KEYMAPS}
do
- dinfo "Adding extra map: ${map}"
+ ddebug "Adding extra map: ${map}"
findkeymap ${map}
done
done
[[ ${kbddir} ]] || {
- derror "Directories ${KBDSUBDIRS//,/, } not found. Please inform us about the issue including your OS name and version."
+ derror "Directories ${KBDSUBDIRS//,/, } not found. Please" \
+ "inform us about the issue including your OS name and version."
return 1
}
[[ -f $I18N_CONF && -f $VCONFIG_CONF ]] || \
[[ ! ${hostonly} || ${i18n_vars} ]] || {
- dwarning 'Please set up i18n_vars in configuration file.'
+ derror 'i18n_vars not set! Please set up i18n_vars in ' \
+ 'configuration file.'
}
return 0
}
for program in ip arping; do
if ! type -P $program >/dev/null; then
- dwarning "Could not find program \"$program\" required by network."
+ derror "Could not find program \"$program\" required by network."
return 1
fi
done
for program in dhclient brctl ifenslave tr; do
if ! type -P $program >/dev/null; then
- dwarning "Could not find program \"$program\" it might be required by network."
+ dwarn "Could not find program \"$program\" it might be required " \
+ "by network."
fi
done
'
for line in ${out}; do
if [[ ${line} =~ ^Warning ]]; then
- dwarning "${line}"
+ dwarn "${line}"
else
derror "${line}"
(( ret == 0 )) && ret=1
elif type -P syslog-ng >/dev/null; then
installs="syslog-ng"
else
- dwarning "Could not find any syslog binary although the syslogmodule is selected to be installed. Please check."
+ derror "Could not find any syslog binary although the syslogmodule" \
+ "is selected to be installed. Please check."
fi
if [ -n "$installs" ]; then
dracut_install cat
# Bail out if switch_root does not exist
if type -P switch_root >/dev/null; then
inst $(type -P switch_root) /sbin/switch_root \
- || derror "Failed to install switch_root"
+ || dfatal "Failed to install switch_root"
else
inst "$moddir/switch_root" "/sbin/switch_root" \
- || derror "Failed to install switch_root"
+ || dfatal "Failed to install switch_root"
fi
inst "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
inst_hook cmdline 10 "$moddir/parse-root-opts.sh"