* [PATCH] kas: update to kas-container 4.8.2
@ 2025-10-08 7:35 srinuvasan.a via isar-users
2025-10-23 15:30 ` Zhihang Wei
0 siblings, 1 reply; 2+ messages in thread
From: srinuvasan.a via isar-users @ 2025-10-08 7:35 UTC (permalink / raw)
To: isar-users; +Cc: Srinuvasan A
From: Srinuvasan A <srinuvasan.a@siemens.com>
Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
kas/kas-container | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/kas/kas-container b/kas/kas-container
index 0e99898b..476724c7 100755
--- a/kas/kas-container
+++ b/kas/kas-container
@@ -27,7 +27,7 @@
set -e
-KAS_CONTAINER_SCRIPT_VERSION="4.8.1"
+KAS_CONTAINER_SCRIPT_VERSION="4.8.2"
KAS_IMAGE_VERSION_DEFAULT="${KAS_CONTAINER_SCRIPT_VERSION}"
KAS_CONTAINER_IMAGE_PATH_DEFAULT="ghcr.io/siemens/kas"
KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas"
@@ -454,6 +454,7 @@ done
[ -n "${KAS_CMD}" ] || usage
KAS_EXTRA_BITBAKE_ARGS=0
+KAS_FILES=
# parse kas sub-command options
while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do
@@ -686,12 +687,9 @@ if [ -n "${SSTATE_MIRRORS}" ]; then
set -- "$@" -e "SSTATE_MIRRORS=${SSTATE_MIRRORS}"
fi
-# propagate timezone information
-if [ -f "/etc/localtime" ]; then
- set -- "$@" -v "$(realpath -e "/etc/localtime")":/etc/localtime:ro
-fi
-if [ -f "/etc/timezone" ]; then
- set -- "$@" -v "$(realpath -e "/etc/timezone")":/etc/timezone:ro
+# propagate timezone information to entrypoint (requires systemd 239)
+if command -v timedatectl >/dev/null; then
+ set -- "$@" -e "KAS_HOST_TZ=$(timedatectl show -p Timezone --value 2>/dev/null)"
fi
for var in TERM KAS_DISTRO KAS_MACHINE KAS_TARGET KAS_TASK KAS_CLONE_DEPTH \
--
2.34.1
--
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/20251008073523.4127257-1-srinuvasan.a%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] kas: update to kas-container 4.8.2
2025-10-08 7:35 [PATCH] kas: update to kas-container 4.8.2 srinuvasan.a via isar-users
@ 2025-10-23 15:30 ` Zhihang Wei
0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2025-10-23 15:30 UTC (permalink / raw)
To: srinuvasan.a, isar-users
Applied to next, thanks.
Best regards,
Zhihang
On 10/8/25 09:35, srinuvasan.a via isar-users wrote:
> From: Srinuvasan A<srinuvasan.a@siemens.com>
>
> Signed-off-by: Srinuvasan A<srinuvasan.a@siemens.com>
> ---
> kas/kas-container | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/kas/kas-container b/kas/kas-container
> index 0e99898b..476724c7 100755
> --- a/kas/kas-container
> +++ b/kas/kas-container
> @@ -27,7 +27,7 @@
>
> set -e
>
> -KAS_CONTAINER_SCRIPT_VERSION="4.8.1"
> +KAS_CONTAINER_SCRIPT_VERSION="4.8.2"
> KAS_IMAGE_VERSION_DEFAULT="${KAS_CONTAINER_SCRIPT_VERSION}"
> KAS_CONTAINER_IMAGE_PATH_DEFAULT="ghcr.io/siemens/kas"
> KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas"
> @@ -454,6 +454,7 @@ done
> [ -n "${KAS_CMD}" ] || usage
>
> KAS_EXTRA_BITBAKE_ARGS=0
> +KAS_FILES=
>
> # parse kas sub-command options
> while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do
> @@ -686,12 +687,9 @@ if [ -n "${SSTATE_MIRRORS}" ]; then
> set -- "$@" -e "SSTATE_MIRRORS=${SSTATE_MIRRORS}"
> fi
>
> -# propagate timezone information
> -if [ -f "/etc/localtime" ]; then
> - set -- "$@" -v "$(realpath -e "/etc/localtime")":/etc/localtime:ro
> -fi
> -if [ -f "/etc/timezone" ]; then
> - set -- "$@" -v "$(realpath -e "/etc/timezone")":/etc/timezone:ro
> +# propagate timezone information to entrypoint (requires systemd 239)
> +if command -v timedatectl >/dev/null; then
> + set -- "$@" -e "KAS_HOST_TZ=$(timedatectl show -p Timezone --value 2>/dev/null)"
> fi
>
> for var in TERM KAS_DISTRO KAS_MACHINE KAS_TARGET KAS_TASK KAS_CLONE_DEPTH \
--
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/74c96dd1-2e21-4be3-be92-0dd8e5d78475%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-23 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-08 7:35 [PATCH] kas: update to kas-container 4.8.2 srinuvasan.a via isar-users
2025-10-23 15:30 ` Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox