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; Thu, 15 Aug 2024 06:07:50 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f55.google.com (mail-wr1-f55.google.com [209.85.221.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 47F47n8k025404 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 15 Aug 2024 06:07:49 +0200 Received: by mail-wr1-f55.google.com with SMTP id ffacd0b85a97d-36865706f5esf268050f8f.0 for ; Wed, 14 Aug 2024 21:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723694864; cv=pass; d=google.com; s=arc-20160816; b=yxtjAmfQ13gq3D1RPPAggwp/FybKYamIbKWruK5DCd1uGUK2yE1YZGwDfza8D+O11W veW4AfeltYOWqMKmvqm2kzXUWudfddJmeaH1/wtBSTuGa9J+q1mhmO0q5Rrp6br4Mtd5 imtdp/m53pIOJBDK9DVOyQNEz50HPVc1vpePEV3RHaKlsF+62j1UeVRVBU67ebPJpGPG FoqUHxl1MvSTsXfKZfAQxX9dvFLwUrIS6jhgefW/muBDi04PxntOHwTUT7aURq8gTU13 uVsjx3abAL9fp4dTOhkpdamWwn+uNlteOW+CQ8ADffjdcuLgJwSxMxR+g1KD3G/09P/A vp+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=77TIlfR0BxIs5uNJe45rma9AqD3csXVoDZ6EIxAV41s=; fh=tVvqnsiVPRjQXqtdmXqP66KnLZ3YtnhN4NiV1ZnnOHo=; b=GdbKjooH2rfPg0RugVxiYrhuAsh3VsH5j7bDsTRbx+JUfRpl/v4YS/KR743BWdRwzi z4mvtAbu98GEW8xtB1iM4IGYy0iD80gKdlJrxRbGGjf87pv1j1epXFyx1K259ESCFEIt EMfc9QMi5MS1EiTxbZBmmNb+zSjSQFLFW27LmsvN1iO/mdH4FExwHCagh5L2b+ZRXaXx on0aqCkJSctwa3U5/diZNVK0AR5PGhuObI2jzG8Rluqe3yVjDQ3WPmTQdaxCKL3z7M/l Rn2tum3mD2zkbzKNvsTtz4ggk7NIIlGroYeGc8LxozBejqH7mStmjpIfDBt4GTsGQEBx CLag==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1723694864; x=1724299664; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=77TIlfR0BxIs5uNJe45rma9AqD3csXVoDZ6EIxAV41s=; b=Pxbp3VMGI3FVQ5KL/7YY7+cJzsalmvQp/r9JncKJqQyER9OwrKeS60+d+D2roDv5lI Afbk1R0UuYjzotrp0J5mXAEAq3CQuYNduClE4613s0nK5v3VyL0Ecm2RKslR5gXwOch/ FdNS7ubehhtgocwE+rOv4DyQAo5ARy4WWRGW0TCcb6ItS87ba+8c0xsWeHAHc+Eo1yaz GsVH/2UdLqYC7HowLmMU/zfpZ7Tcahuc59q/lyVXbB7j6ESopj7JGA3ZcQU5Vd5ll61z B/7iYGsALIMF1lYc7hD19SLWEJtRDXsZ9+5kmTpWzXHUNfWwgAusFpXbYKMsGbuAwxrM 1M+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723694864; x=1724299664; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=77TIlfR0BxIs5uNJe45rma9AqD3csXVoDZ6EIxAV41s=; b=XRyyEh4ljtXJ+FEhbGChqdS+46QOBk08A63hexFYJBg1PO/KSO/izIeFIVAukYsLyI j/COHiZgRKMc99Ts6JaWvl9R8stlpB+a2XC1+d67MVONg6d7QmiTbR4etJ6LVPaJc9SK AlekaXpg2BYDxhQrHCF50GrNqTPBXgJnpea+zdMFZW8eTsc+eKL7s6eWdEC6knjvOFz7 eK8Rnv2OVnURaX50QomwnVZhry6pe/jSuvKAh1VDFM0pVRZIHm9+Xlflp7WurlTS0RUi N5vFIPCmfKgI/zBdoYqo8ki5pp7eY8Rl+qE85d0ufq9yAzj2pEK9Wy9MUQBT1aOABcUK BbUQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVZKRZHLzifjR6B45M8RnIOWNZsyH3m8gu76a1eG1wftPHIB0yXycwnTBWe6j2dfnZ6dd4ai+0qnFkWsVDuLQ== X-Gm-Message-State: AOJu0Yz8vDsD/+cbGz0mzk241msgbnJt+NPAPmVxSvyh3nwVZop4pNRO IsnfKeyH//VAUwmHDglvu6jXkJEd7yL8YBw6RFodfEyu98HKBchh X-Google-Smtp-Source: AGHT+IGXpj03oYwYJSEyJXP0ygMwAFqeVAGbynqxhFvlLqH9dnRvhDacEVr1B8fNhlM/l+1ETFHdwg== X-Received: by 2002:a5d:4534:0:b0:371:888d:7aaa with SMTP id ffacd0b85a97d-371888d7bacmr688815f8f.49.1723694863254; Wed, 14 Aug 2024 21:07:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5392:0:b0:368:7a83:35a4 with SMTP id ffacd0b85a97d-371868f3b09ls121533f8f.0.-pod-prod-06-eu; Wed, 14 Aug 2024 21:07:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU7P3SXfdG9iOwg/GF6MhLpF/EgUL2U7xdKmx9T6qyxsNcXu/nK23hK+yNacP+PK4ZJcyEIrhWkGL7vXi5cVW1zD8At0LBupTIeqLs= X-Received: by 2002:a5d:47cf:0:b0:368:3717:10c7 with SMTP id ffacd0b85a97d-3717774a2e7mr4024093f8f.4.1723694861094; Wed, 14 Aug 2024 21:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723694861; cv=none; d=google.com; s=arc-20160816; b=K1RSJxW8ymICSnCxkAHh4EqW2OERD1A0w27u8DyjRmvwlxMBqlp7xjhsjNAsCru+Yd ldkco3i0uY37NNj3I29b4FFlgGuQ7zqfkeE9fIPnP+rGEZUR/jVOFzrj1f3csL2WApN6 S6oJl5+RgUEGAcdSpHR8G0relwYs1imM9WLgYOQPCOUJJFrn5Zz+lGBygJv7EerMa6gI qBk/NKetI2wZS2ub6QGTdNq1ujwOzjk4ArFm/jeEC7UB5D/xd1O9wLDLUhrN4YT7TDnz n9iawG9B5rPmaevUB+vhGaL92KOoRz5SyviPyi3dmxMN8CVj0HzpZS3CWqCSso/AYWtc BxSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=pEKdK9p474h0EY5PHUf3WVp8S8uvAL/hMwKYXanCnoc=; fh=KrrmOeEVSZ3n2SBTHoa8+xBqUj9a2BafGDqc0m/ny9w=; b=ubRphtJdsZ8l3e8tOBJxXiYne88wZmaxII62WddXNF1Fh9BHRGPKJuE3KR4d9LhTRB iLKS4o029B3GPDgQ/MbaN2Grp16/bdF5aSlxxM+5wS/isixF9YyvJiPaXYSjAffCagvJ kKSwNBPJX6l/fUrj1PxyPtt723/rf2HOHaeNM1y3CrGSrx4EmCxWIOjZE83LefqCX2bq joJVNvp7A0kOPz4yuyUp7AXKpSBot/wkt++wqKDOHZeIJQZztkPU9BeGqttMfP6VNNqg TmCiYZbXtvHgSW0lNngsCAdShARPSalSYggVAsiF/4eiekndPi54ZYIjT0j0Me9Zjshm nIiw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-371898d58e8si12551f8f.4.2024.08.14.21.07.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Aug 2024 21:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 47F47cQo025399 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Aug 2024 06:07:39 +0200 Message-ID: <5d23fe9e9adda350f5596f00d7b8bd1eb3c67ed6.camel@ilbers.de> Subject: Re: [PATCH v3] expand-on-first-boot: Ensure that /tmp is writable From: Uladzimir Bely To: "MOESSBAUER, Felix" , "isar-users@googlegroups.com" , "Kowalsky, Clara" Date: Thu, 15 Aug 2024 07:07:37 +0300 In-Reply-To: <28a07330fe14dadcf82f32290671ea922ab7150e.camel@ilbers.de> References: <20240725141729.1344298-1-clara.kowalsky@siemens.com> <14ba448c2f93d3aa98cf6326541d62c524c21831.camel@siemens.com> <28a07330fe14dadcf82f32290671ea922ab7150e.camel@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de 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-TUID: yDDcmGxyqOlm On Tue, 2024-08-13 at 13:32 +0300, Uladzimir Bely wrote: > On Tue, 2024-08-13 at 09:24 +0000, MOESSBAUER, Felix wrote: > > On Tue, 2024-08-13 at 12:17 +0300, Uladzimir Bely wrote: > > > On Thu, 2024-07-25 at 16:17 +0200, 'Clara Kowalsky' via isar- > > > users > > > wrote: > > > > By setting PrivateTmp, a new file system namespace is created > > > > for > > > > this > > > > service and private /tmp//tmp and > > > > /var/tmp//tmp > > > > subdirectories are mounted, which are only used for processes > > > > of > > > > this > > > > namespace. The service unit receives a mount unit dependency > > > > for > > > > all > > > > mounts required to access /tmp and /var/tmp. > > > > This ensures that the /tmp directory is writable for the > > > > service, > > > > as > > > > mktemp is used in expand-last-partition.sh and creates a > > > > temporary > > > > file. > > > >=20 > > > > Signed-off-by: Clara Kowalsky > > > > --- > > > > =C2=A0.../expand-on-first-boot/files/expand-on-first- > > > > boot.service=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > > > >=20 > > > > 1 > > > > + > > > > =C2=A01 file changed, 1 insertion(+) > > > >=20 > > > > 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..8e76998b 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 > > > > @@ -16,6 +16,7 @@ Type=3Doneshot > > > > =C2=A0ExecStart=3D/usr/share/expand-on-first-boot/expand-last- > > > > partition.sh > > > > =C2=A0ExecStartPost=3D-/bin/systemctl disable expand-on-first- > > > > boot.service > > > > =C2=A0ExecStopPost=3D-/bin/systemctl disable expand-on-first- > > > > boot.service > > > > +PrivateTmp=3Dtrue > > > > =C2=A0 > > > > =C2=A0[Install] > > > > =C2=A0WantedBy=3Dsysinit.target > > > > --=20 > > > > 2.45.2 > > > >=20 > > >=20 > > > Hello all. > > >=20 > > > After few days having this patch merged we at least twice faced > > > the > > > issue in CI with running qemuamd64 machine, probably related to > > > the > > > applied patch. > > >=20 > > > Error message is "ERROR| No resize output while expected". E.g., > > > there > > > is no btrfs resize output in VM boot log. > > >=20 > > > The reason of non-running expand-on-first-boot serivce is: > > >=20 > > > ``` > > > [=C2=A0=C2=A0=C2=A0 5.578636] systemd[1]: local-fs-pre.target: Job ex= pand-on- > > > first- > > > boot.service/start deleted to break ordering cycle starting with > > > local- > > > fs-pre.target/start > > > ``` > >=20 > > Interesting, I observed this same issue as well, but thought it > > comes > > from a downstream part. You're right, this cannot work: > >=20 > > Citing systemd.exec: > >=20 > > Similarly, units with PrivateTmp=3D enabled automatically get mount > > unit > > dependencies for all mounts required to access /tmp/ and /var/tmp/. > > They will also gain an automatic After=3D dependency on systemd- > > tmpfiles- > > setup.service(8).=20 > >=20 > > If /var is the partition to be resized, this will break. > >=20 > > Felix > >=20 >=20 > The dependency conflict seems to be here: >=20 > - expand-on-first-boot.service > Before=3Dlocal-fs-pre.target > PrivateTmp=3Dtrue # This means implicit "After=3Dsystemd-tmpfiles- > setup.service" dependency0, according to=20 > https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html >=20 > - systemd-tmpfiles-setup.service=20 > After=3Dlocal-fs.target >=20 > - local-fs.target > After=3Dlocal-fs-pre.target >=20 >=20 Finally, does this all mean we need to revert this v3 patch and get back to "[PATCH v2] expand-on-first-boot: Add /tmp to ConditionPathIsReadWrite" variant? > > >=20 > > > I'm currently debugging the issue, but for now I'll attach two > > > logs > > > when the same image was run twice - with and without an error. > > >=20 > > > Maybe someone have some ideas about the issue. > > >=20 > > > Actually, in case expand-on-first-boot runs OK, there is another > > > target > > > systemd disables: > > >=20 > > > ``` > > > [=C2=A0=C2=A0=C2=A0 5.507289] systemd[1]: local-fs.target: Job local-= fs- > > > pre.target/start deleted to break ordering cycle starting with > > > local- > > > fs.target/start > > > ``` > > >=20 > > > --=20 > > > Best regards, > > > Uladzimir. > > >=20 > >=20 > > --=20 > > Siemens AG, Technology > > Linux Expert Center > >=20 > >=20 >=20 > --=20 > Best regards, > Uladzimir. >=20 --=20 Best regards, Uladzimir. --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/5d23fe9e9adda350f5596f00d7b8bd1eb3c67ed6.camel%40ilbers.de.