]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gpt-auto-generator: enable referencing partitions via diskseq symlinks
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2022 11:28:31 +0000 (12:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Dec 2022 11:44:57 +0000 (12:44 +0100)
src/gpt-auto-generator/gpt-auto-generator.c

index 1d626f2a5a0ffa795bb43b948eb165b4281b6b11..92eef36b4ddd52453a6fdeaa8d3b33a01b6ce637 100644 (file)
@@ -674,7 +674,8 @@ static int enumerate_partitions(dev_t devnum) {
                         loop,
                         NULL, NULL,
                         DISSECT_IMAGE_GPT_ONLY|
-                        DISSECT_IMAGE_USR_NO_ROOT,
+                        DISSECT_IMAGE_USR_NO_ROOT|
+                        DISSECT_IMAGE_DISKSEQ_DEVNODE,
                         /* NB! Unlike most other places where we dissect block devices we do not use
                          * DISSECT_IMAGE_ADD_PARTITION_DEVICES here: we want that the kernel finds the
                          * devices, and udev probes them before we mount them via .mount units much later