Use grub2-mkrelpath for CentOS

pull/58/head
Bohan Yang 4 years ago committed by GitHub
parent e318148220
commit ee1f2f5c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      debi.sh

@ -800,7 +800,10 @@ EOF
save_grub_cfg="tee -a $grub_cfg"
}
installer_directory=$(grub-mkrelpath "$installer_directory")
installer_directory=$(grub-mkrelpath "$installer_directory" 2> /dev/null) ||
installer_directory=$(grub2-mkrelpath "$installer_directory" 2> /dev/null) || {
err 'Could not find "grub-mkrelpath" or "grub2-mkrelpath" command'
}
kernel_params="$kernel_params lowmem/low=1"

Loading…
Cancel
Save