summaryrefslogtreecommitdiffstats
path: root/src/dissect
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-09 18:39:15 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-20 20:00:09 +0100
commit9b6deb03fcb358d6987ce86fcad08e2e290ee5d0 (patch)
tree04585a62a61a27df1de280a8aecef2ef485eb25d /src/dissect
parentunits: drop --fail parameter from "systemctl switch-root" invocation (diff)
downloadsystemd-9b6deb03fcb358d6987ce86fcad08e2e290ee5d0.tar.xz
systemd-9b6deb03fcb358d6987ce86fcad08e2e290ee5d0.zip
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.c2
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;