updating mkdumprd
This commit is contained in:
parent
91d1880e3e
commit
ae7dce0148
@ -1,6 +1,6 @@
|
|||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 1.101
|
Version: 1.101
|
||||||
Release: 50%{?dist}
|
Release: 51%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: The kexec/kdump userspace component.
|
Summary: The kexec/kdump userspace component.
|
||||||
@ -159,6 +159,10 @@ exit 0
|
|||||||
%doc TODO
|
%doc TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 31 2006 Neil Horman <nhorman@redhat.com> - 1.101-51%{dist}
|
||||||
|
- update mkdumprd to properly do scp and nfs based dumps
|
||||||
|
- update docs in kdump.conf to reflect new ifc parameter
|
||||||
|
|
||||||
* Mon Aug 28 2006 Neil Horman <nhorman@redhat.com> - 1.101-50%{dist}
|
* Mon Aug 28 2006 Neil Horman <nhorman@redhat.com> - 1.101-50%{dist}
|
||||||
- updating to build without need for asm/page.h on x86_64
|
- updating to build without need for asm/page.h on x86_64
|
||||||
|
|
||||||
|
13
mkdumprd
13
mkdumprd
@ -1076,6 +1076,10 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
|
|||||||
#ssh, scp require libraries that aren't found with ldd
|
#ssh, scp require libraries that aren't found with ldd
|
||||||
lib=/lib && [ -d "/lib64" ] && lib=/lib64
|
lib=/lib && [ -d "/lib64" ] && lib=/lib64
|
||||||
k_extras="/$lib/libnss_compat.so.2 /$lib/libnss_files.so.2"
|
k_extras="/$lib/libnss_compat.so.2 /$lib/libnss_files.so.2"
|
||||||
|
bin="$bin /usr/bin/scp /usr/bin/ssh /bin/dd /bin/cp"
|
||||||
|
|
||||||
|
#build an /etc/passwd for scp to work properly
|
||||||
|
grep "^root" /etc/passwd > $MNTIMAGE/etc/passwd
|
||||||
|
|
||||||
# bring up the network
|
# bring up the network
|
||||||
emit "echo Bring up network"
|
emit "echo Bring up network"
|
||||||
@ -1113,7 +1117,8 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
|
|||||||
#setup nfs case
|
#setup nfs case
|
||||||
mkdir -p $MNTIMAGE/mnt
|
mkdir -p $MNTIMAGE/mnt
|
||||||
emit "mount -t nfs -o nolock $rlocation /mnt"
|
emit "mount -t nfs -o nolock $rlocation /mnt"
|
||||||
emit "cond kcp --local /proc/vmcore /mnt/var/crash/$lhost-%DATE/vmcore"
|
emit "dd if=/dev/mem of=/dev/urandom count=1 bs=512 skip=100"
|
||||||
|
emit "cond kcp --local /proc/vmcore /mnt/var/crash/$lhost-%DATE"
|
||||||
emit "cond reboot -h -f"
|
emit "cond reboot -h -f"
|
||||||
else
|
else
|
||||||
#SSH path
|
#SSH path
|
||||||
@ -1135,7 +1140,6 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
|
|||||||
#setup ssh case, quick check to see if setup already
|
#setup ssh case, quick check to see if setup already
|
||||||
if [ ! -r $MNTIMAGE/dev/urandom ]; then
|
if [ ! -r $MNTIMAGE/dev/urandom ]; then
|
||||||
#only need to do these once
|
#only need to do these once
|
||||||
grep "^root" /etc/passwd > $MNTIMAGE/etc/passwd
|
|
||||||
mkdir -p $MNTIMAGE/root
|
mkdir -p $MNTIMAGE/root
|
||||||
cp -a /root/.ssh $MNTIMAGE/root/
|
cp -a /root/.ssh $MNTIMAGE/root/
|
||||||
cp -a /etc/ssh $MNTIMAGE/etc
|
cp -a /etc/ssh $MNTIMAGE/etc
|
||||||
@ -1143,9 +1147,8 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
|
|||||||
emit "mknod /dev/urandom c 1 9"
|
emit "mknod /dev/urandom c 1 9"
|
||||||
fi
|
fi
|
||||||
emit "dd if=/dev/mem of=/dev/urandom count=1 bs=512 skip=100"
|
emit "dd if=/dev/mem of=/dev/urandom count=1 bs=512 skip=100"
|
||||||
emit "cond kcp --ssh /proc/vmcore $rlocation:/var/crash/$lhost-%DATE/vmcore"
|
emit "cond kcp --ssh /proc/vmcore $rlocation:/var/crash/$lhost-%DATE"
|
||||||
emit "cond reboot -h -f"
|
emit "cond reboot -h -f"
|
||||||
bin="$bin /usr/bin/scp /usr/bin/ssh /bin/dd"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
ifc)
|
ifc)
|
||||||
@ -1174,7 +1177,7 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then
|
|||||||
emit "echo Saving to the local filesystem $location"
|
emit "echo Saving to the local filesystem $location"
|
||||||
emit "fsck.$type $location"
|
emit "fsck.$type $location"
|
||||||
emit "cond mount -t $type $location /mnt"
|
emit "cond mount -t $type $location /mnt"
|
||||||
emit "cond kcp --local /proc/vmcore /mnt/var/crash/$lhost-%DATE/vmcore"
|
emit "cond kcp --local /proc/vmcore /mnt/var/crash/$lhost-%DATE"
|
||||||
emit "cond umount /mnt"
|
emit "cond umount /mnt"
|
||||||
emit "cond reboot -h -f"
|
emit "cond reboot -h -f"
|
||||||
bin="$bin /sbin/fsck.$type /bin/mount"
|
bin="$bin /sbin/fsck.$type /bin/mount"
|
||||||
|
Loading…
Reference in New Issue
Block a user