#1997 PR merged: $TMP_DIR parent directory was missing before initrd filename variable.

Labels: bug, fixed / solved / done

schabrolles opened issue at 2018-12-05 13:42:

Relax-and-Recover (ReaR) Pull Request Template

Please fill in the following items before submitting a new pull request:

Pull Request Details:
  • Type: Bug Fix

  • Impact: Normal

  • Reference to related issue (URL):

  • How was this pull request tested?

  • Tested on rhel7 on ppc64le with Boot on ISO
  • Brief description of the changes in this pull request:

Fix an error due to missing $TMP_DIR/ before $REAR_INITRD_FILENAME.
This prevents the ISO to be generated because of initrd cannot be found.

Testing that the recovery system in /tmp/rear.hDXOoQTdilZRyyA/rootfs contains a usable system
Creating recovery/rescue system initramfs/initrd initrd.xz with xz lzma compression
Created initrd.xz with xz lzma compression (42387961 bytes) in 113 seconds
ERROR: No initrd 'initrd.xz'
Some latest log messages since the last called script 800_create_isofs.sh:
  2018-12-05 12:15:56.948288172 Including output/ISO/Linux-ppc64le/800_create_isofs.sh
  2018-12-05 12:15:56.949402740 Copying kernel
  '/boot/vmlinuz-3.10.0-693.2.1.el7.ppc64le' -> '/tmp/rear.hDXOoQTdilZRyyA/tmp/kernel'
Aborting due to an error, check /var/log/rear/rear-rear-rhel-142.log for details
Exiting rear mkbackup (PID 447969) and its descendant processes
Running exit tasks
Terminated

schabrolles commented at 2018-12-05 13:44:

We miss this one ... maybe because I mostly use PXE to test ReaR on Power....
If you agree, I would like to merge this one ASAP.

jsmeix commented at 2018-12-05 14:34:

I agree to merge this one ASAP.

@schabrolles
many thanks for testing OUTPUT=ISO on PPC64LE!

jsmeix commented at 2018-12-05 14:43:

FYI:
Currently I fail to see via my "usual forensics" using
git log -p --follow usr/share/rear/output/ISO/Linux-ppc64le/800_create_isofs.sh
how that could have ever worked or when it became broken again
since https://github.com/rear/rear/issues/109

I have the dim feeling I may have had messed it up
at the time when I introduced REAR_INITRD_FILENAME?

schabrolles commented at 2018-12-05 15:02:

@jsmeix I don't know either how it could have worked before (I'm sure it was working...)
Maybe some script like 800_create_isofs.sh were previously executed inside the $TMP_DIR...


[Export of Github issue for rear/rear.]