| 
															
																@@ -293,12 +293,14 @@ bootloader(){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 echo "$grubPkg selected as bootloader" 
															 | 
															
															 | 
															
																 echo "$grubPkg selected as bootloader" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 if [ $partition="mbr-single" ] 
															 | 
															
															 | 
															
																 if [ $partition="mbr-single" ] 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 then 
															 | 
															
															 | 
															
																 then 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+  echo ---mbr 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   chroot $mnt /bin/bash -c "grub-install $disk && update-grub" 
															 | 
															
															 | 
															
																   chroot $mnt /bin/bash -c "grub-install $disk && update-grub" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 fi 
															 | 
															
															 | 
															
																 fi 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 # Install grub in the efi partition 
															 | 
															
															 | 
															
																 # Install grub in the efi partition 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 if [ $partition="efi-crypt" ] 
															 | 
															
															 | 
															
																 if [ $partition="efi-crypt" ] 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 then 
															 | 
															
															 | 
															
																 then 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+  echo ---efi 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   chroot $mnt /bin/bash -c \ 
															 | 
															
															 | 
															
																   chroot $mnt /bin/bash -c \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   "grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub && update-grub"  
															 | 
															
															 | 
															
																   "grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub && update-grub"  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 fi 
															 | 
															
															 | 
															
																 fi 
															 |