Don't use debugging kernel when doing upgrade.

Ticket: #7042