fi
if [ -z "$idemodules" ]; then
- echo "WARNING: rootfs on IDE device but no related modules found, loading ide-generic."
+ warn "rootfs on IDE device but no related modules found, loading ide-generic."
idemodules="ide-generic"
fi
# }}}
# else tryauto {{{
else
- [ -r /usr/share/pci-database/ide.pci ] || echo "WARNING: /usr/share/pci-database/ide.pci missing."
- [ -r /proc/bus/pci/devices ] || echo "WARNING: /proc/bus/pci/devices missing."
- echo "Automatic IDE modules finding not available."
+ [ -r /usr/share/pci-database/ide.pci ] || warn "/usr/share/pci-database/ide.pci missing."
+ [ -r /proc/bus/pci/devices ] || warn "/proc/bus/pci/devices missing."
+ warn "Automatic IDE modules finding not available."
fi
# }}}
fi
is_lvm_node() {
local node="$1"
if [ ! -e "$node" ]; then
- warn "WARNING: check_lvm(): node $node doesn't exist!"
+ warn "check_lvm(): node $node doesn't exist!"
return 1
fi
fi
if [ ! -f /proc/mounts ]; then
- warn "WARNING: /proc filesystem not mounted, may cause wrong results or failure."
+ warn "/proc filesystem not mounted, may cause wrong results or failure."
fi
if [ -d /usr/lib64 ]; then