Tidy up some helper functions
Tidy up some helper functions

The switch_to_linux32 function adds no value, so inline this code, but
setting up the user information can be seen as a single operation, so
extract these calls into a helper function.

johnkeeping/chpersroot,johnkeeping/chpersroot