Skip to content

Commit ff73f5e

Browse files
author
Jeff Bai
committed
Fix, and silence
1 parent d7a11d8 commit ff73f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel-template-postinst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Generate initrd using Dracut.
22
if [ -x /usr/bin/dracut ]; then
3-
for i in `ls /usr/lib/modules !(extramodules)`; do
3+
for i in `ls /usr/lib/modules | grep -v 'extramodules'`; do
44
echo -e "\033[36m**\033[0m\tGenerating initrd (Initialization RAM Disk) for kernel version $i ..."
5-
dracut /boot/initramfs-$i.img $i
5+
dracut -q /boot/initramfs-$i.img $i
66
done
77
else
88
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

Comments
 (0)