#1358 Issue closed: Rear cannot read kernel file on aarch64

Labels: enhancement, needs sponsorship, no-issue-activity

tcerna opened issue at 2017-05-10 14:21:

Hi,
backup creation failed in architecture aarch64 with error:
ERROR: Cannot setup GRUB_RESCUE: Cannot read kernel file ''.

It looks that problem is that aarch64 does not have grub2. It has only grubby. Is there some way how to create a backup on this architecture?

# arch
aarch64

# rpm -q rear
rear-2.00-1.el7.aarch64

# cat /etc/rear/local.conf 
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=nfs://$NFSSERVER/mnt/rear/
GRUB_RESCUE=1

# rear -v mkbackup
Relax-and-Recover 2.00 / Git
Using log file: /var/log/rear/rear-hp-moonshot-03-c34.log
Using backup archive 'backup.tar.gz'
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Creating disk layout
Creating root filesystem layout
Copying logfile /var/log/rear/rear-hp-moonshot-03-c34.log into initramfs as '/tmp/rear-hp-moonshot-03-c34-partial-2017-05-10T10:11:32-0400.log'
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
Setting up GRUB_RESCUE: Adding Relax-and-Recover rescue system to the local GRUB 2 configuration.
ERROR: Cannot setup GRUB_RESCUE: Cannot read kernel file ''.
Aborting due to an error, check /var/log/rear/rear-hp-moonshot-03-c34.log for details

# cat /var/log/rear/rear.log
...
2017-05-10 10:12:10 Including output/default/940_grub2_rescue.sh
2017-05-10 10:12:10 Setting up GRUB_RESCUE: Adding Relax-and-Recover rescue system to the local GRUB 2 configuration.
2017-05-10 10:12:10 ERROR: Cannot setup GRUB_RESCUE: Cannot read kernel file ''.
==== Stack trace ====
Trace 0: /usr/sbin/rear:504 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:24 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:85 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:45 Source
Trace 4: /usr/share/rear/output/default/940_grub2_rescue.sh:34 source
Message: Cannot setup GRUB_RESCUE: Cannot read kernel file ''.
...

# rpm -q grub grub2 grubby
package grub is not installed
package grub2 is not installed
grubby-8.28-18.el7.aarch64

jsmeix commented at 2017-05-11 08:51:

It seems the root cause is
https://github.com/rear/rear/issues/1261

For reference: See also the related issue
https://github.com/rear/rear/issues/1357

github-actions commented at 2020-07-02 01:33:

Stale issue message


[Export of Github issue for rear/rear.]