14 lines
469 B
Bash
Executable File
14 lines
469 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
|
|
|
|
echo "Running bootloader-config..."
|
|
|
|
if [ -d /sys/firmware/efi/efivars ]; then
|
|
echo " * Installing grub-efi (uefi)..."
|
|
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi-amd64 cryptsetup keyutils
|
|
else
|
|
echo " * install grub... (bios)"
|
|
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc cryptsetup keyutils
|
|
fi
|