Let me follow up here a bit further with an example of koan --kexec
usage in context:
set -e
mkdir -p /var/spool/koan
koan \
--replace-self \
--kexec \
--system="${SERVICE_TAG}" \
--server="${PROVISIONING_SERVER}" \
--kopts="${BOOT_ARG}"
echo "Unloading modules..."
ifconfig "${BOOT_IF}" down
while : ; do
MODULES="$(lsmod | gawk '{if ($3 == 0) { print $1 }}')"
if [[ -z "$MODULES" ]] ; then break ; fi
rmmod $MODULES
done
echo "Remaining modules:"
lsmod | sed -re 's/^/ /'
if grep -q -e 'DEBUG=1' /proc/cmdline ; then
echo "Press enter to continue..."
read START_NOW
if [[ "$?" -ne 0 ]] ; then
echo "Unable to read from stdin; sleeping 2
minutes before continuing..."
sleep 120
fi
fi
echo "Starting new kernel..."
if ! grep -q -e debug /proc/cmdline ; then
kexec -e
fi
--
Charles Duffy
Systems Engineering
[EMAIL PROTECTED]
http://www.messageone.com
Dell MessageOne
11044 Research Blvd
Building C, Fifth Floor
Austin, TX 78759
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler