]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: extend comment on returned errors a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Mar 2021 15:58:54 +0000 (16:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Mar 2021 13:57:36 +0000 (14:57 +0100)
src/shared/dissect-image.c

index 918d3021c4226fa0c9d04fecc7cd50da4d7bcfb3..843fd41bb9dea287e4e8c0acb9e322a072017c7b 100644 (file)
@@ -506,7 +506,9 @@ int dissect_image(
         /* Probes a disk image, and returns information about what it found in *ret.
          *
          * Returns -ENOPKG if no suitable partition table or file system could be found.
-         * Returns -EADDRNOTAVAIL if a root hash was specified but no matching root/verity partitions found. */
+         * Returns -EADDRNOTAVAIL if a root hash was specified but no matching root/verity partitions found.
+         * Returns -ENXIO if we couldn't find any partition suitable as root or /usr partition
+         * Returns -ENOTUNIQ if we only found multiple generic partitions and thus don't know what to do with that */
 
         if (verity && verity->root_hash) {
                 sd_id128_t fsuuid, vuuid;