summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/platform-powerpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 6ed6522..24cc521 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -572,6 +572,7 @@ enum ipmi_bootdev {
IPMI_BOOTDEV_NONE = 0x00,
IPMI_BOOTDEV_NETWORK = 0x01,
IPMI_BOOTDEV_DISK = 0x2,
+ IPMI_BOOTDEV_SAFE = 0x3,
IPMI_BOOTDEV_CDROM = 0x5,
IPMI_BOOTDEV_SETUP = 0x6,
};
@@ -612,6 +613,7 @@ static int read_bootdev_sysparam(const char *name, uint8_t *val)
case IPMI_BOOTDEV_NONE:
case IPMI_BOOTDEV_NETWORK:
case IPMI_BOOTDEV_DISK:
+ case IPMI_BOOTDEV_SAFE:
case IPMI_BOOTDEV_CDROM:
case IPMI_BOOTDEV_SETUP:
*val = buf[0];
@@ -698,6 +700,10 @@ static void parse_opal_sysparams(struct config *config)
case IPMI_BOOTDEV_SETUP:
config->autoboot_enabled = false;
break;
+ case IPMI_BOOTDEV_SAFE:
+ config->autoboot_enabled = false;
+ config->safe_mode = true;
+ break;
}
}
OpenPOWER on IntegriCloud