submenu "Windows" --class windows {

    regexp -s rootdevice '(.*),' $root

    submenu "Live" --class windows {

        regexp -s rootdevice '(.*),' $root

    menuentry "Windows 10 PE" --class windows {
        set root="(${rootdevice},6)"
            insmod part_gpt
            insmod ntfs
            insmod chain
            chainloader /efi/boot/bootx64.efi
        }
    }

    menuentry "Windows 10" --class windows {
        set root="(${rootdevice},5)"
        insmod part_gpt
        insmod ntfs
        insmod chain
        chainloader /efi/boot/bootx64.efi
    }

    menuentry "Windows 10 Lite (8 в 1)" --class windows {
        set root="(${rootdevice},3)"
        insmod part_gpt
        insmod ntfs
        insmod chain
        chainloader /EFI/boot/bootx64.efi
    }

    menuentry "Windows 11" --class windows {
        set root="(${rootdevice},4)"
        insmod part_gpt
        insmod ntfs
        insmod chain
        chainloader /efi/boot/bootx64.efi
    }
}
