A lot of diesels can run off of any vaguely fuel-like liquid you decide to put in them, so I'm sure sufficiently knowledgable people would keep those running, machining parts for them etc.
But electric vehicles are by far simpler than both of those, and generating electricity is easier than producing fuel you can shove in a diesel engine.