From c6df1463a65d3dd4ab91b75cf4f305e62538b780 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 25 Jul 2014 00:36:06 +0100 Subject: [PATCH] spin-from-raw: Ignore dump files on CentOS 7 Signed-off-by: Ikey Doherty --- scripts/spin-from-raw.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/spin-from-raw.sh b/scripts/spin-from-raw.sh index 824da05..3832a64 100755 --- a/scripts/spin-from-raw.sh +++ b/scripts/spin-from-raw.sh @@ -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