Closed chris-romanov closed 4 days ago
If ravynOS is already installed on the disk, the installation script blocks the Dual Boot option. Only the Clean Install option will be available.
?
# Check for existing bootloader entries
if [[ "$install_mode" -eq 2 ]]; then
echo -e "${GRAY}Adding ravynOS to the existing EFI partition...${RESET}"
# Extract the EFI partition number using awk instead of grep -P
efi_partition=$(gpart show $device | awk '/efi/ {print $3}')
# Ensure we got a valid partition number
if [[ -z "$efi_partition" ]]; then
echo -e "${RED}Error: EFI partition not found on $device.${RESET}"
exit 1
fi
efibootmgr -c -d /dev/$device -p $efi_partition -L "ravynOS" -l '/tmp/efi/efi/ravynos/bootx64.efi'
efibootmgr -t 10
echo -e "\033[0;32mTimeout of 10 seconds has been set.\033[0m"
echo -e "To change it, use: \033[0;36mefibootmgr -t 5\033[0m"
else
echo -e "${GRAY}Setting up new EFI boot entry...${RESET}"
mkdir -p /tmp/efi/efi/boot
cp /boot/loader.efi /tmp/efi/efi/boot/bootx64.efi
fi
Fixed several issues. Changed folder names from efi to EFI, EFI\RAVYNOS, EFI\BOOT. UEFI SPECS
Added SSH enablement for the Dev machine.
Hi @mszoek,
Description: This pull request introduces two installation modes for the ravynOS installer:
I would greatly appreciate feedback, suggestions, and testing, especially for the Dual-Boot mode. Let me know your thoughts! 😊