From e2a1d5fa18c9496ed2a62ee18de52e86453f3552 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 11 Nov 2024 07:39:40 +0100 Subject: [PATCH] fixed the chroot commands --- configs/scripts/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/scripts/install.sh b/configs/scripts/install.sh index 61ec96c..61bd842 100755 --- a/configs/scripts/install.sh +++ b/configs/scripts/install.sh @@ -23,15 +23,15 @@ mount --bind /dev /mnt/dev mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys -if command -v grub2-mkconfig &>/dev/null; then +if chroot /mnt /bin/bash -c "command -v grub2-mkconfig &>/dev/null;" then chroot /mnt /bin/bash -c "grub2-mkconfig -o /boot/grub/grub.cfg" -elif command -v grub-mkconfig &>/dev/null; then +elif chroot /mnt /bin/bash -c "command -v grub-mkconfig &>/dev/null;" then chroot /mnt /bin/bash -c "grub-mkconfig -o /boot/grub/grub.cfg" fi -if command -v grub2-install &>/dev/null; then +if chroot /mnt /bin/bash -c "command -v grub2-install &>/dev/null;" then chroot /mnt /bin/bash -c "grub2-install /dev/sda" -elif command -v grub-install &>/dev/null; then +elif chroot /mnt /bin/bash -c "command -v grub-install &>/dev/null;" then chroot /mnt /bin/bash -c "grub-install /dev/sda" fi