]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: update error code comment a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Dec 2022 14:06:09 +0000 (15:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Apr 2023 18:50:47 +0000 (20:50 +0200)
src/shared/dissect-image.c

index 97414d2c8f9750b718a4e005746162d95649af30..5ec4fbf2e1360e3518f9e2d2c9a5377ebff2884d 100644 (file)
@@ -684,7 +684,11 @@ static int dissect_image(
          * 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 -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 */
+         * Returns -ENOTUNIQ if we only found multiple generic partitions and thus don't know what to do with that
+         * Returns -ERFKILL if image doesn't match image policy
+         * Returns -EBADR if verity data was provided externally for an image that has a GPT partition table (i.e. is not just a naked fs)
+         * Returns -EPROTONOSUPPORT if DISSECT_IMAGE_ADD_PARTITION_DEVICES is set but the block device does not have partition logic enabled
+         * Returns -ENOMSG if we didn't find a single usable partition (and DISSECT_IMAGE_REFUSE_EMPTY is set) */
 
         uint64_t diskseq = m->loop ? m->loop->diskseq : 0;