diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-02-27 14:28:55 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-15 14:54:21 +0800 |
commit | 1b0b59295d0500764c5096753f7cd11bf3ab5df4 (patch) | |
tree | ec9212781e9e7acf57b399ab7ed13d27244b0012 /ui/twin/main-generic.c | |
parent | 6b842bb2559116a949c6a569ac39f5c56ebc1be1 (diff) | |
download | talos-petitboot-1b0b59295d0500764c5096753f7cd11bf3ab5df4.tar.gz talos-petitboot-1b0b59295d0500764c5096753f7cd11bf3ab5df4.zip |
ui: callback & boot actions: kexec -> boot
find ui/ -type f |
xargs sed -i -e s/kexec_cb/boot_cb/g \
-e s/on_kexec/on_boot/g \
-e s/run_kexec/boot/g
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/twin/main-generic.c')
-rw-r--r-- | ui/twin/main-generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/twin/main-generic.c b/ui/twin/main-generic.c index 28a96e4..517422e 100644 --- a/ui/twin/main-generic.c +++ b/ui/twin/main-generic.c @@ -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->bd, 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) { |