From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 16 Jun 2025 11:45:03 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f190.google.com (mail-qt1-f190.google.com [209.85.160.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 55G9j1Br024085 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 16 Jun 2025 11:45:02 +0200 Received: by mail-qt1-f190.google.com with SMTP id d75a77b69052e-4a43c1e1e6bsf76832411cf.3 for ; Mon, 16 Jun 2025 02:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1750067096; cv=pass; d=google.com; s=arc-20240605; b=KW6REJ+5qq5JzSSgewNav1ua7HfE8ApYe4XlEqQOwPaXmsFmDOVHrbwJLfQqhq7p6z 4i8PfhqlLkr/t1pPJPQopI8/QIDc5OZXZoBaAkd9m3spjukvOKs0uz1VRNLmOTAVr4QG dxqGG1yeWCilR5hffIqlbLztqv9p4q2h8KyU7Sr8lwOA46wyCTBXhx/l25a0icQ73ECX NsP6heb59iktFgBn7/sqMpMXhFGIazQIa44sWDZRl1VDeQ8y7MDCoFR6wPlkhMhlD+rC 2fWd/CwzrmOUOdEUJxKXSorcWdH9Xy+8A8tOTk7a6+27yNIeyjm8ydaoc976on8xKLHB yuag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CUqsUfs3NMBXxz5jVb6Ou422YKEUqTTwJNxnt9dIXb8=; fh=elCSP9Y/09rPhaGqUZNQGyiuzx47DmUotB2WmCLH28o=; b=J3fnWuA98uoGgsxJ52xp8ELpPUJywl6KCa6wxOMrWGBuqefyzjl3Wb6l0M+soziQtG NWJeXXoBiexPWlZ7j6DREfPYtX8itOEYgVrLDHRqsbVvVJqYAvfVTH4jAIdDrZtQG8D3 E0Ic+Aqhdhhjl/7eDP5ZvYKNRzjPaM3Mt4sQRn/VhK4Yb6GL+OHct+fjrYPUj/PsmIYY cynlkNnhMrwhj5BbArJxy4eqf7CyNJpzXcHgiMreloChnkaoMja+unCNYh0cPNN0/zQx gvNojwwu3S1FimdDBRkDfUm0oJvp6VC1Z/PlqNpu9e8vc6gpfCsmOVMybOHd9rRV0o7G mZTw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=f2l1qWGI; spf=pass (google.com: domain of fm-1328765-20250616094449945e5129fc79974ee7-64fuha@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1328765-20250616094449945e5129fc79974ee7-64FUHA@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1750067096; x=1750671896; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=CUqsUfs3NMBXxz5jVb6Ou422YKEUqTTwJNxnt9dIXb8=; b=mzsw2u0yUCm846Ambr+GitR4zORu9K42jxTwy8z0YbSP0cDvZHpZyepcytPuczjtMu scwyUkzf9QGQu2BMxG6+B6UZujjIjVy+p42sh0fhADFXN0H1fuleKIUlmTNzC1cCWak4 VsvN6vB7MQonEuBgJYyBNJpwdXGeZJPul93b4XI3cLd5POHdsMeODx3LCdktBPEqycgI ucNeXJDoF3pmTQBatNR1KpiBG62rtEBjFnGw/sld39K6+9MMqdAWj6EGh6vMHxzq1aEj otdeftx7OEbL4l6pqnmNdagZu7kQSv51r4qwlin+iN+oWkTo4k0etdDK2rB0Gv7V4eCj ZfSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750067096; x=1750671896; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CUqsUfs3NMBXxz5jVb6Ou422YKEUqTTwJNxnt9dIXb8=; b=sm97iXPumcW+FC0JlbBXSIWXC0rNj637/2GyrLc1oRvSrMZxvHz6A0mjgbTg1lGHGO 7Rvy/ZbtY3Cy/pfVqaarmjguC2SZjsJlHKMfW2R5uWYz1BOzyvgIR016b0+R1WHd/Olx F6kafBHz/Un3eHxtdEII27alNKy7JeZhgr2A+xj8u9QwD3cwSglX2sfcjaJATHf+jCgW LkuHlb53C9SCtbpiXYL7mll3vXEQ1ak/dm/EJEeOph4deIS/nASMnsKx7RG1H0BJAbdQ Vc0YdNzu43W2wCCeQBNeefammyRGB1BmGWhwOq2K4z7oBXrrcpVngyIdIb6kfq84XTpr vBJA== X-Forwarded-Encrypted: i=2; AJvYcCUwxnaKN5Uo5/3NUy0QioLUo6u7AjkGcqTPKITADn5ZSfFEJrHcK0ZQKiVxsNLDryR2MJMj@ilbers.de X-Gm-Message-State: AOJu0YxwMBTl2/fNHXhQh9N8xJZWThjD0tK6iLMSUobw8pk971XdhXzN W0QeN5Eri6hHvYfV3brMRel/dy29BZsAQSaHPlZl3lcUG+p+XOoxm4IP X-Google-Smtp-Source: AGHT+IGswxP3uGrNXn7vygXXhchRMf6KfR8f3Yal3gTdHdChS0EN6LF/LeVZYq+uEqfOINIPK9s7KA== X-Received: by 2002:a05:622a:15ca:b0:494:959e:26a3 with SMTP id d75a77b69052e-4a73c5fc8f5mr150602641cf.34.1750067096253; Mon, 16 Jun 2025 02:44:56 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=AZMbMZfQhE+EGVrrd771dXKqN8Iyun0Gdg/VleOa5gTL4P0qyw== Received: by 2002:a05:622a:2cf:b0:4a5:a87e:51c1 with SMTP id d75a77b69052e-4a722c7576cls83338381cf.1.-pod-prod-03-us; Mon, 16 Jun 2025 02:44:55 -0700 (PDT) X-Received: by 2002:a05:620a:3951:b0:7c5:a25a:f0f3 with SMTP id af79cd13be357-7d3c6c08ae0mr1733135885a.8.1750067095200; Mon, 16 Jun 2025 02:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750067095; cv=none; d=google.com; s=arc-20240605; b=SqjXVkZX9Zmu2xH6hdjKcszQq99JHhMm8SlppTzHD3FBmpTKB0Njqstzah19QGYrpO SIdiaYfGYSa5/qOQkspQhBgtGvQn49mMdTeoLQWvaBsUZvJOlNNKD/ooALOsWs5zXX+o G7ly4NkGK+HfXZff2Jrd18rOgBdnjkC50Z04+zI4iHGbuyYxkUCzdzjIAOHfqmVh9XtX MSCQobwyrZexW+0+XnQHOIgfuQ+X+vejaLaBk40v2zLFg0KFNeaBdp3GYrqPI0XhOy1k B7A38oPzfd4I/a9/qaG2+ki3cwEx1EbSz7ytxdlRV4pLfq9/+BdSRbf7Qsb85NrBzdD3 vCiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=CcqDU+XiPtrlck+cVKlMqbTBFlDsyLk6omol9PLD9wI=; fh=Pt40xOu0ssl96dVOzN1FNmNtHgqv9aW9VmLrBG8UyVY=; b=LAu0y5pb80dKdhKUaXbjiywC5+xgVo6ECd+gDmJvK6Hs1US+UPn8lmbbiXU6JYi1xs 41oqYKiFB6iACxKErNPs8bVpjfsrmg3b8ya151QgouZewoo9SgOzsLI1IK4lxFdx0RoP hVZknWC8QsnV080WVjlELFhPcm9171pShNKui6ddEfgdOP1iKjlXzHBRDvI6XD+9QH6r EYQGwTOTdRNy0k7KjDfEicAWL7w9r82d0cfiGPwI+H0UEPgHUnv8nv4WnBLiyg3FILlD 6X1ZY/4AIdTsYUdHOwncyPBfeclyMwwHLzA7yqNi7ee4LPD/Ucaf2IDl9wePdEt8rCXr VqBA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=f2l1qWGI; spf=pass (google.com: domain of fm-1328765-20250616094449945e5129fc79974ee7-64fuha@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1328765-20250616094449945e5129fc79974ee7-64FUHA@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id af79cd13be357-7d3b8c676ccsi36079085a.0.2025.06.16.02.44.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jun 2025 02:44:54 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1328765-20250616094449945e5129fc79974ee7-64fuha@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20250616094449945e5129fc79974ee7 for ; Mon, 16 Jun 2025 11:44:49 +0200 From: "'Badrikesh Prusty' via isar-users" To: isar-users@googlegroups.com Cc: Badrikesh Prusty Subject: [PATCH v3] isar-installer: Mount /tmp as tmpfs for read-only boot fix Date: Mon, 16 Jun 2025 05:44:33 -0400 Message-ID: <20250616094433.44736-1-badrikesh.prusty@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328765:519-21489:flowmailer X-Original-Sender: badrikesh.prusty@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=f2l1qWGI; spf=pass (google.com: domain of fm-1328765-20250616094449945e5129fc79974ee7-64fuha@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1328765-20250616094449945e5129fc79974ee7-64FUHA@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Badrikesh Prusty Reply-To: Badrikesh Prusty Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: 4sJvwTfwuEza Fix image installation when isar-image-installer rootfs is booted as read-only by ensuring /tmp is mounted as tmpfs. With the latest isar installer, Bmaptool now creates the /tmp/progress pipe to track and display installation progress in a progress bar. This change utilizes systemd's tmp.mount to mount /tmp as tmpfs. Since systemd versions up to Debian Bookworm ship tmp.mount in /usr/share/systemd/, the file must be copied to a directory where systemctl can enable it. For systemd versions 256.x and newer, tmp.mount is shipped in the appropriate location: /usr/lib/systemd/system/tmp.mount Signed-off-by: Badrikesh Prusty --- .../deploy-image/deploy-image_0.1.bb | 6 ++++-- .../systemd-tmpfs-tmp/files/postinst | 15 +++++++++++++++ .../systemd-tmpfs-tmp/systemd-tmpfs-tmp_0.1.bb | 13 +++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 meta-isar/recipes-installer/systemd-tmpfs-tmp/files/postinst create mode 100644 meta-isar/recipes-installer/systemd-tmpfs-tmp/systemd-tmpfs-tmp_0.1.bb diff --git a/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb index 54e521b5..b287a8d1 100644 --- a/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb +++ b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb @@ -10,8 +10,10 @@ inherit dpkg-raw SRC_URI = "file://usr/bin/deploy-image-wic.sh \ file://usr/lib/deploy-image-wic/handle-config.sh \ " -DEPENDS:bookworm += "bmap-tools" -DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, xz-utils, pbzip2, zstd" + +DEPENDS:append:bookworm = " bmap-tools" +DEPENDS:append = " systemd-tmpfs-tmp" +DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, systemd-tmpfs-tmp, xz-utils, pbzip2, zstd" do_install[cleandirs] = "${D}/usr/bin/ \ ${D}/usr/lib/deploy-image-wic \ " diff --git a/meta-isar/recipes-installer/systemd-tmpfs-tmp/files/postinst b/meta-isar/recipes-installer/systemd-tmpfs-tmp/files/postinst new file mode 100644 index 00000000..cb979303 --- /dev/null +++ b/meta-isar/recipes-installer/systemd-tmpfs-tmp/files/postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +# Enable tmp.mount if /tmp is not configured in /etc/fstab +if ! grep -q '/tmp' /etc/fstab; then + # Ensure tmp.mount exists in systemd path + if [ ! -e /usr/lib/systemd/system/tmp.mount ] && [ ! -e /etc/systemd/system/tmp.mount ]; then + cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount + fi + + # Enable the mount unit using deb-systemd-helper + deb-systemd-helper enable tmp.mount || true +fi + diff --git a/meta-isar/recipes-installer/systemd-tmpfs-tmp/systemd-tmpfs-tmp_0.1.bb b/meta-isar/recipes-installer/systemd-tmpfs-tmp/systemd-tmpfs-tmp_0.1.bb new file mode 100644 index 00000000..c0ab1bcf --- /dev/null +++ b/meta-isar/recipes-installer/systemd-tmpfs-tmp/systemd-tmpfs-tmp_0.1.bb @@ -0,0 +1,13 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2025 +# +# SPDX-License-Identifier: MIT + +inherit dpkg-raw + +DESCRIPTION = "Configures /tmp as systemd-managed temporary filesystem (tmpfs), ensuring read-write access even if rootfs is read-only" +MAINTAINER = "isar-users " + +SRC_URI = "file://postinst" + +DEBIAN_DEPENDS = "systemd" -- 2.39.5 -- 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/20250616094433.44736-1-badrikesh.prusty%40siemens.com.