diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 18:09:06 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 18:09:06 +0100 |
commit | 4caebd10edfd7a7d6515185637bd52067bd56ace (patch) | |
tree | ac2fa2e4221515796145284ffd8f4bbba06f349b /util/install_bootloader.sh | |
parent | 7a26c8516f712ee8ea58690bb5dd696efa920295 (diff) | |
parent | ebf7eac32d7ce0f176e269d6647ed1914cdeaff9 (diff) | |
download | archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.tar archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.tar.zst archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.zip |
Merging feature_bios into devel
Diffstat (limited to 'util/install_bootloader.sh')
-rw-r--r-- | util/install_bootloader.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/util/install_bootloader.sh b/util/install_bootloader.sh deleted file mode 100644 index 3f63f64..0000000 --- a/util/install_bootloader.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - - -# archinstall - A minimal Installation Script for Arch Linux -# Copyright (C) 2019 xengineering - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <https://www.gnu.org/licenses/>. - - -efi_partition_path=$1 -system_encryption=$2 -main_partition_path=$3 - - -mount $efi_partition_path /mnt -grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB \ ---removable - -if [ $system_encryption == "yes" ];then - - cryptdevice_uuid=$(lsblk --fs | grep "$(basename $main_partition_path)" | awk '{print $3}') - echo "cryptdevice_uuid: $cryptdevice_uuid" - old_kernel_param_line=$(cat /etc/default/grub | grep "GRUB_CMDLINE_LINUX_DEFAULT") - echo "old_kernel_param_line: $old_kernel_param_line" - new_kernal_param_line="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet cryptdevice=UUID=${cryptdevice_uuid}:main root=/dev/mapper/main\"" - echo "new_kernel_param_line: $new_kernal_param_line" - echo "Adding kernel parameters to /etc/default/grub" - sed -i "s|$old_kernel_param_line|$new_kernal_param_line|" /etc/default/grub - -fi - -grub-mkconfig -o /boot/grub/grub.cfg -umount $efi_partition_path - -echo "Installed bootloader - OK" |