summaryrefslogtreecommitdiff
path: root/backend/modules
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules')
-rw-r--r--backend/modules/bootloader2
-rw-r--r--backend/modules/install2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/modules/bootloader b/backend/modules/bootloader
index ac5185b..7f74e82 100644
--- a/backend/modules/bootloader
+++ b/backend/modules/bootloader
@@ -88,7 +88,7 @@ function install_grub()
# install grub
mkdir -p "$TARGET/boot/grub"
if [ -d /sys/firmware/efi ]; then
- if is_removeable "$cfg_bootloader_target" && [ "$apple" = 1 ]; then
+ if is_removeable "$cfg_bootloader_target" || [ "$apple" = 1 ]; then
chroot_it grub-install --removeable &>/dev/null
else
chroot_it grub-install &>/dev/null
diff --git a/backend/modules/install b/backend/modules/install
index 4d63fec..852861a 100644
--- a/backend/modules/install
+++ b/backend/modules/install
@@ -27,7 +27,7 @@ function prepare_target()
# add EFI bootloader target to hdmap
if [ -d /sys/firmware/efi ]; then
- efi_part="$(get_disk "$cfg_bootloader_target")"
+ efi_part="$cfg_bootloader_target"
if [ "$efi_part" ]; then
hdmap_set "$efi_part:/boot/efi::auto"
fi