File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ save_redis_info() {
326
326
save_proc () {
327
327
local procfiles=" $@ "
328
328
$MKDIR $V -p $TARDIR /proc \
329
- && $ CP $V -r $procfiles $TARDIR /proc \
329
+ && (for f in $procfiles ; do ( [ -e $f ] && $ CP $V -r $f $TARDIR /proc ) || echo " $f not found " > $TARDIR / $f ; done) \
330
330
&& $TAR $V -rhf $TARFILE -C $DUMPDIR --mode=+rw $BASE /proc \
331
331
&& $RM $V -rf $TARDIR /proc
332
332
}
@@ -615,7 +615,7 @@ save_crash_files() {
615
615
done
616
616
617
617
# archive kernel dump files
618
- for file in $( find_files " /var/crash/" ) ; do
618
+ [ -d /var/crash/ ] && for file in $( find_files " /var/crash/" ) ; do
619
619
# don't gzip already-gzipped dmesg files :)
620
620
if [ ! ${file} = " /var/crash/kexec_cmd" -a ! ${file} = " /var/crash/export" ]; then
621
621
if [[ ${file} == * " kdump." * ]]; then
You can’t perform that action at this time.
0 commit comments