# Generate kboot.conf by inspecting /boot contents.
 # Copyright (C) 2011  Antonio Ospite <ospite@studenti.unina.it>
 #
-# Inspired by kboot-mkconfig
+# Inspired by grub-mkconfig
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 exec_prefix=${prefix}
 sbindir=${exec_prefix}/sbin
 bindir=${exec_prefix}/bin
-libdir=${exec_prefix}/lib
 sysconfdir=/etc
 host_os=linux-gnu
 datarootdir=${prefix}/share
     esac
 done
 
-. ${libdir}/kboot/kboot-mkconfig_lib
+. ${datadir}/kboot/kboot-mkconfig_lib
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`