mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
gpt-auto: do not fail when no suitable partitions found
Follow-up for 598fd4da1c
.
This commit is contained in:
parent
e7e6ce5f8d
commit
ee0e6e476e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user