Update install.sh

update
This commit is contained in:
Vince 2021-10-22 09:18:31 +08:00 committed by GitHub
parent 748c4c4e93
commit de33b1a2c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,8 @@ updating_grub() {
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then
prompt -i "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n" prompt -i "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
elif [[ -f /boot/grub2/grub.cfg ]]; then fi
if [[ -f /boot/grub2/grub.cfg ]]; then
prompt -i "Find config file on /boot/grub2/grub.cfg ...\n" prompt -i "Find config file on /boot/grub2/grub.cfg ...\n"
grub2-mkconfig -o /boot/grub2/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg
fi fi