We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a11d8 commit ff73f5eCopy full SHA for ff73f5e
kernel-template-postinst
@@ -1,8 +1,8 @@
1
# Generate initrd using Dracut.
2
if [ -x /usr/bin/dracut ]; then
3
- for i in `ls /usr/lib/modules !(extramodules)`; do
+ for i in `ls /usr/lib/modules | grep -v 'extramodules'`; do
4
echo -e "\033[36m**\033[0m\tGenerating initrd (Initialization RAM Disk) for kernel version $i ..."
5
- dracut /boot/initramfs-$i.img $i
+ dracut -q /boot/initramfs-$i.img $i
6
done
7
else
8
echo -e "\033[33m**\033[0m\tCommand \"dracut\" is not installed, skipping generation.\n\tYou may not be able to boot the new kernel on the next boot."
0 commit comments