<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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:0in;
        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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2015843546;
        mso-list-type:hybrid;
        mso-list-template-ids:1438408856 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">Please accept my apology in advance, I cannot get this e-mail client to bottom post and be readable.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">Here's what I've found:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">My thumb drive appears to be booting in EFI mode as I can see /sys/firmware/efi once the system is installing. In addition, dmesg.log shows:<br>
[    0.000000] efi: EFI v2.50 by American Megatrends<br>
[    0.000000] efi:  ACPI=0x9e1b2000  ACPI 2.0=0x9e1b2000  SMBIOS=0xf05e0  SMBIOS 3.0=0xf0600  MPS=0xfca20  ESRT=0x9a7e0bd8<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">I suspect another issue was the fact I was missing a partition for /boot/efi with a "vfat" filesystem. I've fixed this as well.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><![endif]><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">I thought I might need the grub-efi package installed in the NFSROOT and I tried to do so but this caused conflicts with fai-make-nfsroot<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">At this point, I think getting GRUB to install is the main issue. If I could get FAI to create GRUB_EFI that would be wonderful as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"> linux-fai [mailto:linux-fai-bounces@uni-koeln.de]
<b>On Behalf Of </b>Andreas Heinlein<br>
<b>Sent:</b> Wednesday, April 18, 2018 3:22 AM<br>
<b>To:</b> linux-fai@uni-koeln.de<br>
<b>Subject:</b> [External] Re: GRUB EFI blues - Debian 9/FAI 5.3.6<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Am 18.04.2018 um 10:14 schrieb <a href="mailto:tt-fai@kky.ttu.ee">
tt-fai@kky.ttu.ee</a>:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Toomas</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"> linux-fai
<a 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 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</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-GB">Am 18.04.2018 um 00:28 schrieb Bob Apodaca:</span><o:p></o:p></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.</span><o:p></o:p></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</span><o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal">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 <span style="color:windowtext"><o:p></o:p></span></p>
</div>
</div>
</body>
</html>