initramfs-tools: update to 0.98.1.

Simply check if /usr/sbin/grub-mkconfig exists and run it if -B not set.
This commit is contained in:
Juan RP
2010-05-06 02:36:18 +02:00
parent 481e74178e
commit 304cf3c9c2
2 changed files with 7 additions and 6 deletions

View File

@@ -180,9 +180,8 @@ run_bootloader()
echo "update-initramfs: please run 'grub-install ${dev}'."
fi
if [ -x "$(which grub-mkconfig 2>/dev/null)" ]; then
echo "Updating GRUB2 configuration file..."
grub-mkconfig -o /boot/grub/grub.cfg
if [ -x /usr/sbin/grub-mkconfig ]; then
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
fi
}