<xi:include href="version-info.xml" xpointer="v258"/></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>--all</option></term>
+
+ <listitem><para>If combined with <option>--discover</option>, also shows images that start with a
+ dot, i.e. hidden images.</para>
+
+ <xi:include href="version-info.xml" xpointer="v258"/></listitem>
+ </varlistentry>
+
<xi:include href="standard-options.xml" xpointer="image-policy-open" />
<xi:include href="standard-options.xml" xpointer="no-pager" />
<xi:include href="standard-options.xml" xpointer="no-legend" />
static bool arg_mtree_hash = true;
static bool arg_via_service = false;
static RuntimeScope arg_runtime_scope = _RUNTIME_SCOPE_INVALID;
+static bool arg_all = false;
STATIC_DESTRUCTOR_REGISTER(arg_image, freep);
STATIC_DESTRUCTOR_REGISTER(arg_root, freep);
" --mtree-hash=BOOL Whether to include SHA256 hash in the mtree output\n"
" --user Discover user images\n"
" --system Discover system images\n"
+ " --all Show hidden images too\n"
"\n%3$sCommands:%4$s\n"
" -h --help Show this help\n"
" --version Show package version\n"
ARG_MAKE_ARCHIVE,
ARG_SYSTEM,
ARG_USER,
+ ARG_ALL,
};
static const struct option options[] = {
{ "make-archive", no_argument, NULL, ARG_MAKE_ARCHIVE },
{ "system", no_argument, NULL, ARG_SYSTEM },
{ "user", no_argument, NULL, ARG_USER },
+ { "all", no_argument, NULL, ARG_ALL },
{}
};
user_scope_requested = true;
break;
+ case ARG_ALL:
+ arg_all = true;
+ break;
+
case '?':
return -EINVAL;
HASHMAP_FOREACH(img, images) {
- if (!IN_SET(img->type, IMAGE_RAW, IMAGE_BLOCK))
+ if (!arg_all && startswith(img->name, "."))
continue;
r = table_add_many(