#2850 Issue closed: mkrescue with PXE_CREATE_LINKS=MAC does not respect PXE_CONFIG_GRUB_STYLE=y

Labels: fixed / solved / done, minor bug

justinotherguy opened issue at 2022-08-12 11:22:

  • ReaR version ("/usr/sbin/rear -V"): Relax-and-Recover 2.7-git.4890.83a6976.master / 2022-08-11

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

    • OS_VENDOR=RedHatEnterpriseServer
    • OS_VERSION=7.9
  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):

PXE_CONFIG_GRUB_STYLE=y
PXE_TFTP_URL="nfs://nfs01/srv/tftp"
PXE_CONFIG_URL="nfs://nfs01/srv/tftp/boot/grub2/powerpc-ieee1275"

BACKUP=NETFS
BACKUP_URL=nfs://nfs01/srv/rear-backup/
BACKUP_PROG_COMPRESS_OPTIONS=( --use-compress-program=pigz )
REQUIRED_PROGS+=( pigz )
BACKUP_PROG_COMPRESS_SUFFIX=".gz"
BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/tmp/*' '/dev/shm/*' '/var/cache/yum/*')
AUTOEXCLUDE_MULTIPATH=n
EXCLUDE_VG=( )
EXCLUDE_MOUNTPOINTS=( )
  • Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR): PowerVM LPAR

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

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

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

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

NAME                                  KNAME      PKNAME     TRAN TYPE  FSTYPE  LABEL  SIZE MOUNTPOINT
/dev/sda                              /dev/sda                   disk  mpath_m        120G
`-/dev/mapper/mpathi                  /dev/dm-3  /dev/sda        mpath                120G
  |-/dev/mapper/mpathi1               /dev/dm-7  /dev/dm-3       part                   4M
  |-/dev/mapper/mpathi2               /dev/dm-8  /dev/dm-3       part  xfs              1G /boot
  |-/dev/mapper/mpathi3               /dev/dm-9  /dev/dm-3       part  LVM2_me         79G
  | |-/dev/mapper/rhel-root           /dev/dm-13 /dev/dm-9       lvm   xfs             70G /
  | |-/dev/mapper/rhel-swap           /dev/dm-14 /dev/dm-9       lvm   swap             4G
  | `-/dev/mapper/rhel-home           /dev/dm-15 /dev/dm-9       lvm   xfs             25G /home
  |-/dev/mapper/mpathi4               /dev/dm-10 /dev/dm-3       part                   1K
  `-/dev/mapper/mpathi5               /dev/dm-11 /dev/dm-3       part  LVM2_me         40G
    `-/dev/mapper/rhel-root           /dev/dm-13 /dev/dm-11      lvm   xfs             70G /
/dev/sdb                              /dev/sdb                   disk  mpath_m         90G
`-/dev/mapper/mpathj                  /dev/dm-1  /dev/sdb        mpath LVM2_me         90G
  `-/dev/mapper/swapvg-swaplv         /dev/dm-16 /dev/dm-1       lvm   swap            90G [SWAP]
/dev/sdg                              /dev/sdg                   disk  mpath_m        120G
`-/dev/mapper/mpathi                  /dev/dm-3  /dev/sdg        mpath                120G
  |-/dev/mapper/mpathi1               /dev/dm-7  /dev/dm-3       part                   4M
  |-/dev/mapper/mpathi2               /dev/dm-8  /dev/dm-3       part  xfs              1G /boot
  |-/dev/mapper/mpathi3               /dev/dm-9  /dev/dm-3       part  LVM2_me         79G
  | |-/dev/mapper/rhel-root           /dev/dm-13 /dev/dm-9       lvm   xfs             70G /
  | |-/dev/mapper/rhel-swap           /dev/dm-14 /dev/dm-9       lvm   swap             4G
  | `-/dev/mapper/rhel-home           /dev/dm-15 /dev/dm-9       lvm   xfs             25G /home
  |-/dev/mapper/mpathi4               /dev/dm-10 /dev/dm-3       part                   1K
  `-/dev/mapper/mpathi5               /dev/dm-11 /dev/dm-3       part  LVM2_me         40G
    `-/dev/mapper/rhel-root           /dev/dm-13 /dev/dm-11      lvm   xfs             70G /
/dev/sdh                              /dev/sdh                   disk  mpath_m         90G
`-/dev/mapper/mpathj                  /dev/dm-1  /dev/sdh        mpath LVM2_me         90G
  `-/dev/mapper/swapvg-swaplv         /dev/dm-16 /dev/dm-1       lvm   swap            90G [SWAP]
  • Description of the issue (ideally so that others can reproduce it):

    • during 'read mkrescue' the host specific grub.cfg is generated; the symlink does not have 'grub.cfg-' prepended, though; the file name consists of the mac address only; so '01-02-03-04-05-06-07' instead of 'grub.cfg-01-02-03-04-05-06-07'; this is exactly what PXE_CONFIG_GRUB_STYLE=y in combination with PXE_CREATE_LINKS=MAC should do; it does work fine with PXE_CREATE_LINKS=IP (well - using IP address instead of the mac address, of course)
  • Workaround, if any:

    • use PXE_CREATE_LINKS=IP
    • create the correct symlink by hand ;)

[Export of Github issue for rear/rear.]