On Fri, 16 Dec 2022 at 12:38, Roberto A. Foglietta wrote: > > On Fri, 16 Dec 2022 at 09:14, Roberto A. Foglietta > wrote: > > > > On Fri, 16 Dec 2022 at 00:00, Roberto A. Foglietta > > wrote: > > > > > > Hi all, > > > > > - udev support: udevadm settle is the first task to run > > > > A dependency needed added, this grants that udevd and udevadm will be installed > > Many systems might not need udevadm settle for expanding last partition but few > others which rely on separated couple of bootfs/rootfs where last > partition is on > a volume connected through a kind of bus which not be fully ready at boot time > until udevd will end to populate the /dev tree. > > Moreover, expanding the last partition is a single time task which runs only on > the first machine boot and then will be disabled forever. Thus, even if it > would take some time on some systems, it is acceptable in order to grant to the > widest variety of systems this service. Alternative is to accept that some > system will be left unprovided of the storage space they have been designed for. > > This patch is for applying on top of the other previous 7 patches > > - In expand last partition few improvements and a bugfix > - In expand last partition trap exitnlog EXIT logs with simpler code > - The expand last partition might support full volumes also, to test > - In expand last partition checking the size is useless > - If expand last partition fails, unsupervised systems reboot > - In expand last partition script btrfs support added > - In expand last partition wait for udev have finished > > or their combination: > > - The expand last partition rework and generalisation > > Sent by elastic mail SMTP and went in moderation, here in attachment. > I decided to leverage the MIT license to change the copyright notice and license after the work and generalisation. As usual, I sent this patch by elastic mail SMTP so it went on moderation. Here in attachment. This patch applies on the top of the patches listed above. >From aeb885595b53d08ed101ccc08032a6dfcfe3decb Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Sun, 18 Dec 2022 14:10:40 +0100 Subject: [PATCH] Copyright changes of expand last partition script after rework Script to resize last partition to full medium size, changed the copyright and the license by the author of the rework and generalisation as following: . This software was originally a part of ISAR . Copyright (c) Siemens AG, 2018-2022 . SPDX-License-Identifier: MIT . . After its rework and generalisation this file was relicensed . (C) 2022, Roberto A. Foglietta . SPDX-License-Identifier: all rights reserved, but fair use allowed . Fair use includes test, learning and marketing but not sales, redistribution . leasing, renting or every other commercial/business activities without the . consent of the author. Every company or individual allowed to use this . code behind these limitations will be listed here below, if any. Signed-off-by: Roberto A. Foglietta Best regards, R-