Release Notes
222
+ local COUNTER="0"
+
+ for DRIVE in ${IDE_DRIVES[@]}
+ do
+ if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
+ if [ -f /proc/ide/$DRIVE/media ];then
+ MEDIA=$(cat /proc/ide/$DRIVE/media)
+ if [ x"$MEDIA" == x"cdrom" ]; then
+ KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE
$DRIVE=cdrom"
+ COUNTER=$(($1))
+ fi
+ fi
+ else
+ KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE
$DRIVE=noprobe"
+ fi
+ done
+ # We don't find cdrom drive.
+ if [ $COUNTER -eq 0 ]; then
+ KDUMP_IDE_NOPROBE_COMMANDLINE=""
+ fi
}
# Load the kdump kerel specified in /etc/sysconfig/kdump
@@ -226,6 +269,8 @@
KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\
+[MmKkGg]@[0-9]\+[MmGgKk]//'`
KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
+ avoid_cdrom_drive
+ KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"
KEXEC_OUTPUT=`$KEXEC $KEXEC_ARGS $standard_kexec_args \
--command-line="$KDUMP_COMMANDLINE" \
@@ -364,13 +409,7 @@
function do_final_action()
{
- FINAL_ACTION=`grep default $KDUMP_CONFIG_FILE | grep -vm1 ^\# \
- | cut -d\ -f2`
- if [[ $FINAL_ACTION != "halt" ]]; then
- FINAL_ACTION="reboot"
- fi
-
- $FINAL_ACTION
+ reboot
}
case "$1" in
initscripts-8.45.19.EL-1.i386.rpm: /etc/rc.d/init.d/network
Summary of Contents for ENTERPRISE LINUX 5.3 - RELEASE MANIFEST
Page 240: ...240 ...