* [PATCH] expand-on-first-boot: Make supported filesystems configurable
@ 2024-11-11 20:42 'Jan Kiszka' via isar-users
2024-11-12 11:23 ` Uladzimir Bely
0 siblings, 1 reply; 3+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2024-11-11 20:42 UTC (permalink / raw)
To: isar-users; +Cc: Felix Moessbauer
From: Jan Kiszka <jan.kiszka@siemens.com>
To allow configuring the this support script down to the target
filesystem that shall be expanded, add a variable that specifies those
filesystem types. Default remains both ext4 and btrfs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
This is on top of https://patchwork.isar-build.org/project/isar/patch/90455867-dcc2-4339-8ce4-8c0a1567c570@siemens.com/
.../expand-on-first-boot/expand-on-first-boot_1.6.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.6.bb b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.6.bb
index 071bed24..f873bd29 100644
--- a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.6.bb
+++ b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.6.bb
@@ -10,14 +10,16 @@ inherit dpkg-raw
DESCRIPTION = "This service grows the last partition to the full medium during first boot"
MAINTAINER = "isar-users <isar-users@googlegroups.com>"
+EXPAND_FSTYPES ?= "ext4 btrfs"
+
DEBIAN_DEPENDS = " \
systemd, \
sed, \
grep, \
coreutils, \
mount, \
- btrfs-progs, \
- e2fsprogs, \
+ ${@'e2fsprogs' if 'ext4' in d.getVar('EXPAND_FSTYPES').split() else ''}, \
+ ${@'btrfs-progs' if 'btrfs' in d.getVar('EXPAND_FSTYPES').split() else ''}, \
fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), \
util-linux"
--
2.43.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/d1d22ef6-9882-4523-8e2c-c4adb52802fa%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] expand-on-first-boot: Make supported filesystems configurable
2024-11-11 20:42 [PATCH] expand-on-first-boot: Make supported filesystems configurable 'Jan Kiszka' via isar-users
@ 2024-11-12 11:23 ` Uladzimir Bely
2024-11-13 6:45 ` 'Jan Kiszka' via isar-users
0 siblings, 1 reply; 3+ messages in thread
From: Uladzimir Bely @ 2024-11-12 11:23 UTC (permalink / raw)
To: Jan Kiszka, isar-users
On Mon, 2024-11-11 at 21:42 +0100, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> To allow configuring the this support script down to the target
"the this" - missing word(s)?
> filesystem that shall be expanded, add a variable that specifies
> those
> filesystem types. Default remains both ext4 and btrfs.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> This is on top of
> https://patchwork.isar-build.org/project/isar/patch/90455867-dcc2-4339-8ce4-8c0a1567c570@siemens.com/
>
> .../expand-on-first-boot/expand-on-first-boot_1.6.bb | 6
> ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-support/expand-on-first-boot/expand-on-
> first-boot_1.6.bb b/meta/recipes-support/expand-on-first-boot/expand-
> on-first-boot_1.6.bb
> index 071bed24..f873bd29 100644
> --- a/meta/recipes-support/expand-on-first-boot/expand-on-first-
> boot_1.6.bb
> +++ b/meta/recipes-support/expand-on-first-boot/expand-on-first-
> boot_1.6.bb
> @@ -10,14 +10,16 @@ inherit dpkg-raw
> DESCRIPTION = "This service grows the last partition to the full
> medium during first boot"
> MAINTAINER = "isar-users <isar-users@googlegroups.com>"
>
> +EXPAND_FSTYPES ?= "ext4 btrfs"
> +
> DEBIAN_DEPENDS = " \
> systemd, \
> sed, \
> grep, \
> coreutils, \
> mount, \
> - btrfs-progs, \
> - e2fsprogs, \
> + ${@'e2fsprogs' if 'ext4' in d.getVar('EXPAND_FSTYPES').split()
> else ''}, \
> + ${@'btrfs-progs' if 'btrfs' in
> d.getVar('EXPAND_FSTYPES').split() else ''}, \
> fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), \
> util-linux"
>
> --
> 2.43.0
>
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/49a420d72e0747a19e85906006696e18f6e58640.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] expand-on-first-boot: Make supported filesystems configurable
2024-11-12 11:23 ` Uladzimir Bely
@ 2024-11-13 6:45 ` 'Jan Kiszka' via isar-users
0 siblings, 0 replies; 3+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2024-11-13 6:45 UTC (permalink / raw)
To: Uladzimir Bely, isar-users
On 12.11.24 12:23, Uladzimir Bely wrote:
> On Mon, 2024-11-11 at 21:42 +0100, 'Jan Kiszka' via isar-users wrote:
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> To allow configuring the this support script down to the target
>
> "the this" - missing word(s)?
>
Yeah, v2 on the way.
Jan
>> filesystem that shall be expanded, add a variable that specifies
>> those
>> filesystem types. Default remains both ext4 and btrfs.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>
>> This is on top of
>> https://patchwork.isar-build.org/project/isar/patch/90455867-dcc2-4339-8ce4-8c0a1567c570@siemens.com/
>>
>> .../expand-on-first-boot/expand-on-first-boot_1.6.bb | 6
>> ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-support/expand-on-first-boot/expand-on-
>> first-boot_1.6.bb b/meta/recipes-support/expand-on-first-boot/expand-
>> on-first-boot_1.6.bb
>> index 071bed24..f873bd29 100644
>> --- a/meta/recipes-support/expand-on-first-boot/expand-on-first-
>> boot_1.6.bb
>> +++ b/meta/recipes-support/expand-on-first-boot/expand-on-first-
>> boot_1.6.bb
>> @@ -10,14 +10,16 @@ inherit dpkg-raw
>> DESCRIPTION = "This service grows the last partition to the full
>> medium during first boot"
>> MAINTAINER = "isar-users <isar-users@googlegroups.com>"
>>
>> +EXPAND_FSTYPES ?= "ext4 btrfs"
>> +
>> DEBIAN_DEPENDS = " \
>> systemd, \
>> sed, \
>> grep, \
>> coreutils, \
>> mount, \
>> - btrfs-progs, \
>> - e2fsprogs, \
>> + ${@'e2fsprogs' if 'ext4' in d.getVar('EXPAND_FSTYPES').split()
>> else ''}, \
>> + ${@'btrfs-progs' if 'btrfs' in
>> d.getVar('EXPAND_FSTYPES').split() else ''}, \
>> fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), \
>> util-linux"
>>
>> --
>> 2.43.0
>>
>
--
Siemens AG, Technology
Linux Expert Center
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/0a139840-b6f2-4dd8-9713-8140c132819f%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-13 6:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-11 20:42 [PATCH] expand-on-first-boot: Make supported filesystems configurable 'Jan Kiszka' via isar-users
2024-11-12 11:23 ` Uladzimir Bely
2024-11-13 6:45 ` 'Jan Kiszka' via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox