Lines Matching +full:activate +full:- +full:to +full:- +full:activate

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
67 "Usage:\tbectl {-h | subcommand [args...]}\n" in usage()
69 "\tbectl [-r beroot] add (path)*\n" in usage()
71 "\tbectl [-r beroot] activate [-t] beName\n" in usage()
72 "\tbectl [-r beroot] activate [-T]\n" in usage()
73 "\tbectl [-r beroot] check\n" in usage()
74 "\tbectl [-r beroot] create [-r] [-e {nonActiveBe | beName@snapshot}] beName\n" in usage()
75 "\tbectl [-r beroot] create [-r] beName@snapshot\n" in usage()
76 "\tbectl [-r beroot] destroy [-Fo] {beName | beName@snapshot}\n" in usage()
77 "\tbectl [-r beroot] export sourceBe\n" in usage()
78 "\tbectl [-r beroot] import targetBe\n" in usage()
79 "\tbectl [-r beroot] jail [-bU] [{-o key=value | -u key}]... beName\n" in usage()
81 "\tbectl [-r beroot] list [-aDHs] [{-c property | -C property}]\n" in usage()
82 "\tbectl [-r beroot] mount beName [mountpoint]\n" in usage()
83 "\tbectl [-r beroot] rename origBeName newBeName\n" in usage()
84 "\tbectl [-r beroot] {ujail | unjail} {jailID | jailName | beName}\n" in usage()
85 "\tbectl [-r beroot] {umount | unmount} [-f] beName\n"); in usage()
104 { "activate", bectl_cmd_activate,false },
144 while ((opt = getopt(argc, argv, "tT")) != -1) { in bectl_cmd_activate()
157 fprintf(stderr, "bectl activate: unknown option '-%c'\n", in bectl_cmd_activate()
163 argc -= optind; in bectl_cmd_activate()
167 fprintf(stderr, "bectl activate: wrong number of arguments\n"); in bectl_cmd_activate()
175 printf("Failed to remove temporary activation\n"); in bectl_cmd_activate()
179 /* activate logic goes here */ in bectl_cmd_activate()
182 printf("Did not successfully activate boot environment %s\n", in bectl_cmd_activate()
208 while ((opt = getopt(argc, argv, "e:r")) != -1) { in bectl_cmd_create()
217 fprintf(stderr, "bectl create: unknown option '-%c'\n", in bectl_cmd_create()
223 argc -= optind; in bectl_cmd_create()
237 * environment is to be created here. in bectl_cmd_create()
256 recursive == true ? -1 : 0); in bectl_cmd_create()
269 "Failed to create a snapshot '%s' of '%s'\n", in bectl_cmd_create()
273 "Failed to create bootenv %s\n", bootenv); in bectl_cmd_create()
276 "Failed to create bootenv %s from snapshot %s\n", in bectl_cmd_create()
369 while ((opt = getopt(argc, argv, "Fo")) != -1) { in bectl_cmd_destroy()
378 fprintf(stderr, "bectl destroy: unknown option '-%c'\n", in bectl_cmd_destroy()
384 argc -= optind; in bectl_cmd_destroy()
394 /* We'll emit a notice if there's an origin to be cleaned up */ in bectl_cmd_destroy()
448 (argc == 3) ? "Failed to mount bootenv %s at %s\n" : in bectl_cmd_mount()
449 "Failed to mount bootenv %s at temporary path %s\n", in bectl_cmd_mount()
481 fprintf(stderr, "Failed to rename bootenv %s to %s\n", in bectl_cmd_rename()
498 while ((opt = getopt(argc, argv, "f")) != -1) { in bectl_cmd_unmount()
504 fprintf(stderr, "bectl %s: unknown option '-%c'\n", in bectl_cmd_unmount()
510 argc -= optind; in bectl_cmd_unmount()
526 fprintf(stderr, "Failed to unmount bootenv %s\n", bootenv); in bectl_cmd_unmount()
553 while ((opt = getopt(argc, argv, "hr:")) != -1) { in main()
565 argc -= optind; in main()
581 if (!cmd->silent) in main()
584 return (-1); in main()
587 libbe_print_on_error(be, !cmd->silent); in main()
589 rc = cmd->fn(argc, argv); in main()