X-Git-Url: https://code.delx.au/refind/blobdiff_plain/0240b648949d78c71d8da6ce5ba019a57f974dee..450fdc4e67b3f2198a1f4901909f8f9424000a4a:/refind-install diff --git a/refind-install b/refind-install index 6f2f713..32aa8d9 100755 --- a/refind-install +++ b/refind-install @@ -31,13 +31,17 @@ # installs to the ESP by default. # # This program is copyright (c) 2012-2015 by Roderick W. Smith -# It is released under the terms of the GNU GPL, version 3, -# a copy of which should be included in the file COPYING.txt. # +# This program is licensed under the terms of the GNU GPL, version 3, +# or (at your option) any later version. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + # Revision history: # # 0.10.1 -- Improve extraction of default kernel options from /proc/cmdline. -# Add support for AMD64 (aka AARCH64, aa64) platform. +# Add support for AMD64 (aka AARCH64, aa64) platform. Added +# warning when --alldrivers used without --usedefault. # 0.10.0 -- Enable running under OS X's recovery system & add warning about # SIP & brief instructions on how to deal with it if SIP is # detected to be enabled. Also change way refind_linux.conf default @@ -178,6 +182,17 @@ GetParams() { echo "The --keepname option is incompatible with --usedefault! Aborting!" exit 1 fi + if [[ "$InstallDrivers" == "all" && "$TargetDir" != "/EFI/BOOT" ]] ; then + echo "The --alldrivers option is meant for creating USB flash drives with (near-)" + echo "universal boot support. Using it on a hard disk partition runs the risk of" + echo "creating serious problems, up to and including rendering your computer" + echo -n "unbootable. Are you SURE you want to proceed (Y/N)? " + ReadYesNo + if [[ "$YesNo" != "Y" && "$YesNo" != "y" ]] ; then + echo "Aborting installation!" + exit 0 + fi + fi RLConfFile="$RootDir/boot/refind_linux.conf" EtcKeysDir="$RootDir/etc/refind.d/keys" } # GetParams()