89 |
|
|
90 |
if [[ -n ${cfgLoader} ]] && [[ -x /sbin/new-kernel-pkg ]] |
if [[ -n ${cfgLoader} ]] && [[ -x /sbin/new-kernel-pkg ]] |
91 |
then |
then |
92 |
if [ -x /sbin/dracut ] |
if [ -n "$(which dracut 2>/dev/null)" ] |
93 |
then |
then |
94 |
/sbin/new-kernel-pkg --mkinitrd --dracut --host-only --depmod --install ${KERNEL_VERSION} |
new-kernel-pkg --mkinitrd --dracut --host-only --depmod --install ${KERNEL_VERSION} |
95 |
else |
else |
96 |
/sbin/new-kernel-pkg --mkinitrd --depmod --install ${KERNEL_VERSION} |
new-kernel-pkg --mkinitrd --depmod --install ${KERNEL_VERSION} |
97 |
fi |
fi |
98 |
fi |
fi |