#3181 PR closed
: FYI: Fix for issue 3180 (will be done together with #3168)¶
Labels: bug
, won't fix / can't fix / obsolete
, blocker
jsmeix opened issue at 2024-03-18 14:43:¶
In sbin/rear do
QuietAddExitTask cleanup_build_area_and_end_program
after the build area was successfully created to fix
https://github.com/rear/rear/issues/3180
but still before the first possible call
of the 'Error' function to avoid to error out
but leave the build area behind, see
https://github.com/rear/rear/pull/2633
jsmeix commented at 2024-03-18 14:48:¶
With the changes of this pull request I get
# export TMPDIR=QQQ
# ls QQQ
ls: cannot access 'QQQ': No such file or directory
# usr/sbin/rear -D mkrescue
tac: failed to create temporary file in 'QQQ': No such file or directory
tac: failed to create temporary file in 'QQQ': No such file or directory
mktemp: failed to create directory via template 'QQQ/rear.XXXXXXXXXXXXXXX': No such file or directory
ERROR: Could not create build area ''
+ LogPrint 'Exiting rear mkrescue (PID 4187) and its descendant processes ...'
+ Log 'Exiting rear mkrescue (PID 4187) and its descendant processes ...'
+ test -w /root/rear.github.master/var/log/rear/rear-localhost.log
+ return 0
+ Print 'Exiting rear mkrescue (PID 4187) and its descendant processes ...'
Exiting rear mkrescue (PID 4187) and its descendant processes ...
...
Running exit tasks
...
+ eval '(( EXIT_FAIL_MESSAGE )) && echo '\''rear mkrescue failed, check /root/rear.github.master/var/log/rear/rear-localhost.log for details'\'' 1>&8'
...
rear mkrescue failed, check /root/rear.github.master/var/log/rear/rear-localhost.log for details
...
+ eval 'exec 8>&-'
...
+ eval 'exec 7>&-'
...
+ eval 'exec 6<&-'
jsmeix commented at 2024-03-18 15:54:¶
This one is obsoleted by one part of
https://github.com/rear/rear/commit/b741883d1c724f14e3cbe7fd7d295411c3aef4e9
jsmeix commented at 2024-03-26 12:32:¶
With
https://github.com/rear/rear/pull/3168
merged
the changes of this pull request are also merged
so this pull request can be closed.
[Export of Github issue for rear/rear.]