X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fkboot-parser.c;h=4c68cd4dc812c784ab0ea671b813a6392e6bfa42;hp=e4b36b624a3b5bf376542a3525eb907bb844ee02;hb=93065a40773611096f2b1e095563ae21c5056c93;hpb=3917e88b838001b13a19fc6ea01d08b08c0770ca;ds=inline diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index e4b36b6..4c68cd4 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -126,6 +126,10 @@ out_add: " dtb=%s", dtb); } + if (conf_get_global_option(conf, "default")) + opt->is_default = streq(opt->name, + conf_get_global_option(conf, "default")); + conf_strip_str(opt->boot_args); conf_strip_str(opt->description); @@ -137,6 +141,7 @@ static struct conf_global_option kboot_global_options[] = { { .name = "initrd" }, { .name = "root" }, { .name = "video" }, + { .name = "default" }, { .name = NULL } }; @@ -157,7 +162,6 @@ static const char *const kboot_conf_files[] = { }; static const char *const kboot_ignored_names[] = { - "default", "delay", "message", "timeout",