]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/main-generic.c
ui: callback & boot actions: kexec -> boot
[petitboot] / ui / twin / main-generic.c
index 8ed46b72c41d113a120de88847e770321606cc95..517422e4da9285ded2c1dfb8ec5d1d593bfd149a 100644 (file)
@@ -199,7 +199,7 @@ fail_menu:
        return NULL;
 }
 
-static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
+static int boot_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
 {
        int result;
 
@@ -207,7 +207,7 @@ static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
 
        pb_log("%s: %s\n", __func__, opt_data->name);
 
-       result = pb_run_kexec(opt_data->kd, client->dry_run);
+       result = pb_boot(opt_data->bd, client->dry_run);
 
        return result;
 }
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
                return EXIT_FAILURE;
        }
 
-       client = pbt_client_init(opts.backend, 1024, 640, kexec_cb,
+       client = pbt_client_init(opts.backend, 1024, 640, boot_cb,
                opts.start_daemon, opts.dry_run);
 
        if (!client) {