diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-09 18:39:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-20 20:00:09 +0100 |
commit | 9b6deb03fcb358d6987ce86fcad08e2e290ee5d0 (patch) | |
tree | 04585a62a61a27df1de280a8aecef2ef485eb25d /src/dissect | |
parent | 6f4e2f97d738e720ae843cef67cf83e350aa7667 (diff) | |
download | systemd-9b6deb03fcb358d6987ce86fcad08e2e290ee5d0.tar.gz |
dissect: optionally, only look for GPT partition tables, nothing else
This is useful for reusing the dissector logic in the gpt-auto-discovery logic:
there we really don't want to use MBR or naked file systems as root device.
Diffstat (limited to 'src/dissect')
-rw-r--r-- | src/dissect/dissect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index f2f1e135ec..aa06894037 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -191,7 +191,7 @@ int main(int argc, char *argv[]) { goto finish; } - r = dissect_image(d->fd, arg_root_hash, arg_root_hash_size, &m); + r = dissect_image(d->fd, arg_root_hash, arg_root_hash_size, 0, &m); if (r == -ENOPKG) { log_error_errno(r, "Couldn't identify a suitable partition table or file system in %s.", arg_image); goto finish; |