544 |
{ |
{ |
545 |
if [[ -n ${dracut} ]] |
if [[ -n ${dracut} ]] |
546 |
then |
then |
547 |
tool="/sbin/dracut ${dracuthostonly} -f ${initrdfile} ${version}" |
tool="dracut ${dracuthostonly} -f ${initrdfile} ${version}" |
548 |
else |
else |
549 |
tool="/sbin/mkinitrd --allow-missing -f ${initrdfile} ${version}" |
tool="mkinitrd --allow-missing -f ${initrdfile} ${version}" |
550 |
fi |
fi |
551 |
[[ -n ${verbose} ]] && echo "creating initrd ${initrdfile} using ${version}" |
[[ -n ${verbose} ]] && echo "creating initrd ${initrdfile} using ${version}" |
552 |
${tool} |
${tool} |