Ubuntu signed Grub do not prefix tftp-root directory for tftp requests
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
dpkg -l grub-efi-amd64-signed
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-================-================-=================================================
iU grub-efi-amd64-signed 1.34+2.02~beta2- amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 ve
Grub requests for files to tftpserver are not prefixed with tftproot. Though 'prefix' variable is set. This is being observed in UEFI boot mode. This leads to boot failure as grub is unable to fetch grub.cfg
Relevant O/p from grub prompt:
prefix=(tftp,10.10.1.13)/grub
root=tftp,10.10.1.13
pxe_default_server=10.10.1.13
net_default_ip=10.10.1.161
net_default_mac=a0:d3:c1:fb:86:94
net_default_server:10.10.1.13
grub_cpu=x86_64
grub_platform=efi
tcpdump o/p
1382 17:33:56.955465 IP 10.10.1.161.25300 > 10.10.1.13.tftp: 58 RRQ "/grub/x86_64-efi/command.lst" octet blksiz e 1024 tsize 0
1383 17:33:56.956640 IP 10.10.1.13.45600 > 10.10.1.161.25300: UDP, length 24
1384 17:33:56.956885 IP 10.10.1.161.25301 > 10.10.1.13.tftp: 53 RRQ "/grub/x86_64-efi/fs.lst" octet blksize 102 4 tsize 0
1385 17:33:56.958146 IP 10.10.1.13.42098 > 10.10.1.161.25301: UDP, length 24
1386 17:33:56.958368 IP 10.10.1.161.25302 > 10.10.1.13.tftp: 57 RRQ "/grub/x86_64-efi/crypto.lst" octet blksize 1024 tsize 0
1387 17:33:56.959412 IP 10.10.1.13.33848 > 10.10.1.161.25302: UDP, length 24
1388 17:33:56.959646 IP 10.10.1.161.25303 > 10.10.1.13.tftp: 59 RRQ "/grub/x86_64-efi/terminal.lst" octet blksi ze 1024 tsize 0
1389 17:33:56.961969 IP 10.10.1.13.47148 > 10.10.1.161.25303: UDP, length 24
1390 17:33:56.962482 IP 10.10.1.161.25304 > 10.10.1.13.tftp: 44 RRQ "/grub/grub.cfg" octet blksize 1024 tsize 0
1391 17:33:56.966059 IP 10.10.1.13.38281 > 10.10.1.161.25304: UDP, length 24
Am I missing anything here?
boot grub2 uefi
add a comment |
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
dpkg -l grub-efi-amd64-signed
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-================-================-=================================================
iU grub-efi-amd64-signed 1.34+2.02~beta2- amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 ve
Grub requests for files to tftpserver are not prefixed with tftproot. Though 'prefix' variable is set. This is being observed in UEFI boot mode. This leads to boot failure as grub is unable to fetch grub.cfg
Relevant O/p from grub prompt:
prefix=(tftp,10.10.1.13)/grub
root=tftp,10.10.1.13
pxe_default_server=10.10.1.13
net_default_ip=10.10.1.161
net_default_mac=a0:d3:c1:fb:86:94
net_default_server:10.10.1.13
grub_cpu=x86_64
grub_platform=efi
tcpdump o/p
1382 17:33:56.955465 IP 10.10.1.161.25300 > 10.10.1.13.tftp: 58 RRQ "/grub/x86_64-efi/command.lst" octet blksiz e 1024 tsize 0
1383 17:33:56.956640 IP 10.10.1.13.45600 > 10.10.1.161.25300: UDP, length 24
1384 17:33:56.956885 IP 10.10.1.161.25301 > 10.10.1.13.tftp: 53 RRQ "/grub/x86_64-efi/fs.lst" octet blksize 102 4 tsize 0
1385 17:33:56.958146 IP 10.10.1.13.42098 > 10.10.1.161.25301: UDP, length 24
1386 17:33:56.958368 IP 10.10.1.161.25302 > 10.10.1.13.tftp: 57 RRQ "/grub/x86_64-efi/crypto.lst" octet blksize 1024 tsize 0
1387 17:33:56.959412 IP 10.10.1.13.33848 > 10.10.1.161.25302: UDP, length 24
1388 17:33:56.959646 IP 10.10.1.161.25303 > 10.10.1.13.tftp: 59 RRQ "/grub/x86_64-efi/terminal.lst" octet blksi ze 1024 tsize 0
1389 17:33:56.961969 IP 10.10.1.13.47148 > 10.10.1.161.25303: UDP, length 24
1390 17:33:56.962482 IP 10.10.1.161.25304 > 10.10.1.13.tftp: 44 RRQ "/grub/grub.cfg" octet blksize 1024 tsize 0
1391 17:33:56.966059 IP 10.10.1.13.38281 > 10.10.1.161.25304: UDP, length 24
Am I missing anything here?
boot grub2 uefi
add a comment |
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
dpkg -l grub-efi-amd64-signed
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-================-================-=================================================
iU grub-efi-amd64-signed 1.34+2.02~beta2- amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 ve
Grub requests for files to tftpserver are not prefixed with tftproot. Though 'prefix' variable is set. This is being observed in UEFI boot mode. This leads to boot failure as grub is unable to fetch grub.cfg
Relevant O/p from grub prompt:
prefix=(tftp,10.10.1.13)/grub
root=tftp,10.10.1.13
pxe_default_server=10.10.1.13
net_default_ip=10.10.1.161
net_default_mac=a0:d3:c1:fb:86:94
net_default_server:10.10.1.13
grub_cpu=x86_64
grub_platform=efi
tcpdump o/p
1382 17:33:56.955465 IP 10.10.1.161.25300 > 10.10.1.13.tftp: 58 RRQ "/grub/x86_64-efi/command.lst" octet blksiz e 1024 tsize 0
1383 17:33:56.956640 IP 10.10.1.13.45600 > 10.10.1.161.25300: UDP, length 24
1384 17:33:56.956885 IP 10.10.1.161.25301 > 10.10.1.13.tftp: 53 RRQ "/grub/x86_64-efi/fs.lst" octet blksize 102 4 tsize 0
1385 17:33:56.958146 IP 10.10.1.13.42098 > 10.10.1.161.25301: UDP, length 24
1386 17:33:56.958368 IP 10.10.1.161.25302 > 10.10.1.13.tftp: 57 RRQ "/grub/x86_64-efi/crypto.lst" octet blksize 1024 tsize 0
1387 17:33:56.959412 IP 10.10.1.13.33848 > 10.10.1.161.25302: UDP, length 24
1388 17:33:56.959646 IP 10.10.1.161.25303 > 10.10.1.13.tftp: 59 RRQ "/grub/x86_64-efi/terminal.lst" octet blksi ze 1024 tsize 0
1389 17:33:56.961969 IP 10.10.1.13.47148 > 10.10.1.161.25303: UDP, length 24
1390 17:33:56.962482 IP 10.10.1.161.25304 > 10.10.1.13.tftp: 44 RRQ "/grub/grub.cfg" octet blksize 1024 tsize 0
1391 17:33:56.966059 IP 10.10.1.13.38281 > 10.10.1.161.25304: UDP, length 24
Am I missing anything here?
boot grub2 uefi
$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
dpkg -l grub-efi-amd64-signed
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-================-================-=================================================
iU grub-efi-amd64-signed 1.34+2.02~beta2- amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 ve
Grub requests for files to tftpserver are not prefixed with tftproot. Though 'prefix' variable is set. This is being observed in UEFI boot mode. This leads to boot failure as grub is unable to fetch grub.cfg
Relevant O/p from grub prompt:
prefix=(tftp,10.10.1.13)/grub
root=tftp,10.10.1.13
pxe_default_server=10.10.1.13
net_default_ip=10.10.1.161
net_default_mac=a0:d3:c1:fb:86:94
net_default_server:10.10.1.13
grub_cpu=x86_64
grub_platform=efi
tcpdump o/p
1382 17:33:56.955465 IP 10.10.1.161.25300 > 10.10.1.13.tftp: 58 RRQ "/grub/x86_64-efi/command.lst" octet blksiz e 1024 tsize 0
1383 17:33:56.956640 IP 10.10.1.13.45600 > 10.10.1.161.25300: UDP, length 24
1384 17:33:56.956885 IP 10.10.1.161.25301 > 10.10.1.13.tftp: 53 RRQ "/grub/x86_64-efi/fs.lst" octet blksize 102 4 tsize 0
1385 17:33:56.958146 IP 10.10.1.13.42098 > 10.10.1.161.25301: UDP, length 24
1386 17:33:56.958368 IP 10.10.1.161.25302 > 10.10.1.13.tftp: 57 RRQ "/grub/x86_64-efi/crypto.lst" octet blksize 1024 tsize 0
1387 17:33:56.959412 IP 10.10.1.13.33848 > 10.10.1.161.25302: UDP, length 24
1388 17:33:56.959646 IP 10.10.1.161.25303 > 10.10.1.13.tftp: 59 RRQ "/grub/x86_64-efi/terminal.lst" octet blksi ze 1024 tsize 0
1389 17:33:56.961969 IP 10.10.1.13.47148 > 10.10.1.161.25303: UDP, length 24
1390 17:33:56.962482 IP 10.10.1.161.25304 > 10.10.1.13.tftp: 44 RRQ "/grub/grub.cfg" octet blksize 1024 tsize 0
1391 17:33:56.966059 IP 10.10.1.13.38281 > 10.10.1.161.25304: UDP, length 24
Am I missing anything here?
boot grub2 uefi
boot grub2 uefi
edited Nov 5 '14 at 13:03
ph0t0nix
1,0971025
1,0971025
asked Nov 5 '14 at 8:28
Shivanand TendulkerShivanand Tendulker
62
62
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.
/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"
Can you see the grub.cfg file from grub?
grub> cat (tftp,10.10.1.13)/grub/grub.cfg
or
grub> cat (tftp,10.10.1.13)/grub.cfg
I also found it helpful for debugging the file to do the following:
grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...
You can use this to check the syntax for your file.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f545879%2fubuntu-signed-grub-do-not-prefix-tftp-root-directory-for-tftp-requests%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.
/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"
Can you see the grub.cfg file from grub?
grub> cat (tftp,10.10.1.13)/grub/grub.cfg
or
grub> cat (tftp,10.10.1.13)/grub.cfg
I also found it helpful for debugging the file to do the following:
grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...
You can use this to check the syntax for your file.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.
/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"
Can you see the grub.cfg file from grub?
grub> cat (tftp,10.10.1.13)/grub/grub.cfg
or
grub> cat (tftp,10.10.1.13)/grub.cfg
I also found it helpful for debugging the file to do the following:
grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...
You can use this to check the syntax for your file.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.
/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"
Can you see the grub.cfg file from grub?
grub> cat (tftp,10.10.1.13)/grub/grub.cfg
or
grub> cat (tftp,10.10.1.13)/grub.cfg
I also found it helpful for debugging the file to do the following:
grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...
You can use this to check the syntax for your file.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.
/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"
Can you see the grub.cfg file from grub?
grub> cat (tftp,10.10.1.13)/grub/grub.cfg
or
grub> cat (tftp,10.10.1.13)/grub.cfg
I also found it helpful for debugging the file to do the following:
grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...
You can use this to check the syntax for your file.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 30 mins ago
John HJohn H
11
11
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
John H is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f545879%2fubuntu-signed-grub-do-not-prefix-tftp-root-directory-for-tftp-requests%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown