summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-12-21 12:28:31 +0100
committerLennart Poettering <lennart@poettering.net>2022-12-23 12:44:57 +0100
commit8716a76ce2058876abc7c5b1001822ac9e08a617 (patch)
tree6598ff1c93227fe0be2f6286166c96e2d20c1aab /src/gpt-auto-generator
parent1a81ddef00a0a25f6bcdd1e6633430e8b240b87f (diff)
downloadsystemd-8716a76ce2058876abc7c5b1001822ac9e08a617.tar.gz
gpt-auto-generator: enable referencing partitions via diskseq symlinks
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 1d626f2a5a..92eef36b4d 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -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