]> git.ozlabs.org Git - petitboot/blobdiff - discover/platform.c
discover/platform-powerpc: read bootdev config from IPMI boot mailbox
[petitboot] / discover / platform.c
index 237da3a9f0ece3427071844d9e611226da364c9b..8ce52fc8c539f8d567581822bc487f1e266121ad 100644 (file)
@@ -213,6 +213,19 @@ int platform_get_sysinfo(struct system_info *info)
        return -1;
 }
 
+bool platform_restrict_clients(){
+       if (platform && platform->restrict_clients)
+               return platform->restrict_clients(platform);
+       return false;
+}
+
+int platform_set_password(const char *hash)
+{
+       if (platform && platform->set_password)
+               return platform->set_password(platform, hash);
+       return -1;
+}
+
 int config_set(struct config *newconfig)
 {
        int rc;
@@ -455,7 +468,7 @@ static int read_bootdev(void *ctx, char **pos, struct autoboot_option *opt)
        return rc;
 }
 
-static void config_populate_bootdev(struct config *config,
+void config_populate_bootdev(struct config *config,
        const struct param_list *pl)
 {
        struct autoboot_option *opt, *new = NULL;