From 4e4ea5adea8a00b4a78ffbe7cc60931deb74c161 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 24 Aug 2022 01:56:21 +0200 Subject: [PATCH] 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. Signed-off-by: Andrei Gherzan Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- meta/lib/rootfspostcommands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/rootfspostcommands.py b/meta/lib/rootfspostcommands.py index e344ae2efc2..5386eea409e 100644 --- a/meta/lib/rootfspostcommands.py +++ b/meta/lib/rootfspostcommands.py @@ -73,6 +73,8 @@ def remove_shadowutils_backup_files(sysconfdir): 'gshadow', 'passwd', 'shadow', + 'subgid', + 'subuid', ): filepath = os.path.join(sysconfdir, filename) remove_shadowutils_backup_file(filepath) -- 2.47.3