From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>,
Henning Schild <henning.schild@siemens.com>,
"Moessbauer, Felix" <felix.moessbauer@siemens.com>,
Joe MacDonald <joe_macdonald@mentor.com>
Subject: Re: [PATCHSET] expand last partition script and its usage
Date: Sun, 18 Dec 2022 14:50:22 +0100 [thread overview]
Message-ID: <CAJGKYO5qaapsbtoUyD=S8wv=J8hwW8wSH4At7xVAuk5mX0_C-g@mail.gmail.com> (raw)
In-Reply-To: <CAJGKYO4V2QOHOj3z1NMxY_8K-+LJJwCU4q5DaCdiPfw_33e4jQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3207 bytes --]
On Fri, 16 Dec 2022 at 12:38, Roberto A. Foglietta
<roberto.foglietta@gmail.com> wrote:
>
> On Fri, 16 Dec 2022 at 09:14, Roberto A. Foglietta
> <roberto.foglietta@gmail.com> wrote:
> >
> > On Fri, 16 Dec 2022 at 00:00, Roberto A. Foglietta
> > <roberto.foglietta@gmail.com> 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" <roberto.foglietta@gmail.com>
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 <roberto.foglietta@gmail.com>
. 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 <roberto.foglietta@gmail.com>
Best regards, R-
[-- Attachment #2: 0001-Copyright-changes-of-expand-last-partition-script-af.patch --]
[-- Type: text/x-patch, Size: 2413 bytes --]
From aeb885595b53d08ed101ccc08032a6dfcfe3decb Mon Sep 17 00:00:00 2001
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
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 <roberto.foglietta@gmail.com>
. 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 <roberto.foglietta@gmail.com>
expand-last-partition.sh
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
.../files/expand-last-partition.sh | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh b/meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh
index 5cd6fc3..82b74a6 100755
--- a/meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh
+++ b/meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh
@@ -2,10 +2,18 @@
#
# Resize last partition to full medium size
#
-# This software is a part of ISAR.
+# 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 <roberto.foglietta@gmail.com>
+# 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.
+#
exitnlog() {
ec=$?
--
2.34.1
prev parent reply other threads:[~2022-12-18 13:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-15 18:06 Roberto A. Foglietta
2022-12-15 18:27 ` Roberto A. Foglietta
2022-12-15 23:00 ` Roberto A. Foglietta
2022-12-16 8:14 ` Roberto A. Foglietta
2022-12-16 11:38 ` Roberto A. Foglietta
2022-12-18 13:50 ` Roberto A. Foglietta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJGKYO5qaapsbtoUyD=S8wv=J8hwW8wSH4At7xVAuk5mX0_C-g@mail.gmail.com' \
--to=roberto.foglietta@gmail.com \
--cc=amikan@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=joe_macdonald@mentor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox