discover: Make boot_priorities more flexible
[petitboot] / discover / platform.c
index d52c9f65eecd48617b24f911a803f9498cde4ab4..db0ea61dd025c7fd6dabb93c51e12a9d434115cb 100644 (file)
@@ -67,8 +67,9 @@ void config_set_defaults(struct config *config)
        config->boot_priorities = talloc_array(config, struct boot_priority,
                                                config->n_boot_priorities);
        config->boot_priorities[0].type = DEVICE_TYPE_NETWORK;
+       config->boot_priorities[0].priority = 2;
        config->boot_priorities[1].type = DEVICE_TYPE_DISK;
-
+       config->boot_priorities[1].priority = 1;
 }
 
 int platform_init(void *ctx)