Skip to content

Commit 425469c

Browse files
author
Jeff Bai
committed
avoid return 1 from postinst.
1 parent ff73f5e commit 425469c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel-template-postinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if [ -x /usr/bin/dracut ]; then
33
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 -q /boot/initramfs-$i.img $i
5+
dracut -q --force /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)