diff --git a/image_creator/os_type/linux.py b/image_creator/os_type/linux.py index f3205196b708616643255051aa0cb36950e790ea..53e8a5a8ba79416f97ae693cae1dc23f613dc6a6 100644 --- a/image_creator/os_type/linux.py +++ b/image_creator/os_type/linux.py @@ -116,6 +116,9 @@ class Linux(Unix): self.image.g.write('/etc/shadow', "\n".join(shadow) + '\n') + # Remove backup file for /etc/shadow + self.image.g.rm_rf('/etc/shadow-') + @sysprep('Fixing acpid powerdown action') def fix_acpid(self): """Replace acpid powerdown action scripts to immediately shutdown the