aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-06-06 20:06:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-06-06 20:06:02 +0000
commitef449b9250baa0f186165cc76dc37c5738609696 (patch)
treeafea5290a4d0d6d86c9a552e7e11f6470c26b0d4
parent47acd31f571ae1eef530ad1b04894432ba7ca7d5 (diff)
parent47ca9f801f8c34abde9f434a9d66f1268ffdf79f (diff)
downloadbuild-ef449b9250baa0f186165cc76dc37c5738609696.tar.gz
Merge "Remove comment line in generated passwd file" into pi-dev
-rwxr-xr-xtools/fs_config/fs_config_generator.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/fs_config/fs_config_generator.py b/tools/fs_config/fs_config_generator.py
index ed63c0e112..4839578dd3 100755
--- a/tools/fs_config/fs_config_generator.py
+++ b/tools/fs_config/fs_config_generator.py
@@ -1216,10 +1216,6 @@ class OEMAidGen(BaseGenerator):
class PasswdGen(BaseGenerator):
"""Generates the /etc/passwd file per man (5) passwd."""
- _GENERATED = ('#\n# THIS IS AN AUTOGENERATED FILE! DO NOT MODIFY!\n#')
-
- _FILE_COMMENT = '# Defined in file: \"%s\"'
-
def __init__(self):
self._old_file = None
@@ -1254,8 +1250,6 @@ class PasswdGen(BaseGenerator):
if len(aids) == 0:
return
- print PasswdGen._GENERATED
-
for aid in aids:
if required_prefix is None or aid.friendly.startswith(required_prefix):
self._print_formatted_line(aid)
@@ -1280,7 +1274,6 @@ class PasswdGen(BaseGenerator):
"""
if self._old_file != aid.found:
self._old_file = aid.found
- print PasswdGen._FILE_COMMENT % aid.found
try:
logon, uid = Utils.get_login_and_uid_cleansed(aid)
@@ -1306,7 +1299,6 @@ class GroupGen(PasswdGen):
"""
if self._old_file != aid.found:
self._old_file = aid.found
- print PasswdGen._FILE_COMMENT % aid.found
try:
logon, uid = Utils.get_login_and_uid_cleansed(aid)