Lines Matching +full:activate +full:- +full:to +full:- +full:activate
4 * SPDX-License-Identifier: BSD-2-Clause
46 "Usage:\tbectl {-h | subcommand [args...]}\n" in usage()
48 "\tbectl [-r beroot] add (path)*\n" in usage()
50 "\tbectl [-r beroot] activate [-t] beName\n" in usage()
51 "\tbectl [-r beroot] activate [-T]\n" in usage()
52 "\tbectl [-r beroot] check\n" in usage()
53 "\tbectl [-r beroot] create [-r] [-e {nonActiveBe | beName@snapshot}] beName\n" in usage()
54 "\tbectl [-r beroot] create [-r] beName@snapshot\n" in usage()
55 "\tbectl [-r beroot] destroy [-Fo] {beName | beName@snapshot}\n" in usage()
56 "\tbectl [-r beroot] export sourceBe\n" in usage()
57 "\tbectl [-r beroot] import targetBe\n" in usage()
58 "\tbectl [-r beroot] jail [-bU] [{-o key=value | -u key}]... beName\n" in usage()
60 "\tbectl [-r beroot] list [-aDHs] [{-c property | -C property}]\n" in usage()
61 "\tbectl [-r beroot] mount beName [mountpoint]\n" in usage()
62 "\tbectl [-r beroot] rename origBeName newBeName\n" in usage()
63 "\tbectl [-r beroot] {ujail | unjail} {jailID | jailName | beName}\n" in usage()
64 "\tbectl [-r beroot] {umount | unmount} [-f] beName\n"); in usage()
83 { "activate", bectl_cmd_activate,false },
123 while ((opt = getopt(argc, argv, "tT")) != -1) { in bectl_cmd_activate()
136 fprintf(stderr, "bectl activate: unknown option '-%c'\n", in bectl_cmd_activate()
142 argc -= optind; in bectl_cmd_activate()
146 fprintf(stderr, "bectl activate: wrong number of arguments\n"); in bectl_cmd_activate()
154 printf("Failed to remove temporary activation\n"); in bectl_cmd_activate()
158 /* activate logic goes here */ in bectl_cmd_activate()
161 printf("Did not successfully activate boot environment %s", in bectl_cmd_activate()
189 while ((opt = getopt(argc, argv, "e:r")) != -1) { in bectl_cmd_create()
198 fprintf(stderr, "bectl create: unknown option '-%c'\n", in bectl_cmd_create()
204 argc -= optind; in bectl_cmd_create()
218 * environment is to be created here. in bectl_cmd_create()
237 recursive == true ? -1 : 0); in bectl_cmd_create()
250 "Failed to create a snapshot '%s' of '%s'\n", in bectl_cmd_create()
254 "Failed to create bootenv %s\n", bootenv); in bectl_cmd_create()
257 "Failed to create bootenv %s from snapshot %s\n", in bectl_cmd_create()
350 while ((opt = getopt(argc, argv, "Fo")) != -1) { in bectl_cmd_destroy()
359 fprintf(stderr, "bectl destroy: unknown option '-%c'\n", in bectl_cmd_destroy()
365 argc -= optind; in bectl_cmd_destroy()
375 /* We'll emit a notice if there's an origin to be cleaned up */ in bectl_cmd_destroy()
429 (argc == 3) ? "Failed to mount bootenv %s at %s\n" : in bectl_cmd_mount()
430 "Failed to mount bootenv %s at temporary path %s\n", in bectl_cmd_mount()
462 fprintf(stderr, "Failed to rename bootenv %s to %s\n", in bectl_cmd_rename()
479 while ((opt = getopt(argc, argv, "f")) != -1) { in bectl_cmd_unmount()
485 fprintf(stderr, "bectl %s: unknown option '-%c'\n", in bectl_cmd_unmount()
491 argc -= optind; in bectl_cmd_unmount()
507 fprintf(stderr, "Failed to unmount bootenv %s\n", bootenv); in bectl_cmd_unmount()
534 while ((opt = getopt(argc, argv, "hr:")) != -1) { in main()
546 argc -= optind; in main()
562 if (!cmd->silent) in main()
565 return (-1); in main()
568 libbe_print_on_error(be, !cmd->silent); in main()
570 rc = cmd->fn(argc, argv); in main()