fs/common: allow custom user table to override package-defined users
authorMatt Weber <matthew.weber@rockwellcollins.com>
Tue, 2 Oct 2018 23:02:20 +0000 (18:02 -0500)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 20 Oct 2018 13:33:24 +0000 (14:33 +0100)
commitc3edec0018c22814233838b4e6c11c577993923d
treeba714f1fa000ddb3da1230c0151372b4c4f6a3f7
parentd6f2fb191828b49814b78605ee193a21750380eb
fs/common: allow custom user table to override package-defined users

Currently, when a custom user table and a package define the same user,
the settings from the package takes precedence over the ones from the
custom user table.

However, it makes sense to allow the settings from the custom user table
take precedence. For example, it would allow redirecting the user's
home directory to an alternate location (e.g. away from tmp and into a
partition that is persistent).

The support/scripts/mkusers script will only retain settings from the
latest definition it finds.

Thus, by passing the custom user table after the package defined users,
it is possible to override the package provided user definitions.

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
fs/common.mk