Backup and Restore: restore-image failed to read platform.conf
During restore when /etc/platform/platform.conf file is generated, a space is inserted in the beginning of certain lines. Parsing the config file failed due to the extra space. Change-Id: Ib074d5eecfef8b8608ad6287c1d360a9a40b4b22 Closes-bug: 1808417 Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
This commit is contained in:
parent
b10b557afe
commit
13a3fe62a1
|
@ -347,7 +347,7 @@ def restore_configuration(archive, staging_dir):
|
||||||
# platform_conf manifest will add these back in.
|
# platform_conf manifest will add these back in.
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print(line, end=' ')
|
print(line, end='')
|
||||||
fileinput.close()
|
fileinput.close()
|
||||||
# Move updated platform.conf file into place.
|
# Move updated platform.conf file into place.
|
||||||
os.rename(temp_platform_conf_file, tsconfig.PLATFORM_CONF_FILE)
|
os.rename(temp_platform_conf_file, tsconfig.PLATFORM_CONF_FILE)
|
||||||
|
|
Loading…
Reference in New Issue