]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/main-generic.c
Increase X screen size
[petitboot] / ui / twin / main-generic.c
index 7cf510a44c2ebefebf485e3a6fb5f9f25bd5f158..91a525b9f82cf9106b5f04b3b9f315d5f4e63ccd 100644 (file)
@@ -199,7 +199,7 @@ fail_menu:
        return NULL;
 }
 
        return NULL;
 }
 
-static int kexec_cb(__attribute__((unused)) struct pbt_client *client, struct pb_opt_data *opt_data)
+static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
 {
        int result;
 
 {
        int result;
 
@@ -207,7 +207,7 @@ static int kexec_cb(__attribute__((unused)) struct pbt_client *client, struct pb
 
        pb_log("%s: %s\n", __func__, opt_data->name);
 
 
        pb_log("%s: %s\n", __func__, opt_data->name);
 
-       result = pb_run_kexec(opt_data->kd);
+       result = pb_run_kexec(opt_data->kd, client->dry_run);
 
        return result;
 }
 
        return result;
 }
@@ -330,8 +330,8 @@ int main(int argc, char *argv[])
                return EXIT_FAILURE;
        }
 
                return EXIT_FAILURE;
        }
 
-       client = pbt_client_init(opts.backend, 900, 300, kexec_cb,
-               opts.start_daemon);
+       client = pbt_client_init(opts.backend, 1024, 640, kexec_cb,
+               opts.start_daemon, opts.dry_run);
 
        if (!client) {
                ui_result = EXIT_FAILURE;
 
        if (!client) {
                ui_result = EXIT_FAILURE;