| From 38736bfa10ceed083f96bdcb5f85244f2fe19550 Mon Sep 17 00:00:00 2001 |
| From: Meena Shanmugam <meenashanmugam@google.com> |
| Date: Wed, 28 Jul 2021 00:12:41 +0000 |
| Subject: [PATCH] With v248, when the image boots up, the below error occurs. |
| "systemd-gpt-auto-generator[417]: Failed to dissect: Connection timed out". |
| This adds delay of 45 seconds to image boot up. The library call |
| blkid_partition_get_size returns one block more than the size that is in |
| /sys/block/sda/sda1. Since the check expects the size to match, it waits for |
| 45 seconds for the partiton to appear. Since the partition is already |
| available, the wait event times out. As per manual in |
| http://kernelorg.mirrors.tds.net/pub/linux/utils/util-linux/v2.29/libblkid-docs/libblkid-Partitions-probing.html#blkid-partition-get-size |
| it returns one or two blocks extra. Since only one parition fails this size |
| check, disabling it for now. |
| |
| --- |
| src/shared/dissect-image.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c |
| index cca92e7..a64c861 100644 |
| --- a/src/shared/dissect-image.c |
| +++ b/src/shared/dissect-image.c |
| @@ -195,8 +195,8 @@ static int device_is_partition(sd_device *d, blkid_partition pp) { |
| if (bsize < 0) |
| return errno_or_else(EIO); |
| |
| - if (size != (uint64_t) bsize) |
| - return false; |
| + /*if (size != (uint64_t) bsize) |
| + return false;*/ |
| |
| return true; |
| } |
| -- |
| 2.32.0.432.gabb21c7263-goog |
| |