installonlies: fix sorting packages depending on the running kernel.