
If /etc/resolv.conf is empty the patch controller will raise an uncaught exception due to osprofiler attempting to validate dns. osprofiler is unused by patching, so the module is disabled by the patch controller. All sw-patch CLI commands will fail prior to setting up resolv.conf (bootstrapping) without this fix, since there is no working patch controller sysinv.common.utils also pulls in dns, so the two utility methods are cloned into patching repo. Test Plan: PASS Build/Install AIO-SX Debian PASS upload a patch Story: 2009969 Task: 45838 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I0975f5b54a17a0989a78f6ac39160af0b3e26013
20 lines
299 B
Python
Executable File
20 lines
299 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
"""
|
|
Copyright (c) 2014-2022 Wind River Systems, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""
|
|
|
|
import sys
|
|
|
|
# prevent patch_controller from importing osprofiler
|
|
sys.modules['osprofiler'] = None
|
|
|
|
from cgcs_patch.patch_controller import main
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|