[PATCH] adjust the installkernel function to make it return correct value