" --version Show package version\n"
" --format=FORMAT Select format\n"
" --class=CLASS Select image class (machine, sysext, confext,\n"
- " portable)\n",
+ " portable)\n"
+ " --system Operate in per-system mode\n"
+ " --user Operate in per-user mode\n",
program_invocation_short_name,
ansi_underline(),
ansi_normal(),
ARG_VERSION = 0x100,
ARG_FORMAT,
ARG_CLASS,
+ ARG_SYSTEM,
+ ARG_USER,
};
static const struct option options[] = {
{ "version", no_argument, NULL, ARG_VERSION },
{ "format", required_argument, NULL, ARG_FORMAT },
{ "class", required_argument, NULL, ARG_CLASS },
+ { "system", no_argument, NULL, ARG_SYSTEM },
+ { "user", no_argument, NULL, ARG_USER },
{}
};
break;
+ case ARG_SYSTEM:
+ arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
+ break;
+
+ case ARG_USER:
+ arg_runtime_scope = RUNTIME_SCOPE_USER;
+ break;
+
case '?':
return -EINVAL;
" subvolume\n"
" --sync=BOOL Controls whether to sync() before completing\n"
" --class=CLASS Select image class (machine, sysext, confext,\n"
- " portable)\n",
+ " portable)\n"
+ " --system Operate in per-system mode\n"
+ " --user Operate in per-user mode\n",
program_invocation_short_name,
ansi_underline(),
ansi_normal(),
ARG_BTRFS_QUOTA,
ARG_SYNC,
ARG_CLASS,
+ ARG_SYSTEM,
+ ARG_USER,
};
static const struct option options[] = {
{ "btrfs-quota", required_argument, NULL, ARG_BTRFS_QUOTA },
{ "sync", required_argument, NULL, ARG_SYNC },
{ "class", required_argument, NULL, ARG_CLASS },
+ { "system", no_argument, NULL, ARG_SYSTEM },
+ { "user", no_argument, NULL, ARG_USER },
{}
};
break;
+ case ARG_SYSTEM:
+ arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
+ break;
+
+ case ARG_USER:
+ arg_runtime_scope = RUNTIME_SCOPE_USER;
+ break;
+
case '?':
return -EINVAL;
" --offset=BYTES Offset to seek to in destination\n"
" --size-max=BYTES Maximum number of bytes to write to destination\n"
" --class=CLASS Select image class (machine, sysext, confext,\n"
- " portable)\n",
+ " portable)\n"
+ " --system Operate in per-system mode\n"
+ " --user Operate in per-user mode\n",
program_invocation_short_name,
ansi_underline(),
ansi_normal(),
ARG_OFFSET,
ARG_SIZE_MAX,
ARG_CLASS,
+ ARG_SYSTEM,
+ ARG_USER,
};
static const struct option options[] = {
{ "offset", required_argument, NULL, ARG_OFFSET },
{ "size-max", required_argument, NULL, ARG_SIZE_MAX },
{ "class", required_argument, NULL, ARG_CLASS },
+ { "system", no_argument, NULL, ARG_SYSTEM },
+ { "user", no_argument, NULL, ARG_USER },
{}
};
break;
+ case ARG_SYSTEM:
+ arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
+ break;
+
+ case ARG_USER:
+ arg_runtime_scope = RUNTIME_SCOPE_USER;
+ break;
+
case '?':
return -EINVAL;
" --class=CLASS Select image class (machine, sysext, confext,\n"
" portable)\n"
" --keep-download=BOOL Keep a copy pristine copy of the downloaded file\n"
- " around\n",
+ " around\n"
+ " --system Operate in per-system mode\n"
+ " --user Operate in per-user mode\n",
program_invocation_short_name,
ansi_underline(),
ansi_normal(),
ARG_SIZE_MAX,
ARG_CLASS,
ARG_KEEP_DOWNLOAD,
+ ARG_SYSTEM,
+ ARG_USER,
};
static const struct option options[] = {
{ "size-max", required_argument, NULL, ARG_SIZE_MAX },
{ "class", required_argument, NULL, ARG_CLASS },
{ "keep-download", required_argument, NULL, ARG_KEEP_DOWNLOAD },
+ { "system", no_argument, NULL, ARG_SYSTEM },
+ { "user", no_argument, NULL, ARG_USER },
{}
};
auto_keep_download = false;
break;
+ case ARG_SYSTEM:
+ arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
+ break;
+
+ case ARG_USER:
+ arg_runtime_scope = RUNTIME_SCOPE_USER;
+ break;
+
case '?':
return -EINVAL;