diff --git a/acorinstaller/bootloader-config b/acorinstaller/bootloader-config old mode 100755 new mode 100644 index fa06ccc..7846c8b --- a/acorinstaller/bootloader-config +++ b/acorinstaller/bootloader-config @@ -2,26 +2,20 @@ CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g") -# Install luks utilities if needed. -# Also, set secure permissions for the initramfs if we're configuring +# Set secure permissions for the initramfs if we're configuring # full-disk-encryption. The initramfs is re-generated later in the # installation process so we only set the permissions snippet without # regenerating the initramfs right now: if [ "$(mount | grep $CHROOT" " | cut -c -16)" = "/dev/mapper/luks" ]; then echo "UMASK=0077" > $CHROOT/etc/initramfs-tools/conf.d/initramfs-permissions - chroot $CHROOT apt-get -y install cryptsetup-initramfs cryptsetup keyutils fi 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 + 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 + DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc cryptsetup keyutils fi - -# Re-enable os-prober: -sed -i "s/#GRUB_DISABLE_OS_PROBER=false/# OS_PROBER re-enabled by Debian Calamares installation:\nGRUB_DISABLE_OS_PROBER=false/g" $CHROOT/etc/default/grub -chroot $CHROOT /usr/sbin/update-grub diff --git a/acorinstaller/bootloader-config-32/bootloader-config b/acorinstaller/bootloader-config-32/bootloader-config old mode 100755 new mode 100644 index 9da5861..0dbae95 --- a/acorinstaller/bootloader-config-32/bootloader-config +++ b/acorinstaller/bootloader-config-32/bootloader-config @@ -2,26 +2,20 @@ CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g") -# Install luks utilities if needed. -# Also, set secure permissions for the initramfs if we're configuring +# Set secure permissions for the initramfs if we're configuring # full-disk-encryption. The initramfs is re-generated later in the # installation process so we only set the permissions snippet without # regenerating the initramfs right now: if [ "$(mount | grep $CHROOT" " | cut -c -16)" = "/dev/mapper/luks" ]; then echo "UMASK=0077" > $CHROOT/etc/initramfs-tools/conf.d/initramfs-permissions - chroot $CHROOT apt-get -y install cryptsetup-initramfs cryptsetup keyutils fi 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-ia32 + DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi-ia32 cryptsetup keyutils else echo " * install grub... (bios)" - DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc + DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc cryptsetup keyutils fi - -# Re-enable os-prober: -sed -i "s/#GRUB_DISABLE_OS_PROBER=false/# OS_PROBER re-enabled by Debian Calamares installation:\nGRUB_DISABLE_OS_PROBER=false/g" $CHROOT/etc/default/grub -chroot $CHROOT /usr/sbin/update-grub