[Bug 1012810] New: [rear] /tmp directory provided in /etc/rear/local is not honored
http://bugzilla.suse.com/show_bug.cgi?id=1012810 Bug ID: 1012810 Summary: [rear] /tmp directory provided in /etc/rear/local is not honored Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: ralf.bueker@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- rear tar archives are always created in /tmp, no matter what is set in /etc/rear/local.conf as TMPDIR adding the -p ${TMPDIR} parameter in /usr/sbin/rear fixes the issue. should be: BUILD_DIR="$( mktemp -d -p ${TMPDIR} -t rear.XXXXXXXXXXXXXXX || Error "Could not create build area '$BUILD_DIR'" )" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 http://bugzilla.suse.com/show_bug.cgi?id=1012810#c1 Ralf Bueker <ralf.bueker@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium --- Comment #1 from Ralf Bueker <ralf.bueker@suse.com> --- inux-qt7w:/tmp # rpm -qa | grep rear rear-1.19-1.1.x86_64 inux-qt7w:/tmp # uname -a Linux linux-qt7w 4.8.7-1-default #1 SMP PREEMPT Thu Nov 10 17:06:41 UTC 2016 (c8f02a2) x86_64 x86_64 x86_64 GNU/Linux -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 http://bugzilla.suse.com/show_bug.cgi?id=1012810#c2 --- Comment #2 from Ralf Bueker <ralf.bueker@suse.com> --- inux-qt7w:/tmp # rpm -qa | grep rear rear-1.19-1.1.x86_64 inux-qt7w:/tmp # uname -a Linux linux-qt7w 4.8.7-1-default #1 SMP PREEMPT Thu Nov 10 17:06:41 UTC 2016 (c8f02a2) x86_64 x86_64 x86_64 GNU/Linux -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 Ralf Bueker <ralf.bueker@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Customer -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 http://bugzilla.suse.com/show_bug.cgi?id=1012810#c3 Ralf Bueker <ralf.bueker@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ralf.bueker@suse.com --- Comment #3 from Ralf Bueker <ralf.bueker@suse.com> --- ... but setting the -p ${TMPDIR} for mktemp then "rear format" would not work anymore -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |jsmeix@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 http://bugzilla.suse.com/show_bug.cgi?id=1012810#c4 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Johannes Meixner <jsmeix@suse.com> --- To set TMPDIR in /etc/rear/local.conf you need to do it this way: ------------------------------------------------------------------- export TMPDIR="/myreartmp" ------------------------------------------------------------------- Furthermore there is the ReaR upstream issue https://github.com/rear/rear/issues/968 which I have fixed upstream via https://github.com/rear/rear/pull/969 Basically after removing the TMPDIR setting in default.conf it should work in compliance with Unix standards. See the comment about TMPDIR in the current ReaR upstream GitHub 'master' default.conf file at https://raw.githubusercontent.com/rear/rear/master/usr/share/rear/conf/defau... In general regarding what ReaR version to use see the section about "Version upgrades with Relax-and-Recover" in https://en.opensuse.org/SDB:Disaster_Recovery that reads in particular (excerpts): ------------------------------------------------------------------- When you have a working disaster recovery procedure, do not upgrade ReaR ... In contrast when a particular ReaR version does not work for you, try a newer version. ------------------------------------------------------------------- In your case - because you already use the latest released ReaR version - you may try to test and/or use the newest ReaR upstream GitHub 'master' code. Regarding how to test and/or use the newest ReaR upstream GitHub 'master' code do the following: As prerequirement install the 'git-core' RPM package (at least on on openSUSE Leap that is the RPM package name on Tumbleweed the RPM package name might be different) so that you can use the 'git' command line tool. How to use the currently newest ReaR GitHub master code: Basically "git clone" it into a directory and then run rear from within that directory like: ----------------------------------------------------------------- # git clone https://github.com/rear/rear.git # cd rear # vi etc/rear/local.conf # usr/sbin/rear -d -D mkbackup ----------------------------------------------------------------- This way ReaR works "inside" that directory independent of an also installed 'rear' RPM package (note ReaR's messages e.g. what log file it uses and so on). In general regarding issues with Relax-and-Recover have a look in particular at the sections "Debugging issues with Relax-and-Recover" and "How to contribute to Relax-and-Recover" in https://en.opensuse.org/SDB:Disaster_Recovery -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[rear] /tmp directory |[rear] TMPDIR provided in |provided in /etc/rear/local |/etc/rear/local.conf is not |is not honored |honored -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012810 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/rear/rea | |r/issues/968 Component|Basesystem |Other Hardware|Other |All OS|Other |SUSE Other -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com