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, 18 Mar 2025 07:37:29 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-il1-f192.google.com (mail-il1-f192.google.com [209.85.166.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52I6bRLp020276 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 07:37:27 +0100 Received: by mail-il1-f192.google.com with SMTP id e9e14a558f8ab-3ce843b51c3sf149597375ab.0 for ; Mon, 17 Mar 2025 23:37:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742279841; cv=pass; d=google.com; s=arc-20240605; b=Gxm07QilNHpjBwAIZQjbaKz5zRbTSDJ3OKkfFAi2Pj2nGhnluAfcRqfeogy7Qie6Gv scv7t1iRWhopIRaFjaWtw6YZrdDxG7D3KYyo95txoFfOCI4e//ETYkP1dY7jJaoxIJIv YLGCu635h3zgICtfEGPCIEtIVzeXIh9GitmxMqjYzu/u/0C1q61bDSq5glc7cs66lZY9 CdssuN3yBhiClMo3jcU+UQEwOpwPdtczQOKqpn0tPa9XSkRup4kDCKKJX43F7AcTRDm+ GZd2plqaQlrkRs3rNv5385cA9dJQKtePY8mLqX+m5WgTCKgxqDUSRRBeOhLvy1jYRudz +CNw== 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:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=Mgj4WgyXiwYUVhJ5+u8j/e/D0lz17MKpeYl3YazGQ5U=; fh=EN6gRLn5F8oPcycC5sXfidsQlMm6R4Bnnq8JF/AklVY=; b=Ckfo+11bj2IniRFxHhp+45c3bP+lr0xaZednQD2tcyjRsQ165XZ+w6f+6fnWkCWNfz G7nsr30olyWeWlveegysbB+hyBNFSPE7+RF8oUy2W3qgzbUCSIsciEh04KPdXS8/ZMdu DDuBDcmRcjKcHn8yAqeSYRAUQN0T9SAfi8hasIKI2kmuhHqgsGlDuec87QbJefshKyTL Wewkpy8ypnThDUWr/4roVw2mNVGRfCASqqklvY55ab4T/xhLk4XEsXNAYvEbTWXglW9Y 89zu9WaP4PJ6VSkdppdInms+LbhcbvG9hdBLnMGHiu/TwMDsDq4ZVUtBadjQmdW3O5K0 Edqw==; 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=1742279841; x=1742884641; 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=Mgj4WgyXiwYUVhJ5+u8j/e/D0lz17MKpeYl3YazGQ5U=; b=oWYQGMeMxwSHoziz3wAk67PzRvIxRweuh73/04LNgcnkPL9GV4SCG3H2RXce3sqT9r FVNZAOFGDt/hsHkUJvly2jGULEgariNT/26803eLp5q39szWv6IXJiH3qHLfS/AETvnJ uVy54dAnGHJtXa+HaAsntA536h/++XeWM0fk8Vb+PvREJqlEMrnAZB+eOQq1ckTk6u/u cwXZ9ltoAGc+4iYbjvd9bMdTPQbu0RdmGfmXw9ljFx9LOXkPOLOXQh5S7Ff6gTT5ekSz nuMqKrVgQz9P60J6J3lzxCPQgaqYCHguS8qeDtCnQX5Fiv4tNjmEUiXedzrdwTLdpH42 NoGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742279841; x=1742884641; 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=Mgj4WgyXiwYUVhJ5+u8j/e/D0lz17MKpeYl3YazGQ5U=; b=G9Lb3NZ3gIwgMEXnDMjzEDYdSBIQuoTZxEQTtOG9xWWlbTMLnBMjP66k6xMr7qZ69i YjkfwxGKaORsSXpjKrfuXyv1S/X7TagR2TbE8YZ2W1GJ0LqdHeKRSPWFPhvt3kZiXTN9 7+foi/c46i5BhmUPk81fmHnZjzgFgv3xwilZqIubwWDrwak5a0dC+tS7XlJRgbXBqXse B1z/xe9VX0GxLUSb+qjOxU14SbsamsV0TduJH5c7MFRygJ/C3JI+nuqeduLKauqWHI/h ozYTRethfleWfHYAkUXgAEpV8CpVAlWETBl6Aw1in2vD11NLy3THCXLYf661zD/v3MDV J/zw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUAbQH4v3t+r0nzNHEdcFJjNG1WFXMhjTzLnmH5pSTDD3SsfAL4lS9SKoPxMik/8PtPdiyX@ilbers.de X-Gm-Message-State: AOJu0YwZFIvLiFm5iaL2xP8n7A4Nf8YMMaOd4yQWuq2j8KFapvq8vMHc T1EDpCaMUhem5edXs6F1mg/z0FQg4coqrkFe897c8VtYPGiB26T9 X-Google-Smtp-Source: AGHT+IF7MBO2GRpbh+poRnN5bg7bfoleD3l0sJStTGOVKjr+wlSdtqXcqdbfyKdvSVzYaLhzWgkK1A== X-Received: by 2002:a92:cda2:0:b0:3d3:e296:1c1c with SMTP id e9e14a558f8ab-3d57b9c158dmr26498445ab.9.1742279841547; Mon, 17 Mar 2025 23:37:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAI4Hn9P047FPQnUa/tTsZoTbb/W3S3+3X/6tjNxB3rW8Q== Received: by 2002:a92:ca0f:0:b0:3cf:cf0f:7dad with SMTP id e9e14a558f8ab-3d478842d44ls6101695ab.2.-pod-prod-02-us; Mon, 17 Mar 2025 23:37:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUBNYONEfjHxNFOL6RWCSRG2skLIZ1e1RWYY98v4Hk7m7sEad6R9uH58mAkI8/3dCiJcswAP9+RxyPC@googlegroups.com X-Received: by 2002:a05:6602:3a0c:b0:85b:505a:7def with SMTP id ca18e2360f4ac-85e0036a045mr305584339f.6.1742279840469; Mon, 17 Mar 2025 23:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742279840; cv=none; d=google.com; s=arc-20240605; b=lplxgfAGtC2Q5Skhd44QPTMTZwrSbH45q8OU5S8HgNamTPwInrRv7WU+WEH2kJN7i4 PhKZ+2flQ0jNsrixh90I5Q8sskwzIyhia7/derHwoOLO2F5LEFuPOdl/cJ0Pa5EHLkA1 DZsfofMv+FoipKUvF9Fjl7oq158Z+gklQ1bZbyZz948eMvpa214mpMFxi5p+TxDNYHSk zt8gnuEpk4bIg9sHLMYk3U2Eylhs0J+HxBWF2aAuiBZiMT3hr0aWIFWt0DR8mlBUqOTr PWqYbx03BSeKmv8fubLqFxTtvIgfctdgdZN5Cii57D/NUGnKDCNeiWJCXMyT9FvH5zPA yZyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=DvYOVTs3hukAb1VxzI57aSHexZTJajOL/5A5PIYgFmA=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=Bk1xGxtlYhHsW2KwRpLIIcvwVFXGYENhu//s2Y8mOMRyuPXYop5moyAgfVztBIHUsG 9r/iJiG/B8E2e5sJIYDqwb2Hf1w2r23YVVRaewg3YsmgXcEsa6yyS5ajF3DPeexwdlF5 Si+qylNZJY1Jao1+Vzv3+wRkPn/w79prVB1q/WPgZJmugDoqgWcBYk2tah1X5UiBQ+JS 9KbzqLmP+hJUVLAolb2FujagLxhXsTEkHAQOUNO5NLD52gxmnZojw4Bu8WYjGyM00YXf wypGpwk1lAmR7712hWDckrQit/w22Rci+X9z8obHO6e4Tupv5jbJ0SsF4RF4Jxni2hnR WZPQ==; 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 ca18e2360f4ac-85deebb22b5si17161839f.3.2025.03.17.23.37.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Mar 2025 23:37:20 -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 52I6bHtn020265 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Mar 2025 07:37:18 +0100 Message-ID: <5ab461a76bc066f989804803f693d8b836328078.camel@ilbers.de> Subject: Re: [PATCH v2 3/3] installer: Run in unattended mode only on ttyS0 From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Tue, 18 Mar 2025 09:37:17 +0300 In-Reply-To: References: <20250318061300.12805-1-ubely@ilbers.de> <20250318061300.12805-4-ubely@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.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_DNSWL_BLOCKED,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: 8OOoiJCTVUFx On Tue, 2025-03-18 at 07:25 +0100, Jan Kiszka wrote: > On 18.03.25 07:10, Uladzimir Bely wrote: > > This fixes race between two unattended installer instances running > > on serial "ttyS0" and graphic "tty1" terminals. > >=20 > > While one of them starts writing the disk, another one fails > > and schedules reboot in 60 seconds. Depending on build machine > > performance we can get incomplete installation and broken target > > filesystem. > >=20 > > Signed-off-by: Uladzimir Bely > > --- > > =C2=A0.../deploy-image/files/usr/bin/deploy-image-wic.sh=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 6 > > ++++++ > > =C2=A01 file changed, 6 insertions(+) > >=20 > > diff --git a/meta-isar/recipes-installer/deploy- > > image/files/usr/bin/deploy-image-wic.sh b/meta-isar/recipes- > > installer/deploy-image/files/usr/bin/deploy-image-wic.sh > > index 7f552eee..bd580694 100755 > > --- a/meta-isar/recipes-installer/deploy- > > image/files/usr/bin/deploy-image-wic.sh > > +++ b/meta-isar/recipes-installer/deploy- > > image/files/usr/bin/deploy-image-wic.sh > > @@ -10,6 +10,12 @@ SCRIPT_DIR=3D$( dirname -- "$( readlink -f -- > > "$0"; )"; ) > > =C2=A0 > > =C2=A0. ${SCRIPT_DIR}/../lib/deploy-image-wic/handle-config.sh > > =C2=A0 > > +if $installer_unattended; then > > +=C2=A0=C2=A0=C2=A0 if [ "$(tty)" !=3D "/dev/ttyS0" ]; then >=20 > This is wrong. "ttyS0" is target-specific. We need a different, > generic > mechanism to detect multiple executions. >=20 > Jan I agree. But this is also hardcoded in the service recipe, so this generic mechanism should also make change in it. I think, it could be some "main" tty variable defined in the recipe and some additional ttys to run always in "attended" mode. >=20 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "Disable unattended mo= de on $(tty), it's active on > > /dev/ttyS0" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 installer_unattended=3D0 > > +=C2=A0=C2=A0=C2=A0 fi > > +fi > > =C2=A0 > > =C2=A0if ! $installer_unattended; then > > =C2=A0=C2=A0=C2=A0=C2=A0 installer_image_uri=3D$(find "$installdata" -t= ype f -iname > > "*.wic*" -a -not -iname "*.wic.bmap" -exec basename {} \;) >=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 visit https://groups.google.com/d/msgid/isar-users/= 5ab461a76bc066f989804803f693d8b836328078.camel%40ilbers.de.