1a1dfbd2 | 17-Jan-2023 |
Arun Lal K M <arun.lal@intel.com> |
Make BiosConfig run as one service.
As of now BiosConfig runs in two service as seen below. 1) xyz.openbmc_project.biosconfig_manager.service busctl tree xyz.openbmc_project.BIOSConfigManager `-/xyz
Make BiosConfig run as one service.
As of now BiosConfig runs in two service as seen below. 1) xyz.openbmc_project.biosconfig_manager.service busctl tree xyz.openbmc_project.BIOSConfigManager `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/bios_config `-/xyz/openbmc_project/bios_config/manager
2) xyz.openbmc_project.biosconfig_password.service busctl tree xyz.openbmc_project.BIOSConfigPassword `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/bios_config `-/xyz/openbmc_project/bios_config/password
The code changes are to move functionalities of xyz.openbmc_project.biosconfig_password.service to xyz.openbmc_project.biosconfig_manager.service as shown below
busctl tree xyz.openbmc_project.BIOSConfigManager `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/bios_config |-/xyz/openbmc_project/bios_config/manager `-/xyz/openbmc_project/bios_config/password
Tested: Made sure BiosConfig functionality is not affected. Note that calls from bmcweb will now require to use service as xyz.openbmc_project.biosconfig_manager.service
Change-Id: I8adeb57ed3758041b2b9b0d1ddc714e418c4484e Signed-off-by: Arun Lal K M <arun.lal@intel.com>
show more ...
|
c0f926d6 | 12-Jan-2021 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Remove executable permissions to the service file
- While creating a bibake recipe for bios settings manager,in the testing, it is found that the service file in the repo,was checked in with exe
Remove executable permissions to the service file
- While creating a bibake recipe for bios settings manager,in the testing, it is found that the service file in the repo,was checked in with executable permissions beacuse of which systemd throws the following error while starting the service.
[ systemd[1]: Configuration file /lib/systemd/system/xyz.openbmc_project.biosconfig_manager.service is marked executable. Please remove executable permission bits. Proceeding anyway. ]
- This commit would just remove the executable permissions of the bios-settings-mgr service file.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I81250cf96708d83d68a2acfd10e6d59e44daa79b
show more ...
|
8f706213 | 16-Dec-2020 |
Kuiying Wang <kuiying.wang@intel.com> |
oob bios config password and bios reset
Tested: 1. Bios reset flag can be modified throw redfish POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios { "ResetFlag": "Factor
oob bios config password and bios reset
Tested: 1. Bios reset flag can be modified throw redfish POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios { "ResetFlag": "Factory" } root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.BIOSConfig.Manager ResetBIOSSettings v s "xyz.openbmc_project.BIOSConfig.Manager.ResetFlag.FactoryDefaults"
2. Bios change password: root@intel-obmc:~# cat /var/lib/bios-settings-manager/seedData { "UserPwdHash": "08D91157785366CDC3AA64D87E5E3C621EDAB13E26B6E484397EBA5E459E54C567BF5B1FFB36A43B6142B18F8D642E9D", "AdminPwdHash": "08D91157785366CDC3AA64D87E5E3C621EDAB13E26B6E484397EBA5E459E54C567BF5B1FFB36A43B6142B18F8D642E9D", "Seed": "123456", "HashAlgo": "SHA384" } POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ChangePassword { "NewPassword": "12345678", "OldPassword": "1234567890", "PasswordName": "Administrator" } root@intel-obmc:~# cat /var/lib/bios-settings-manager/passwordData { "CurrentPassword": "1234567890", "IsAdminPwdChanged": 1, "IsUserPwdChanged": 0, "NewPassword": "2DD65D57EB60B1D92C5F3D2DC84724FCEE7BC02E57AA75E834712266ED94CAC704047B2FF7CEC1C36BED280B36BB5AC6", "UserName": "Administrator" }
Change-Id: Ib54b36819e49c891c6169c95d9cdaebd5bcb06f3 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
show more ...
|
642f437e | 12-Aug-2020 |
Kuiying Wang <kuiying.wang@intel.com> |
Initial patch for RBC BIOS Config Manager
ResetBIOSSettings is not implemented as part of this patch apart from that GetAttribute, SetAttribute and setters for BaseBIOSTable, PendingAttributes is im
Initial patch for RBC BIOS Config Manager
ResetBIOSSettings is not implemented as part of this patch apart from that GetAttribute, SetAttribute and setters for BaseBIOSTable, PendingAttributes is implemeted.
Interface: xyz.openbmc_project.BIOSConfig.Manager Properties: .BaseBIOSTable property a{s(sbsssvva(sv))} 1 "testAttributeName" "xyz.openbmc_pr... emits-change writable .PendingAttributes property a{s(sv)} 2 "test1" "xyz.openbmc_project.BIOSCo... emits-change writable .ResetBIOSSettings property s "xyz.openbmc_project.BIOSConfig.Manag... emits-change writable Methods: .GetAttribute method s svv - .SetAttribute method sv - -
Tested: 1. Service is working well. 2. All the dbus methods and properties are shown correctly. 3. Unit test done. a). Tree root@intel-obmc:~# busctl tree xyz.openbmc_project.BIOSConfigManager `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/bios_config `-/xyz/openbmc_project/bios_config/manager b). Instrospect root@intel-obmc:~# busctl introspect xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.BIOSConfig.Manager interface - - - .GetAttribute method s svv - .SetAttribute method sv - - .BaseBIOSTable property a{s(sbsssvva(sv))} 2 "attr0" "xyz.openbmc_project.BIOSCo... emits-change writable .PendingAttributes property a{s(sv)} 1 "test1" "xyz.openbmc_project.BIOSCo... emits-change writable .ResetBIOSSettings property s "xyz.openbmc_project.BIOSConfig.Manag... emits-change writable c). Method: GetAttribute/SetAttribute root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager SetAttribute sv test1 s "value" root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager GetAttribute s test1 svv "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" x 0 s "value" d). Service root@intel-obmc:~# systemctl status xyz.openbmc_project.biosconfig_manager * xyz.openbmc_project.biosconfig_manager.service - BIOS Config Manager - For Remote BIOS configuration update Loaded: loaded (8;;file://intel-obmc/lib/systemd/system/xyz.openbmc_project.biosconfig_manager.service/lib/systemd/system/xyz.openbmc_project.biosconfig_manager.service8;;; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/xyz.openbmc_project.biosconfig_manager.service.d `-8;;file://intel-obmc/etc/systemd/system/xyz.openbmc_project.biosconfig_manager.service.d/watchdog.confwatchdog.conf8;; Active: active (running) since Thu 1970-01-01 00:00:56 UTC; 25min ago Main PID: 394 (biosconfig-mana) CGroup: /system.slice/xyz.openbmc_project.biosconfig_manager.service `-394 /usr/bin/biosconfig-manager
Jan 01 00:00:56 intel-obmc systemd[1]: Started BIOS Config Manager - For Remote BIOS configuration update.
Change-Id: I7a7312ffbdf000aab254c77ed5e4f9a8d4ec4d45 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
show more ...
|