diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-21 17:35:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 17:35:01 -0500 |
commit | 5978bdd05fed013d301f6d8b089c7c7ea8c0ef8e (patch) | |
tree | 676c5bd2a479a80cbce71ba02c1ada8883989540 /src/dissect/dissect.c | |
parent | a3d8d68cc1698d014575f0f66c58e253bd46c240 (diff) | |
parent | bcab914f7fb0570eb728907163ada55c6ae3d602 (diff) |
Merge pull request #5411 from poettering/various-pre-v233-fixes
Various pre v233 fixes.
Diffstat (limited to 'src/dissect/dissect.c')
-rw-r--r-- | src/dissect/dissect.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 59bd7d9e84..06564e94b1 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -208,6 +208,14 @@ int main(int argc, char *argv[]) { log_error_errno(r, "No root partition for specified root hash found in %s.", arg_image); goto finish; } + if (r == -ENOTUNIQ) { + log_error_errno(r, "Multiple suitable root partitions found in image %s.", arg_image); + goto finish; + } + if (r == -ENXIO) { + log_error_errno(r, "No suitable root partition found in image %s.", arg_image); + goto finish; + } if (r < 0) { log_error_errno(r, "Failed to dissect image: %m"); goto finish; |