gbmc-release-23.18.x: Add hacks for NERF to go to UEFIboot
NERF and Nanny is not quite ready for us to put NERF into steady state.
Add a temporary workaround until the bundle is ready (~1 week). This
commit then can be reverted
Tested:
root@jicuh16-nfd01:~# touch /run/bm-ready.flag
root@jicuh16-nfd01:~# ls /run
agetty.reload credentials media sepermit
authorized_keys cryptsetup mount systemd
avahi-daemon dbus msvfud udev
bm-ready.flag initramfs network user
bmcweb ipmi nftables
cpld0.version lock phosphor-ipmi-flash
cpld1.version log rsyslog
root@jicuh16-nfd01:~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10
79 2b 00 10 01
root@jicuh16-nfd01:~# wget -qO- localhost/redfish/v1/Systems/system/
{
"@odata.id": "/redfish/v1/Systems/system",
"@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem",
...
...
"Model": "Izumi",
"Name": "system",
"Oem": {
"Google": {
"@odata.id": "redfish/v1/Systems/system#/Oem/Google",
"@odata.type": "#GoogleBareMetalCapabilities.v1_0_0.NERFMode",
"BareMetalStatus": {
"BareMetal": "BareMetalReady"
},
"NERFStatus": {
"NERF": "UEFIboot"
}
}
},
"PCIeDevices": [
{
...
...
}
root@jicuh16-nfd01:~# journalctl -b | grep "BM mode"
...
...
Aug 04 19:08:29 jicuh16-nfd01.prod.google.com ipmid[812]: /run/bm-ready.flag exists and no done/ack flag, we must be in BM mode (WORKAROUD)
root@jicuh16-nfd01:~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10
79 2b 00 10 01
root@jicuh16-nfd01:~# journalctl -b | grep "BM mode"
...
..
Aug 04 19:08:29 jicuh16-nfd01.prod.google.com ipmid[812]: /run/bm-ready.flag exists and no done/ack flag, we must be in BM mode (WORKAROUD)
Aug 04 19:10:13 jicuh16-nfd01.prod.google.com ipmid[812]: /run/bm-drive-cleaning-done-ack.flag exists so we acked cleaning done and must be in BM mode
Google-Bug-Id: 290979503
Change-Id: I21ddef7c4836dae1b87809f831966186324bfc8b
Signed-off-by: Brandon Kim <brandonkim@google.com>
2 files changed