Check the exit status of nfs mount

This commit is contained in:
Cong Wang 2012-01-25 18:42:03 +08:00
parent f51fd99344
commit 782c719a4e
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ dump_nfs()
{
mount -o remount,rw $NEWROOT/ || return 1
[ -d $NEWROOT/mnt ] || mkdir -p $NEWROOT/mnt
mount -o nolock -o tcp -t nfs $1 $NEWROOT/mnt/
mount -o nolock -o tcp -t nfs $1 $NEWROOT/mnt/ || return 1
mkdir -p $NEWROOT/mnt/$KDUMP_PATH/$DATEDIR || return 1
$CORE_COLLECTOR /proc/vmcore $NEWROOT/mnt/$KDUMP_PATH/$DATEDIR/vmcore || return 1
umount $NEWROOT/mnt/ || return 1

View File

@ -4,4 +4,4 @@ e3a813bd6d7dace903a05c1296e20d57 makedumpfile-1.3.5.tar.gz
8e359dd03731b93a2082bd37cc2a4a4c kexec-tools-2.0.2.tar.bz2
b3ced2097ce3981abba38ceedc84f939 kexec-tools-2.0.3.tar.bz2
967f89bb947ca4db78f51beeaaee0bd8 makedumpfile-1.4.1.tar.gz
8a2cf4b39fb44c6cf1bba9b532c4bd14 dracut-files.tbz2
cca779064913dc899ce027872d0ba498 dracut-files.tbz2