summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh21
1 files changed, 3 insertions, 18 deletions
diff --git a/install.sh b/install.sh
index 3d661e1..e428663 100755
--- a/install.sh
+++ b/install.sh
@@ -106,16 +106,8 @@ read -rp "Type YES (in uppercase letters) to begin installation: " input
# Wipe file-system
wipefs -a "${drive}"
-# Create partitions
-if [[ $duel_boot == true ]]; then
- # create root partition
- printf ',+,L\n' \
- | sfdisk -qf -X gpt ${drive}
-else
- # create UEFI boot & root partition
- printf ',%s,U,*\n,+,L\n' "${boot_size}" \
- | sfdisk -qf -X gpt ${drive}
-fi
+# Create UEFI boot & root partition
+printf ',%s,U,*\n,+,L\n' "${boot_size}" | sfdisk -qf -X gpt ${drive}
# Encryption setup
if [[ $encrypt == true ]]; then
@@ -135,9 +127,7 @@ if [[ $encrypt == true ]]; then
fi
# Make BOOT filesystem
-if [[ $duel_boot == false ]]; then
- mkfs.fat -n BOOT -F 32 "${boot}"
-fi
+mkfs.fat -n BOOT -F 32 "${boot}"
# Make BTRFS ROOT filesystem
mkfs.btrfs -qfL ROOT "${root}"
@@ -402,11 +392,6 @@ grub_cmds="quiet loglevel=3 net.iframes=0 splash"
sed "s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"$grub_cmds $devices\"/" \
-i /mnt/etc/default/grub
-# Enable os-prober to detect other operating systems
-if [[ $duel_boot == true ]]; then
- echo "GRUB_DISABLE_OS_PROBER=false" >> /mnt/etc/default/grub
-fi
-
# Install grub bootloader
grub_options="--target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB"
artix-chroot /mnt bash -c "grub-install ${grub_options}"