diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-18 06:36:42 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-18 17:37:56 +0900 |
commit | ee0e6e476e61d4baa2a18e241d212753e75003bf (patch) | |
tree | 1bd1ade96816a46689e8bcf1f4445b4d98c6c23d | |
parent | e7e6ce5f8d467304731a98e8a140e69713f1bf07 (diff) | |
download | systemd-ee0e6e476e61d4baa2a18e241d212753e75003bf.tar.gz |
gpt-auto: do not fail when no suitable partitions found
Follow-up for 598fd4da1cf9665834110583fd9133073cc12481.
-rw-r--r-- | src/gpt-auto-generator/gpt-auto-generator.c | 3 |
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 33c215bcb5..005df04328 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -753,7 +753,8 @@ static int enumerate_partitions(dev_t devnum) { arg_image_policy ?: &image_policy_host, DISSECT_IMAGE_GPT_ONLY| DISSECT_IMAGE_USR_NO_ROOT| - DISSECT_IMAGE_DISKSEQ_DEVNODE, + DISSECT_IMAGE_DISKSEQ_DEVNODE| + DISSECT_IMAGE_ALLOW_EMPTY, /* 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 |