To get the extrausers in the log above, you need this "grep -q "^passwd.*extrausers" /etc/nsswitch.conf" to be true, so I'm wondering what else may be different in this image's nsswitch and also how we ended up with extrausers in nsswitch but no extrausers file on disk.
I suspect the solution will be to change our check to be a bit more specific in what we're looking for (which is effectively an Ubuntu Core system where /etc/passwd isn't writable and extrausers is the way to get extra users/groups).
To get the extrausers in the log above, you need this "grep -q "^passwd. *extrausers" /etc/nsswitch.conf" to be true, so I'm wondering what else may be different in this image's nsswitch and also how we ended up with extrausers in nsswitch but no extrausers file on disk.
I suspect the solution will be to change our check to be a bit more specific in what we're looking for (which is effectively an Ubuntu Core system where /etc/passwd isn't writable and extrausers is the way to get extra users/groups).