]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gpt-auto-generator: fix duplicate backing partition check
authorLennart Poettering <lennart@poettering.net>
Sat, 3 Oct 2015 14:38:52 +0000 (16:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Oct 2015 07:41:02 +0000 (09:41 +0200)
We shouldn't exit the loop early, otherwise our duplicate backing
partition check won't work.

src/gpt-auto-generator/gpt-auto-generator.c

index dbb6648daac2e989d0f54e2f370b959890bb110a..96425c5b07fabc6689bbcb40b5088cab9cf60b52 100644 (file)
@@ -871,7 +871,6 @@ static int get_block_device_harder(const char *path, dev_t *dev) {
                         goto fallback;
 
                 found = de;
-                break;
         }
 
         if (!found)