<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 18.04.2018 um 10:14 schrieb
<a class="moz-txt-link-abbreviated" href="mailto:tt-fai@kky.ttu.ee">tt-fai@kky.ttu.ee</a>:<br>
</div>
<blockquote type="cite"
cite="mid:01e501d3d6ed$519949f0$f4cbddd0$@kky.ttu.ee">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB">I can second to that. I installed a SuperMicro
X10SLM-F based server last month and did not find any option
in the BIOS to PXE-boot FAI into UEFI mode. Ended up using
disklabel:gpt-bios and GRUB_PC. I did not try to boot off an
USB stick, so it is worth investigating if an option exists
for booting that in UEFI mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB">From my experiments I was left with the
impression that it is not easy (or even possible) to
“cross-install” UEFI-boot-capable disk if the system was
booted into legacy (BIOS) mode. If someone has found a way
to do it, I would also appreciate suggestions.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB">Toomas<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm
0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-GB">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"
lang="EN-GB"> linux-fai
<a class="moz-txt-link-rfc2396E" href="mailto:linux-fai-bounces@uni-koeln.de"><linux-fai-bounces@uni-koeln.de></a> <b>On Behalf
Of </b>Andreas Heinlein<br>
<b>Sent:</b> Wednesday, April 18, 2018 9:56 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:linux-fai@uni-koeln.de">linux-fai@uni-koeln.de</a><br>
<b>Subject:</b> Re: GRUB EFI blues - Debian 9/FAI
5.3.6<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB">Am 18.04.2018 um
00:28 schrieb Bob Apodaca:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-GB">I think the first issue is FAI is setting
the GRUB_PC class instead of the GRUB_EFI class and I'm
not sure why.<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span lang="EN-GB">I am pretty sure this
depends on how the installation was started. That means
you will have to boot your FAI installation using UEFI as
well. This can be a bit tricky if you want to install from
network - I also tried setting up PXE with UEFI some time
ago and failed.<br>
Bye,<br>
Andreas<o:p></o:p></span></p>
</div>
</div>
</blockquote>
I am pretty sure it is not possible to set up grub-efi correctly
when booted in legacy mode. While it is possible to detect that we
are actually running an EFI-capable machine (dmidecode or lshw can
detect that), we cannot access the efi variables under /sys/efi
since the firmware doesn't expose them to the host when running
under CSM aka "Legacy mode".<br>
<br>
Booting from USB with UEFI is possible, in fact I have such a USB
device here somewhere. But I need to remember what I did, it was not
(yet) completed in FAI at that time. I remember I wanted to make
some patches available, but never found the time. This is almost a
year ago now. What you basically need is a small FAT partition
preferrably of type 'ef' (EFI Boot Partition) on the USB drive,
which contains a grub efi image as EFI/BOOT/BOOTX64.EFI. That image
can be created with grub-mkimage and needs to include at least all
modules for reading the "main" partition and the grub.cfg on it.
That will be mostly ext filesystem and msdos partition table, I
think. That image should also include an embedded config file with a
one-liner like<br>
configfile (hd0,msdos1)<br>
if the main partition is the second on the USB drive.<br>
<br>
I will try to find this again and post it here.<br>
<br>
Bye,<br>
Andreas
</body>
</html>