diff options
author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-08-24 01:56:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:08:06 +0100 |
commit | fe796c2a17138a41eff6a0705557f36ed5d0ed36 (patch) | |
tree | 86df47611f74fe58a493492f5cc2a630417ef4f8 /meta/lib/rootfspostcommands.py | |
parent | 29bb84b82be41409f696e22dcb8a7aa4dcadf2fa (diff) | |
download | poky-fe796c2a17138a41eff6a0705557f36ed5d0ed36.tar.gz |
rootfspostcommands.py: Cleanup subid backup files generated by shadow-utils
When creating users, shadow-utils might create backup files for
subordinate ID files (subid, subgid). Make sure we clean them up
similarly to the other backup files shadow-utils creates.
(From OE-Core rev: 4e4ea5adea8a00b4a78ffbe7cc60931deb74c161)
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/rootfspostcommands.py')
-rw-r--r-- | meta/lib/rootfspostcommands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/rootfspostcommands.py b/meta/lib/rootfspostcommands.py index e344ae2efc..5386eea409 100644 --- a/meta/lib/rootfspostcommands.py +++ b/meta/lib/rootfspostcommands.py | |||
@@ -73,6 +73,8 @@ def remove_shadowutils_backup_files(sysconfdir): | |||
73 | 'gshadow', | 73 | 'gshadow', |
74 | 'passwd', | 74 | 'passwd', |
75 | 'shadow', | 75 | 'shadow', |
76 | 'subgid', | ||
77 | 'subuid', | ||
76 | ): | 78 | ): |
77 | filepath = os.path.join(sysconfdir, filename) | 79 | filepath = os.path.join(sysconfdir, filename) |
78 | remove_shadowutils_backup_file(filepath) | 80 | remove_shadowutils_backup_file(filepath) |