MOESSBAUER, Felix
unread,Jul 18, 2024, 3:27:19 AM (10 days ago) Jul 18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to isar-...@googlegroups.com, Kowalsky, Clara, quirin.g...@siemens.com
On Fri, 2024-07-12 at 16:03 +0200, 'Clara Kowalsky' via isar-users
wrote:
> This verifies that /tmp is readable and writable before starting the
> service.
>
> Signed-off-by: Clara Kowalsky <
clara.k...@siemens.com>
> ---
> .../expand-on-first-boot/files/expand-on-first-boot.service | 2
> +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/expand-on-first-boot/files/expand-
> on-first-boot.service b/meta/recipes-support/expand-on-first-
> boot/files/expand-on-first-boot.service
> index 90c92a39..9daae719 100644
> --- a/meta/recipes-support/expand-on-first-boot/files/expand-on-
> first-boot.service
> +++ b/meta/recipes-support/expand-on-first-boot/files/expand-on-
> first-boot.service
> @@ -9,7 +9,7 @@ DefaultDependencies=no
> Conflicts=shutdown.target
> After=systemd-remount-fs.service
> Before=local-fs-pre.target shutdown.target
> -ConditionPathIsReadWrite=/etc
> +ConditionPathIsReadWrite=/etc /tmp
Hi, can't we simply use PrivateTmp=true ? This would unshare /tmp and
/var/tmp from the host / calling environment.
I'm anyways wondering how the system will behave if /tmp is not
writable, as having this writable is mandated by systemd.
What data is stored there? If this is potentially big, we should not
use /tmp at all but instead /var/tmp.
Felix
>
> [Service]
> Type=oneshot
> --
> 2.45.2
>