spin-from-raw: Ignore dump files on CentOS 7

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
Ikey Doherty
2014-07-25 00:36:06 +01:00
parent 6a0d5a8305
commit c6df1463a6
+2 -2
View File
@@ -60,7 +60,7 @@ for device in $DEVS ; do
if [[ ! -d $BFILES ]]; then
mkdir $BFILES
fi
cp -v `ls $TMPMOUNT/boot/initr* | grep -v rescue | grep -v plymouth` $BFILES/initrd
cp -v `ls $TMPMOUNT/boot/initr* | grep -v rescue | grep -v plymouth | grep -v dump` $BFILES/initrd
cp -v `ls $TMPMOUNT/boot/vmlinu* | grep -v rescue` $BFILES/vmlinuz
elif [[ -n "$(shopt -s nullglob; echo $TMPMOUNT/vmlinuz*)" ]]; then
# Same thing as above, but this is a boot partition
@@ -69,7 +69,7 @@ for device in $DEVS ; do
if [[ ! -d $BFILES ]]; then
mkdir $BFILES
fi
cp -v `ls $TMPMOUNT/initr* | grep -v rescue | grep -v plymouth` $BFILES/initrd
cp -v `ls $TMPMOUNT/initr* | grep -v rescue | grep -v plymouth | grep -v dump` $BFILES/initrd
cp -v `ls $TMPMOUNT/vmlinu* | grep -v rescue` $BFILES/vmlinuz
fi