This is a tough one.
In RHEL (5.2), /etc/rc.d/rc.sysinit contains:
Code:
if [ "$PROMPT" != "no" ]; then
echo -en $"\t\tPress 'I' to enter interactive startup."
echo
fi
# Set the system clock.
update_boot_stage RCclock
ARC=0
SRM=0
UTC=0
if [ -f /etc/sysconfig/clock ]; then
. /etc/sysconfig/clock
# convert old style clock config to new values
if [ "${CLOCKMODE}" = "GMT" ]; then
UTC=true
elif [ "${CLOCKMODE}" = "ARC" ]; then
ARC=true
fi
fi
CLOCKDEF=""
CLOCKFLAGS="$CLOCKFLAGS --hctosys"
case "$UTC" in
yes|true) CLOCKFLAGS="$CLOCKFLAGS --utc"
CLOCKDEF="$CLOCKDEF (utc)" ;;
no|false) CLOCKFLAGS="$CLOCKFLAGS --localtime"
CLOCKDEF="$CLOCKDEF (localtime)" ;;
esac
case "$ARC" in
yes|true) CLOCKFLAGS="$CLOCKFLAGS --arc"
CLOCKDEF="$CLOCKDEF (arc)" ;;
esac
case "$SRM" in
yes|true) CLOCKFLAGS="$CLOCKFLAGS --srm"
CLOCKDEF="$CLOCKDEF (srm)" ;;
esac
[ -x /sbin/hwclock ] && /sbin/hwclock $CLOCKFLAGS
There's nothing very substantial that would hang a system between
Code:
echo -en $"\t\tPress 'I' to enter interactive startup."
and
Code:
[ -x /sbin/hwclock ] && /sbin/hwclock $CLOCKFLAGS
The function 'update_boot_stage' doesn't do much:
Code:
if { "$GRAPHICAL" = "yes" -a /usr/bin/rhgb-client ]; then
/usr/bin/rhgb-client --update="$1"
fi
If you were having problems with hwclock before, causing it to hang,
I suspect you are still having hwclock problems.
This smells suspiciously like a hardware problem. Can you bring up the
system in its diagnostic mode and check the hardware clock? That might
be worth doing first.
If it's clean you might try booting off a rescue disk; chroot'ing to your
root filesystem; making /sbin/hwclock non-executable; and finally
rebooting to see if it then comes up. If it does, then you can try to debug
the hwclock issue.
good luck.