mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
Added support for grub bootloader.
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com>
This commit is contained in:
parent
cea5330058
commit
b769f82a01
1 changed files with 10 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
|||
# - elilo: try to detect which file to copy (vmlinuz, vmlinuz-generic,
|
||||
# vmlinuz-huge, initrd.gz) according to /boot/efi/EFI/Slackware/elilo.conf
|
||||
# - lilo: run 'lilo -v'
|
||||
# - grub: advice that slackpkg does not suppport it
|
||||
# - grub: run 'grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
# - none: advice that no bootloader was found
|
||||
#
|
||||
# If you are switching from kernel huge to kernel generic be sure to run
|
||||
|
@ -122,8 +122,14 @@ lookkernel() {
|
|||
/sbin/lilo -v
|
||||
fi
|
||||
elif [ -e /boot/grub ]&&[ -x /usr/sbin/grub-install ]; then
|
||||
echo -e "\nWARNING! Grub found but not supported by slackpkg. You have to fix it yourself\n"
|
||||
echo " Grub found but not supported by slackpkg. You have to fix it yourself" >>$TMPDIR/error.log
|
||||
echo -e "\nFound grub. Do you want to run now: /sbin/grub-mkconfig -o /boot/grub/grub.cfg ? (Y/n)"
|
||||
[ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer
|
||||
if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
|
||||
if ! /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg ;then
|
||||
echo "You need to fix your grub configuration NOW. Then press return to continue."
|
||||
read
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo -e "\nWARNING! slackpkg can't found your bootloader configuration. You have to fix it yourself\n"
|
||||
echo " slackpkg can't found your bootloader configuration. You have to fix it yourself" >>$TMPDIR/error.log
|
||||
|
|
Loading…
Reference in a new issue