-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.3.0
-
None
-
rear-2.6-24.el9
-
Yes
-
Moderate
-
ZStream, Regression
-
rhel-sst-cs-system-management
-
ssg_core_services
-
26
-
26
-
3
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
Approved Blocker
-
Bug Fix
-
-
Done
-
None
What were you trying to do that didn't work?
Some customers use a dedicated TMPDIR to create the backup, through adding the following in /etc/rear/local.conf:
export TMPDIR=/foo/bar
This was working fine with RHEL7 and RHEL8, but now fails during Rescue boot, at step 55-migrate-network-devices.sh:
mktemp: failed to create file via template '/foo/bar/tmp.XXXXXXXXXX': No such file or directory cp: missing destination file operand after '/etc/rear/mappings/mac' Try 'cp --help' for more information. No network interface mapping is specified in /etc/rear/mappings/mac The original network interface enp1s0 52:54:00:4e:e2:ef is not available 1) enp1s0 52:54:00:4e:e2:ef virtio_net 2) enp8s0 52:54:00:81:42:fe virtio_net 3) Skip replacing enp1s0 52:54:00:4e:e2:ef Choose replacement for enp1s0 52:54:00:4e:e2:ef
This is because $TMPDIR doesn't exist in the initramfs, preventing mktemp from creating a temporary file.
On RHEL8 (rear-2.6-10.el8), mktemp was creating the file in /tmp, which hence tells us something changed with RHEL9 rear since $TMPDIR seems to be used during Rescue, while it was not previously.
I didn't dig further into this.
Please provide the package NVR for which bug is seen:
rear-2.6-20.el9_3.x86_64
How reproducible:
Always
Steps to reproduce
- Set a TMPDIR in /etc/rear/local.conf
export TMPDIR=/foo/bar
- Create the TMPDIR on system and generate the rescue
# mkdir -p /foo/bar # rear mkrescue
- Make sure you have 2 network interfaces on the system to trigger the issue
- Boot the Rescue
Expected results
Getting the prompt
Actual results
Asks for interface mapping
- is duplicated by
-
RHEL-24876 [Bug] Rear recover fails with "ERROR: Could not create build area"
- Closed
- is related to
-
RHEL-24876 [Bug] Rear recover fails with "ERROR: Could not create build area"
- Closed
- links to
-
RHSA-2024:126086 rear bug fix and enhancement update