kdm is not meant to be restarted, only warned about; moving the restart code to the preinst is causing kdm restarts that will break the desktop in the middle of the upgrade. Zero out our list of services between the two uses of the variable. LP: #985735.