Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On RHEL 7.6 OUTPUT=PXE with UEFI needs 'linuxefi' and 'initrdefi' in function make_pxelinux_config_grub #2497

Closed
laurio0 opened this issue Sep 29, 2020 · 5 comments
Assignees
Milestone

Comments

@laurio0
Copy link

laurio0 commented Sep 29, 2020

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • ReaR version ("/usr/sbin/rear -V"):
    Relax-and-Recover 2.6 / 2020-06-17

  • OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):

NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
OUTPUT=PXE
PXE_CONFIG_URL="nfs://100.39.80.35/export/TFTP"
PXE_TFTP_URL="nfs://100.39.80.35/export/TFTP"
PXE_CONFIG_GRUB_STYLE=y
PXE_TFTP_IP=100.39.80.35
USING_UEFI_BOOTLOADER=yes
BACKUP=NETFS
BACKUP_URL="nfs://100.39.80.35/export/backup"
  • Hardware (PC or PowerNV BareMetal or ARM) or virtual machine (KVM guest or PoverVM LPAR):
    DELL PowerEdge R440 Server

  • System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
    X86_64

  • Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
    UEFI and GRUB

  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
    Local disk

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT" or "lsblk" as makeshift):

  • Description of the issue (ideally so that others can reproduce it):
    The function "make_pxelinux_config_grub" on "bootloader-functions.sh", generate this lines:

linux (tftp)//nodo2.kernel root=/dev/ram0 vga=normal rw selinux=0 console=ttyS0,9600 console=ttyS1,9600 console=tty0
echo 'Loading initial ramdisk ...'
initrd (tftp)//nodo2.initrd.cgz

And it doesn't boot.

  • Workaround, if any:
    The woraround is to change the above lines with:
linuxefi (tftp)//nodo2.kernel root=/dev/ram0 vga=normal rw selinux=0 console=ttyS0,9600 console=ttyS1,9600 console=tty0
echo 'Loading initial ramdisk ...'
initrdefi (tftp)//nodo2.initrd.cgz
  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):
@jsmeix jsmeix added the enhancement Adaptions and new features label Sep 30, 2020
@jsmeix jsmeix added this to the ReaR v2.7 milestone Sep 30, 2020
@jsmeix jsmeix changed the title function make_pxelinux_config_grub On RHEL 7.6 OUTPUT=PXE with UEFI needs 'linkxefi' and 'initrdefi' in function make_pxelinux_config_grub Sep 30, 2020
@jsmeix
Copy link
Member

jsmeix commented Sep 30, 2020

@laurio0
I am neither a REHL nor a PXE user so I would like to see in full detail
what exactly goes on on your particular system during "rear mkrescue"
so please attach your rear -D mkrescue debug log file.

@jsmeix jsmeix changed the title On RHEL 7.6 OUTPUT=PXE with UEFI needs 'linkxefi' and 'initrdefi' in function make_pxelinux_config_grub On RHEL 7.6 OUTPUT=PXE with UEFI needs 'linuxefi' and 'initrdefi' in function make_pxelinux_config_grub Sep 30, 2020
@jsmeix jsmeix added the cleanup label Sep 30, 2020
@jsmeix jsmeix self-assigned this Sep 30, 2020
@jsmeix
Copy link
Member

jsmeix commented Sep 30, 2020

PXE_CONFIG_GRUB_STYLE was implemented via
#1339

As far as I see PXE_CONFIG_GRUB_STYLE usage
is not yet sufficiently documented in ReaR.
E.g. I noticed in usr/share/rear/lib/bootloader-functions.sh

function make_pxelinux_config_grub {
...
    # we use this function only when $PXE_CONFIG_URL is set and $PXE_CONFIG_GRUB_STYLE=y
    # TODO First Draft. Need to complete with all other options (see make_pxelinux_config).

but those restrictions are not mentioned in usr/share/rear/conf/default.conf
so some general enhancements and cleanup is needed in this area.

@laurio0
Copy link
Author

laurio0 commented Oct 2, 2020

The message at boot is:

Loading Kernel . . .
error: can't find command 'linux'.
Loading initial ramdisk . . .
error: can't find command 'initrd'.

@jsmeix
Copy link
Member

jsmeix commented Oct 5, 2020

@laurio0
I am neither a REHL nor a PXE user so I would like to see in full detail
what exactly goes on on your particular system during "rear mkrescue"
so please attach a recent rear -D mkrescue debug log file.

@github-actions
Copy link

github-actions bot commented Dec 5, 2020

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants