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; Tue, 13 Aug 2024 12:32:46 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f191.google.com (mail-lj1-f191.google.com [209.85.208.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 47DAWjGI015490 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Aug 2024 12:32:45 +0200 Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-2ef23b417bcsf45714051fa.0 for ; Tue, 13 Aug 2024 03:32:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723545160; cv=pass; d=google.com; s=arc-20160816; b=k8AQbKRfiuWT7QqYMJHi3qmpFL7tcchyn6+8tmPdRIs8ZlGLhIRM8oFDCGz5sGQJKG D4cjoey8Ux0C8EQp6IRciNPEARZgX80mrJ1Y7oqx+0AfUzgsHELuYHdNhkYgzZ3tOPB+ X+CsbFDXa+JfxH+QHJKmXiv6ZoW4sqTA8SavGk548BcRySSCT6n+Exas/SmrJk1K1TXm cz9uNAFG4VhzA7dZzBSdwJCywJHzfMY4DvRbZ62JCOiZ5VFsEgtUvy08HwImoAd2vGOK BBxCrcWVUBv0f5qHu2tR4wiyfZhb9P2wohE3T/xRBB3Lesc5IERc3X3WW/gEO+t8lqMQ DMZg== 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=kjFG2yGKSi3ctuBJZwkHLXsTmxslRTtD0T0gyReDijU=; fh=UgcJ5h8w/HKFz1lrCboNS0f7w5ZNETaRy1Fw1rQZMk8=; b=jXQMnu3nP4/UdC4xJrAADpfld6ntvkL6etHDtFt7LoexHFuMyXzwqqp46jjblLWyDu oE6WWimiO9t9keKxyBgZc7QnNxJPZQnEdKZoicpRuYg4JJ5io0E1uJBcQqY4b4ta+Itb /5209tee73DooWHmHWCQ7lfreMPYIcR0bioSMpO8LAnThRTaevgVPk24beEBTa9bAA4r Ep9igkI0KpFiImDeDJ3c+6BgJK/vYPES6FiaU6oqbqPEpronbikC8h16Y444IdxTT32I 1/qRkdLdyF2cKJXiMHmcvVIuvgHOT/Ehdz8N3zbBb+Q95CoY76luWOhklTR9Dx5Q4sGh G/EQ==; 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=1723545160; x=1724149960; 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=kjFG2yGKSi3ctuBJZwkHLXsTmxslRTtD0T0gyReDijU=; b=HrINFa10zQqjQfj1ykfWGXFcIAhC9ngXoF/nzQyWV1NKSfJooZ66ZMY1Z6flnkEWxl RkDLM4NrMlCMnTnALU8ab8CtObp3Y9QofbGEusqQWLDA0eZkxC/pv83LiQC54EKAV2Qw YlKAYd625cftHkg6x9kbr7eaQWS6k2wWNujxUOomnsLln/GAvAiLFspN6WhLMhRhot21 7n3zXQamjGusz4IskESdWrBcXLXRb/PRheJsq+GC+YQxPPZ523y6fHzYDIyb48wtU48S UcTwODZqoh+cL6V+E5IBeISSYKm8TIA6oNqyzpl0sgdKotJZQ3cLux+J2NvSjkNhCON+ VYGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723545160; x=1724149960; 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=kjFG2yGKSi3ctuBJZwkHLXsTmxslRTtD0T0gyReDijU=; b=mxjmgue8TgSj/ggOYtG/AyqTAbhoymXdUpRMbVtlKuWiPvy3K+x+UWYe4uZ0adJoCl 5go03IBYVBitJAxgzsvBbqz9ehNtdbmjL6YvLFi9o17X/PTCdYiHEE5G83SPZ73lZDpC o+AhXYd8OTrefUFyI/QawWJ/MdzjW0Br/R5sL8QyKaU5j5Vmqn+kTwlfPyCMMkGqqfcz RB4QQEVron1MvOMfxSt9W0ZvcPCTj00A1Il+AuayI4NLPeABDfiyRnMZyb7d/BXxIc1b iU6tphyBiUcFZa1CSeOVXuTLYbgTkQeRd1i7PD0Y/MHndiWoMw+uExOyCYirnZipadGZ /8uw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWezusDMc8qHCD2YmqeioZGjGrhmYNPOjafcoPWNIp7MkUCdM3sNWa+W6xjgtf+XKyVHlFP8CdEcymG9AAz/Q== X-Gm-Message-State: AOJu0YxLaUkAp3p7tTe05P4du9K41hEPr6QRLzW0Oa4mgy+tLa4hzOII EnJV1mHRdTFw1CZ9JzWxEUmGyn4UESbNR7Nyj4OCGKZHNjwlJMDe X-Google-Smtp-Source: AGHT+IE6khwkoMrGBHiZ8KfNNi1x6zqL7sD0s4Y3uBAp9RvHpyC/qnopbSF7qGH7c1SJA9trW+6xAQ== X-Received: by 2002:a2e:a4d6:0:b0:2eb:dd0b:b9ec with SMTP id 38308e7fff4ca-2f2b714bceemr17977601fa.20.1723545158835; Tue, 13 Aug 2024 03:32:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:2246:0:b0:2ee:de96:7d96 with SMTP id 38308e7fff4ca-2f19bc5a8e6ls14876831fa.1.-pod-prod-01-eu; Tue, 13 Aug 2024 03:32:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV51g5asirKU/kvHP/9/mk7ZvPoBUDr8bFMi6amJHtLUbOqFn38H+sI1kF661lddLZPlkknvZdjppVO80kgtIoavu5WvzetbG87ksc= X-Received: by 2002:a2e:b894:0:b0:2ef:2638:48cd with SMTP id 38308e7fff4ca-2f2b7177c80mr27571611fa.30.1723545156157; Tue, 13 Aug 2024 03:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723545156; cv=none; d=google.com; s=arc-20160816; b=p/O0DIwpfBWu6bTcmIGsCUoX/rXf1etJ5TbdtY64WWZCSqa/jpQ1CFym5RvGn6HOSy jXpa7L/V9mmh9z3xSTY62I+uTLSDjwjjK5UkDj9YgwvUg2tEyUnBK7c4twasLT5B2ctC dUiEfDbcoOumiEf809lDoXpNiDJUDe4uHBx4EMgtdEHKoppSIYvWDNMHSB1ETdCtdqcs 3p76IroRw/XEQo0Ee28ZP7FAeeUEYXr9NEpJteRqSrf0BHupG3TMy+AWLYltWjmt2MH/ frYm0LYtqp3SXQU/dFqgn9jAuAw2y7aRRwy9MsrKjE884nnj2wCHWFLalKi+J8B44TO9 ElEA== 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=iskJDJSWJC0lHBzPJuEXBIjLUBR5g0lIXKWer8VJVXU=; fh=KrrmOeEVSZ3n2SBTHoa8+xBqUj9a2BafGDqc0m/ny9w=; b=sgibozA3RYL7yc8iDqupWX1Lju4dKTneEOLwf3txZNge+gNl9luxWcqGkNjk2YlsXA Cp1KCenMZDg6JtJ28uof+hSIj1c1/gPBlLdXZBCIhRDXUH+8VrT+kZrXUGRhgMJMhzeE KQ13YayHfkEn7uJ8bIdGSNXT910Q2PkEQruVh9KpoLfFT627PW2QJ9dP+yehC3bGs8c+ hMRoRD/3XMDHeeVxcZHpyBLeyn/pUEIYRpV78M9YvnxT1QWPpfrng2ccVHZOJX4BF74f WAaEXvirvaQuGovQT7IyJlWKY5XEXoLwGJ9rbvhv7VZvKU+i7MghXvZasgoNqlCiKyQK x/Mg==; 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 38308e7fff4ca-2f29206a39asi1381231fa.8.2024.08.13.03.32.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Aug 2024 03:32:36 -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 47DAWWsM015483 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Aug 2024 12:32:34 +0200 Message-ID: <28a07330fe14dadcf82f32290671ea922ab7150e.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: Tue, 13 Aug 2024 13:32:32 +0300 In-Reply-To: <14ba448c2f93d3aa98cf6326541d62c524c21831.camel@siemens.com> References: <20240725141729.1344298-1-clara.kowalsky@siemens.com> <14ba448c2f93d3aa98cf6326541d62c524c21831.camel@siemens.com> 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: 6LQkJ0OYAdTw 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 > > > | > > > 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 expa= nd-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 The dependency conflict seems to be here: - 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 - systemd-tmpfiles-setup.service=20 After=3Dlocal-fs.target - local-fs.target After=3Dlocal-fs-pre.target > >=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 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/28a07330fe14dadcf82f32290671ea922ab7150e.camel%40ilbers.de.