On Tue, 13 Dec 2022 at 09:44, Schaffner, Tobias wrote: > > Hi Felix, hi Roberto, > > udev is started via systemd-udevd and this service might not be up > yet when the script runs. > > Adding this line would only work reliably if we add > Requires=systemd-udevd and After=systemd-udevd to the > expand-on-first-boot.service > > But adding this dependency might obviously increase the boot time. > Hi Tobias, I do not think that adding that dependency will increase the boot time in general case but just changing the order of the operations. However, in those hardware which the devices recognition is slow, then the boot will slow down but probably are also those cases in which the resize will fail. In fast hardware, I think that udevd is just started before that script otherwise udevadm would have failed and the script as well due to set -e. This because the systemd paralyse the activities. At the moment, I am trying these changes on a virtual machine and it is enough fast that the script with udevadm settle do not fail nor slow down the boot in a noticeable way. I sent the patch v2 with this dependency. Also here in attachment. Thanks, R-