Remove kernel before repo syncing