Regarding the two uefi menu boot options, I have completed some additional testing to determine why there are two.
djemos wrote:To see what is not need. Please do the following.
Go on usb and
1. moove somewhere on your system initrd.gz and vmlinuz from EFI/BOOT folder
then try to boot with usb.
2. Copy again back the above files to EFI/BOOT folder and remove the files initrd.gz and vmlinuz from boot/ folder
then try to boot again
I did this testing and found that it does uefi boot from the /EFI/BOOT/ directory. Both the initrd and vmlinuz files need to be in this directory to boot. Having these files in the /boot/ directory makes do difference, the system boots with or without those files in the boot directory.
The reason why the uefi firmware generates two boot options, is because the install_on_usb script creates two valid FAT partitions on the USB stick. Here's the partition scheme that the script creates on my USB Flash drive.
Code: Select all
rich[~]$ parted -l
Model: ADATA USB Flash Drive (scsi)
Disk /dev/sdb: 4058MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 34.6MB 33.6MB fat16 EFI System boot
2 34.6MB 4058MB 4023MB fat32 Microsoft basic data
The uefi specification requires that the firmware automatically create "handlers" (boot menu options) for all block devices that support FAT12, FAT16 or FAT32 filesystem. When one of these options is selected the firmware looks for a boot image (bootx64.efi) in the /EFI/BOOT/ path. If the path doesn't exist or there is noimage it defaults to booting another device. In this case, even though partition 1 is empty, it is a valid FAT formatted partition so a boot option gets automatically generated. Since there nothing in it to boot, it boots the default OS. Deleting the first partition resulted in getting only one boot option in the uefi menu which did successfully boot into the elilo menu and then into Live.
So in summary, there should only be one FAT partition, and it required to have a /EFI/BOOT/ directory with the boot image. Both the initrd and kernel image needs to be in this directory also.
Hope this helps.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"