]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
modules.d: logging functions adjusted to dracut-logger
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 25 Mar 2011 14:56:48 +0000 (15:56 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 25 Mar 2011 15:22:05 +0000 (16:22 +0100)
modules.d/10i18n/module-setup.sh
modules.d/40network/module-setup.sh
modules.d/50gensplash/module-setup.sh
modules.d/98syslog/module-setup.sh
modules.d/99base/module-setup.sh

index 57a0f9af5f6b6d31d36ff5b012a5d15d688af038..f764c8e1e98d2c0d6ebd3498b8a81fb7abc835be 100755 (executable)
@@ -115,12 +115,15 @@ install() {
         # 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
 
@@ -183,13 +186,15 @@ install() {
         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
     }
index bbc3dc64f1d374f7f60dc43acf8bb901a0a5efdc..66cda68c88993f8f79c28caf356374ab3b17c978 100755 (executable)
@@ -7,13 +7,14 @@ check() {
 
     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
 
index cdcdabd26fad29fd5c696a6283572db92d608138..c34413e002d219d61dd70405afa305cbd6b7adcc 100755 (executable)
@@ -24,7 +24,7 @@ install() {
 '
             for line in ${out}; do
                 if [[ ${line} =~ ^Warning ]]; then
-                    dwarning "${line}"
+                    dwarn "${line}"
                 else
                     derror "${line}"
                     (( ret == 0 )) && ret=1
index 4db3e84c61edb252985c8df4cbacd2d95c6319be..056e9d998212d6480b56ee8b40b94276dd168e21 100755 (executable)
@@ -24,7 +24,8 @@ install() {
     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
index 5597fb384271c06ec24e3fe2fa14a19be75acd2e..ddf56ceba1660d5d180eec965edb0ae68c6398a1 100755 (executable)
@@ -36,10 +36,10 @@ install() {
     # 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"