diff mbox series

[isar-cip-core,v3] kas/opt/expand-on-first-boot.yml: add an optional expand-on-first-boot

Message ID 20240423145409.175324-1-srinuvasan.a@siemens.com (mailing list archive)
State Accepted
Headers show
Series [isar-cip-core,v3] kas/opt/expand-on-first-boot.yml: add an optional expand-on-first-boot | expand

Commit Message

Arjunan, Srinu April 23, 2024, 2:54 p.m. UTC
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 the
boot medium to the full size of that medium and then deactivates itself.

Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
 Kconfig                          |  8 ++++++++
 kas/opt/expand-on-first-boot.yml | 17 +++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 kas/opt/expand-on-first-boot.yml

Comments

Jan Kiszka July 12, 2024, 7:16 a.m. UTC | #1
On 23.04.24 16:54, srinuvasan.a@siemens.com wrote:
   ^^^^^^^^^^^^^^

Your local clock is off. Please fix (ntp...).

> 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 the
> boot medium to the full size of that medium and then deactivates itself.
> 
> Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
> ---
>  Kconfig                          |  8 ++++++++
>  kas/opt/expand-on-first-boot.yml | 17 +++++++++++++++++
>  2 files changed, 25 insertions(+)
>  create mode 100644 kas/opt/expand-on-first-boot.yml
> 
> diff --git a/Kconfig b/Kconfig
> index 96f590a..282fecd 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -151,6 +151,14 @@ config KAS_INCLUDE_DEBIAN
>  
>  comment "Image features"
>  
> +config EXPAND_ON_FIRST_BOOT
> +        bool "Grow last partition to full medium during first boot"
> +
> +config KAS_INCLUDE_EXPAND_ON_FIRST_BOOT
> +        string
> +        default "kas/opt/expand-on-first-boot.yml"
> +        depends on EXPAND_ON_FIRST_BOOT

Broken indention - I fixed that.

> +
>  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"

Thanks, applied with fixes.

Jan
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 96f590a..282fecd 100644
--- a/Kconfig
+++ b/Kconfig
@@ -151,6 +151,14 @@  config KAS_INCLUDE_DEBIAN
 
 comment "Image features"
 
+config EXPAND_ON_FIRST_BOOT
+        bool "Grow last partition to full medium during first boot"
+
+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"