Message ID | 20240417153712.104378-1-srinuvasan.a@siemens.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [isar-cip-core,v2] kas/opt/expand-on-first-boot.yml: add an optional expand-on-first-boot | expand |
Hi Jan, Any Update on this patch? Thanks, Srinu -----Original Message----- From: Arjunan, Srinu (DI CTO FDS CES LX PBU 2) <srinuvasan.a@siemens.com> Sent: 17 April 2024 21:07 To: cip-dev@lists.cip-project.org Cc: Kiszka, Jan (T CED) <jan.kiszka@siemens.com>; Arjunan, Srinu (DI CTO FDS CES LX PBU 2) <srinuvasan.a@siemens.com> Subject: [isar-cip-core][PATCH v2] kas/opt/expand-on-first-boot.yml: add an optional expand-on-first-boot From: Srinuvasan A <srinuvasan.a@siemens.com> Add expand-on-first-boot package as an optional file, this would be helpful to understand/debug the expand-on-first boot specifically w.r.t LUKS support, this systemd service expands the last partition on a the boot medium to the full size of that medium and then deactivates itself. Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com> --- Kconfig | 9 +++++++++ kas/opt/expand-on-first-boot.yml | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 kas/opt/expand-on-first-boot.yml diff --git a/Kconfig b/Kconfig index 96f590a..ec7c686 100644 --- a/Kconfig +++ b/Kconfig @@ -151,6 +151,15 @@ config KAS_INCLUDE_DEBIAN comment "Image features" +config EXPAND_ON_FIRST_BOOT + bool "expand-on-first-boot" + default n + +config KAS_INCLUDE_EXPAND_ON_FIRST_BOOT + string + default "kas/opt/expand-on-first-boot.yml" + depends on EXPAND_ON_FIRST_BOOT + config IMAGE_TESTING bool "Test extensions" diff --git a/kas/opt/expand-on-first-boot.yml b/kas/opt/expand-on-first-boot.yml new file mode 100644 index 0000000..03d666b --- /dev/null +++ b/kas/opt/expand-on-first-boot.yml @@ -0,0 +1,17 @@ +# +# CIP Core, generic profile +# +# Copyright (c) Siemens AG, 2024 +# +# Authors: +# Srinuvasan Arjunan <srinuvasan.a@siemens.com> # # +SPDX-License-Identifier: MIT # + +header: + version: 14 + +local_conf_header: + package-expand-on-first-boot: | + IMAGE_INSTALL:append = " expand-on-first-boot" -- 2.34.1
On 08.07.24 11:48, Arjunan, Srinu (DI CTO FDS CES LX PBU 2) wrote: > Hi Jan, > > Any Update on this patch? > Sorry, missed v2. > Thanks, > Srinu > > -----Original Message----- > From: Arjunan, Srinu (DI CTO FDS CES LX PBU 2) <srinuvasan.a@siemens.com> > Sent: 17 April 2024 21:07 > To: cip-dev@lists.cip-project.org > Cc: Kiszka, Jan (T CED) <jan.kiszka@siemens.com>; Arjunan, Srinu (DI CTO FDS CES LX PBU 2) <srinuvasan.a@siemens.com> > Subject: [isar-cip-core][PATCH v2] kas/opt/expand-on-first-boot.yml: add an optional expand-on-first-boot > > From: Srinuvasan A <srinuvasan.a@siemens.com> > > Add expand-on-first-boot package as an optional file, this would be helpful to understand/debug the expand-on-first boot specifically w.r.t LUKS support, this systemd service expands the last partition on a the boot medium to the full size of that medium and then deactivates itself. > > Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com> > --- > Kconfig | 9 +++++++++ > kas/opt/expand-on-first-boot.yml | 17 +++++++++++++++++ > 2 files changed, 26 insertions(+) > create mode 100644 kas/opt/expand-on-first-boot.yml > > diff --git a/Kconfig b/Kconfig > index 96f590a..ec7c686 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -151,6 +151,15 @@ config KAS_INCLUDE_DEBIAN > > comment "Image features" > > +config EXPAND_ON_FIRST_BOOT > + bool "expand-on-first-boot" Not helpful. You can build on the recipe description for that: "Grow last partition to full medium during first boot" > + default n "n" is already default. > + > +config KAS_INCLUDE_EXPAND_ON_FIRST_BOOT > + string > + default "kas/opt/expand-on-first-boot.yml" > + depends on EXPAND_ON_FIRST_BOOT > + > config IMAGE_TESTING > bool "Test extensions" > > diff --git a/kas/opt/expand-on-first-boot.yml b/kas/opt/expand-on-first-boot.yml > new file mode 100644 > index 0000000..03d666b > --- /dev/null > +++ b/kas/opt/expand-on-first-boot.yml > @@ -0,0 +1,17 @@ > +# > +# CIP Core, generic profile > +# > +# Copyright (c) Siemens AG, 2024 > +# > +# Authors: > +# Srinuvasan Arjunan <srinuvasan.a@siemens.com> # # > +SPDX-License-Identifier: MIT # > + > +header: > + version: 14 > + > +local_conf_header: > + package-expand-on-first-boot: | > + IMAGE_INSTALL:append = " expand-on-first-boot" > -- > 2.34.1 > Jan
diff --git a/Kconfig b/Kconfig index 96f590a..ec7c686 100644 --- a/Kconfig +++ b/Kconfig @@ -151,6 +151,15 @@ config KAS_INCLUDE_DEBIAN comment "Image features" +config EXPAND_ON_FIRST_BOOT + bool "expand-on-first-boot" + default n + +config KAS_INCLUDE_EXPAND_ON_FIRST_BOOT + string + default "kas/opt/expand-on-first-boot.yml" + depends on EXPAND_ON_FIRST_BOOT + config IMAGE_TESTING bool "Test extensions" diff --git a/kas/opt/expand-on-first-boot.yml b/kas/opt/expand-on-first-boot.yml new file mode 100644 index 0000000..03d666b --- /dev/null +++ b/kas/opt/expand-on-first-boot.yml @@ -0,0 +1,17 @@ +# +# CIP Core, generic profile +# +# Copyright (c) Siemens AG, 2024 +# +# Authors: +# Srinuvasan Arjunan <srinuvasan.a@siemens.com> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 14 + +local_conf_header: + package-expand-on-first-boot: | + IMAGE_INSTALL:append = " expand-on-first-boot"