From patchwork Tue Mar 18 14:02:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 4109 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 15:06:40 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f184.google.com (mail-qt1-f184.google.com [209.85.160.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52IE6cxC022633 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:39 +0100 Received: by mail-qt1-f184.google.com with SMTP id d75a77b69052e-4768f9fea35sf149392711cf.2 for ; Tue, 18 Mar 2025 07:06:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742306793; cv=pass; d=google.com; s=arc-20240605; b=ZPNcIzUrUDNFIkeXIhF8f+Sojs5Q4kdAdnKeRtbHeKVmJkQuyWo/B+oTzpKLTS/gny 4RKUcWZ2xHT6O2cglIbTcfSYNJEcprNbj179V46auHyq0gBCO/FeevCuEyPBxizn1XR0 G/OIatF+w6uM6O12gQmZO4reC2/497rHMkVL8uPWlmmYfg15KTus57TX0npNtJD6tEcb DE+eRoeReHvquYksqr8t5GeLkTuoItEAplRPmYtiez1UKWhuqit/W3JSpOcbj6kNihm1 R4go4sxMxIrpeSwZywb2GpGRjXaluPtmeOSi+QUP2oEqthmhXMA8ZbtwBtG7rmRGFRoN KK3Q== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=YJxGEg7G4Azqb1RmaonJa3Gh4sVsSwlMBWbG/vBTMzM=; fh=1zEF1W0RUGFFvefQ/HwnXoydlSH16fAOuUYvQAubzbY=; b=SKLvF2vWjBGJfhBHNikeixx5HHHDToHMtq3O3XIEgksfRSrcoHD+mjN/D7mLK1Zudx MOfe1o0zvb05ytpBQa2WAsbMdfh3OtA4UBjCTgzb1rtbs8QJGJA9BxZHwPPdAEEIXVP3 ouAVAWCmFpIaJCwMxPUIWK8sLB+YrcqgD1yzCu0PbDhRYg1Yo1VyHxJ2UFuiy3q9+DRC 8jN+S0+Rm4e93KnS3JO9365QkP1LVLGvRi7WqoCC//2nelHaRFo4KODhb3ixjLRnE/fQ WxRhHRViTommkOl285o5Ar//1lOHwhg4xfGM+SGUcLgEYcEN0NtWUwl9pbjL056d5ZEF OXSA==; darn=isar-build.org 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=1742306793; x=1742911593; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=YJxGEg7G4Azqb1RmaonJa3Gh4sVsSwlMBWbG/vBTMzM=; b=tVrJWdnzg7ye512oqGqqOQny10k0o0MeNJXYXaq6qrKeReRY4lwQIq8pGoouXe2uxr MONLLiHmGAysS+00efMKR+LlAHLaqfOAalu2O6TSowrOlO/BWf6xXKnY0qy6ivmH3N9l ha4MgMDx3+NRECO1GALL4BuXLFitTYLwEKLYebTY2i160QodIFjYR8t6gujHKqzoAcNi DUV7dAHCL+poS/rR7JqP5CmfQHmInuYDdoELPIKctgHg1SB4hCp3mriBOmwkX8VszGZ0 xaFxwr5wa4tFfa38yINtPXLLUjHn4SYDTn17wIhG/F4H/Tm/b72Rw/u9n30NHA96AqKx W9PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742306793; x=1742911593; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=YJxGEg7G4Azqb1RmaonJa3Gh4sVsSwlMBWbG/vBTMzM=; b=tYf4SRdUFMuUiB2y7yGhtDajTaeCBFrmC2VNkTqd9LV+YRRj6KBg133aE4Gt4C/Jir TBiZiJEOTChKlXhiXU2xy5WDWTYxtADQBztZTze8Q2StctMRBXsmgfJbbGpXjb+lLTKm WYfrkB0bDbTuW5dJZRrxNScI9b7C79ppfm3wq4hQ/pjNlTEfaq04Osc3xiK1V4fl6+FH /75hcx1o7hkoG17LPVViRcl4Wxy6ao7pYNZusRFORUB8U+afR55WvNDv/en3zKtQkox8 ZhbBW8k4FwhiQMD3KH+SbwNCpS15p2Wdt4Lf8kioP/VFVB/ZesIuk/j4J8SsVSPBV0uV dg6Q== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWt6p49l8AbAOzaMZW70wizuvAQgcjGzV4qUV47OweJtOJBDQdzxxCGPQH6uPbiP/ogSPptZds=@isar-build.org X-Gm-Message-State: AOJu0YxKTk1X3j7+Lspt6ZqQaARG54e4vouythm6Tyfm2liBVbnfwFtr uH2QVqeq0C94ILn6Az7BNuDQiAvPCgGKsSSqdCU797ex5sryP3hY X-Google-Smtp-Source: AGHT+IEQnE5Cebv4XLhzpg0V38imlEur7PjBO0u6z1+g5Hiuf0XwFOjmoTS2BK5eumbof3HBEGsUng== X-Received: by 2002:a05:622a:1823:b0:476:8028:71d3 with SMTP id d75a77b69052e-476c8129818mr263990911cf.3.1742306793150; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAK4eGXpOdYJHhOc3KRDezm4XFVKsmhMQLJm5gGdyPnGCQ== Received: by 2002:ac8:710b:0:b0:476:7b88:fd1b with SMTP id d75a77b69052e-476b7dce12bls6238601cf.2.-pod-prod-06-us; Tue, 18 Mar 2025 07:06:32 -0700 (PDT) X-Received: by 2002:a05:620a:1a8f:b0:7c5:a2f8:e6e4 with SMTP id af79cd13be357-7c5a2f8e759mr147777685a.29.1742306792186; Tue, 18 Mar 2025 07:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742306792; cv=none; d=google.com; s=arc-20240605; b=EZ9X4owQLuumwSynTkli1BCdNlLnt4q34gSLecNcqBFeyfWZNPPRbpqoNwHT0cqy6j LS+TnW3zGHuTlECas2g0x3tm3Y9gJpKd5gBx/NrcOQX6R6wS4/zTeYOYKmIMJtYr4I2f 2zhRsRDiqBAbs+zvimmKuJV51LaQvGZxRnCe/yDWanOwqVKj9/amOC5YMdqc+Uv0jhT1 AE3BO6szRncX9c/wSTXuTfPII/ECgT97ran3q6ML278oSmivkm32bkORMO+4msedTG71 EdQk0HmhZlT6eKir5QsElLZIYLy5v/IPyXe9n/N/2HOF/b4lQw6vNf5VV11JNdZ9KfT+ LD9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=YSGV59RY0JlQ7CGtjOr9prYO0UbXC+lJAoXx4BZwFwE=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=VAidd6p0vzhptGRBGamWEngu+2UB3/+c6maMfTKlOqub/VFqNCXrYN8qcBuT1PYwWS J6/Nlp1rbyg7Z9nLyXBMXT4izSX1GzhPeSHaiy8aF0zQEg2K0+X1WmVHUqrgkoklZ5tz rKA6gfb+aBRs0PpkVndL/14GqwVM6b/4Q3ELPhz1j+afZwNMbs2tRw01RKAFbuuTycGX 241puEMZRG0R9O3C5BhIHeVjRgQIDfadyZjn4CE7TywqjUXAPBl74nyfOYPu5KqYUMSU qpBHHGly6c4HbYpbaV5jobhn1rOCw8G9p9DGBjQ0RgXJWnMxk9IcmBPlKwm9lv3pAscT kHjA==; 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 af79cd13be357-7c573c20584si56076785a.5.2025.03.18.07.06.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Mar 2025 07:06:32 -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 hp15.localdomain (mm-54-5-214-37.mogilev.dynamic.pppoe.byfly.by [37.214.5.54]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 52IE6S2k022611 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:30 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 1/4] meta-isar: Use to_boolean for INSTALLER_UNATTENDED variable Date: Tue, 18 Mar 2025 17:02:14 +0300 Message-ID: <20250318140622.13676-2-ubely@ilbers.de> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250318140622.13676-1-ubely@ilbers.de> References: <20250318140622.13676-1-ubely@ilbers.de> 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_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-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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Existing implementation treated INSTALLER_UNATTENDED = "0" like it was enabled. See also commit 29bb5a5c. Signed-off-by: Uladzimir Bely --- meta-isar/recipes-core/images/isar-image-installer.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb b/meta-isar/recipes-core/images/isar-image-installer.bb index ee04bb41..db379f5d 100644 --- a/meta-isar/recipes-core/images/isar-image-installer.bb +++ b/meta-isar/recipes-core/images/isar-image-installer.bb @@ -13,7 +13,7 @@ WKS_FILE = "${INSTALLER_WKS_FILE}" ADDITIONAL_KERNEL_CMDLINE ??= "" -OVERRIDES .= "${@':unattended-installer' if d.getVar('INSTALLER_UNATTENDED') else ''}" +OVERRIDES .= "${@':unattended-installer' if bb.utils.to_boolean(d.getVar('INSTALLER_UNATTENDED')) else ''}" ADDITIONAL_KERNEL_CMDLINE:append:unattended-installer = " \ installer.unattended \ installer.image.uri=/install/${IMAGE_DATA_FILE}.${IMAGE_DATA_POSTFIX} \ From patchwork Tue Mar 18 14:02:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 4110 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 15:06:42 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-il1-f191.google.com (mail-il1-f191.google.com [209.85.166.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52IE6eD0022661 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:41 +0100 Received: by mail-il1-f191.google.com with SMTP id e9e14a558f8ab-3d2b3882febsf48344055ab.1 for ; Tue, 18 Mar 2025 07:06:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742306794; cv=pass; d=google.com; s=arc-20240605; b=keuurpcSfMTrXshGEDUYMt1rf+vgM7Pq4n3uUwH+1tcfHwvM3uAT44EFsCDHrfQHdv iMiB+ZcpbJF6i/G3jzuK9wmqVemW8oZCSZxEL9V6Koo38Nwqz0YdEc55Css/+skk+qOQ XqLJR+BkfwZEIS/Q4tFu4+f6LGcdX8dZ0lTWwin8oLBCeE0dC6l9RGCdZd3YkYyaxtXy 8KfoPl3+3TFPBqJJ2pFjNhpudPlKAn+JV936VU7eP1FuVG6viQQKge7GhDBrA92/auzM S7Bdc/XhajCDogsqp2zho9jI6tutOuAnsrUpRx4t+cCHA1T0uCOsWN7iBlD+ToDDeGIS HCKg== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=L9MGGVxhTfTBPi+nwLmFKF1EjsDK0CGKk1IVxRWjlaE=; fh=yOAPaxDadvMVAXt+2o4k1/9ZLECxLSghV5lNLkCgYgo=; b=hq1KT1tOxmQ3RV4ZZeZBhbbYcZ8DY0l29e2rZJK+roDfDiZ313gV1phhlBF6SEm3po YXjfQPe61NmDOeLj9gzwYSinkk2mWUMDp2KwTwcbLZqJDJODygLD0mR8QhpJp4iqmKIJ ohS8fpVEhjB4kY1hlkPbr+K9em+wj+BvPNwltcWqZ2fh/YbdZG+Sd7wxuWHBKinXEOB7 Lq9D3CH81hclcs97EbFcz5BQ+PbxcvuYStH4shYwcFMY5ByrshQuND9Of7crugIZZoc8 t/incAD4g7J+OiomJYlRLj+j3whDijNBb3WSWDdwrTsgYXhzj+BtAuFx0fwWXh4jBIvB wr8w==; darn=isar-build.org 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=1742306794; x=1742911594; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=L9MGGVxhTfTBPi+nwLmFKF1EjsDK0CGKk1IVxRWjlaE=; b=HSUBMxb1HmIaAy/Vu/rwoKddJGAogM7GtiOJV1OPFV9tEhqUVHACabnynifgyb2CEC 79ZRr1540MgSgpoqKd0wgDuAqxLHMSxqvoUO3GihrbhnCOJO2nHT1TQlls7/2kkg3MXj Xk8plbjxLCYjxMU+Aal8p1M+xnmdzShbF5weFH3IJKte/6FYVisK090whb9KThuWZWsx 8PpZvm75H+R+xgvw1LpstmlIvRLkeUg6iQQiSvHCa7D0PDwpgvQuDtEdLLhCHHAH5h/U YxzZszIy0sKDZtFZpEdxWpkEJif25W08+hDL3FGnPrRmTVpcopsuf6KmhjP6iau14i7K +3DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742306794; x=1742911594; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=L9MGGVxhTfTBPi+nwLmFKF1EjsDK0CGKk1IVxRWjlaE=; b=vB/hMOPN0z6qlfodew8pfi+6yHZCP0sNhm1LS+AsPaooPs+dolNMqq4ewldpLLcBW/ 7tRI1m07ZNJ91uP5SrxE5Jk6awIO8f4pkHIL4lxbdtDitJF9Sv+8/RFAqmO76RH5He/g SFBL4IoJAE4qFEd3DJs7tF31/A7LWHrESgpWAO2gSZpMu31IwQi9c0QnJ/IEiPo3DwSw ISIMegXPTbJKTUXuxYzD1JUfcCWJZKcOHmtbTrjW9rHmUe3gzrnKK2p/sONXy3o9XLvj iDte4YrMiBw4xnrfxk7gNKaoi7g8k+wwWGU2yLILbcsx7v6I1/q1Mr14+0GG2tvJm0d4 oixw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWVNWdZYmoTYMRMCPxEYPSXJ7tohgLrl7gGXpEB5ciOsxyKM+OMcXFc0clSHTB8AuuEAr1CQC4=@isar-build.org X-Gm-Message-State: AOJu0Yww3oyTGgEx9WaGTAATdOqNMeOLZdd4Xb2E1yIawPmIGbHkcCyi CU73Jv/XEOAhoZknDVRiH8lGUeh+cfmHSQJifEa6n7OkEXhkxaiK X-Google-Smtp-Source: AGHT+IEMtZgb8eMVokk32LFOsDBxAo6am+lsm5baIRYYrABjdbYJI2TgSwKJ4mqBRe9Tpib2XIXNjQ== X-Received: by 2002:a05:6e02:b41:b0:3d4:4134:521a with SMTP id e9e14a558f8ab-3d483a2b1ecmr156441525ab.12.1742306793866; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPALEEsyDAVRSHJYWc2+rsZYlblhKkUMPCx00pKDgqMxsYQ== Received: by 2002:a05:6e02:180b:b0:3d3:e25e:e66d with SMTP id e9e14a558f8ab-3d478824f82ls3539605ab.1.-pod-prod-04-us; Tue, 18 Mar 2025 07:06:32 -0700 (PDT) X-Received: by 2002:a05:6602:4084:b0:85b:59f3:2ed3 with SMTP id ca18e2360f4ac-85dc4832c03mr1900949339f.8.1742306792604; Tue, 18 Mar 2025 07:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742306792; cv=none; d=google.com; s=arc-20240605; b=WGHU+Zs7pcibXVmlSNS3DKxMCJPKQEaWdQnGqjVSR3Eid6h3+gKw+iWAAtLLrcmt4Q /nCuwPFEzZlXP9E0LjBLkWrn8ikzgHfUGQgmK682IaTY4JyzStmNQMLhMAkW8fJGbIQD f3pzvLnKzApBTsxWFoZ5c6AeqEWO1thBPWeiu07Y5Zh5nWYTqf2Xqh7agIS9B3sVPeof 1Pyrs7iXcX0VKGcv3ih7B1r6vGpGiiwpojx0XlO+unHVewFVzs/5j+xEjDKP1SbVwBPI oVcegDSyeKSCDOaDi8Y2+Lfwq8f+qnZ1eg2fH1LiMG1Zz/r30w0OdXViRSKttNT+XDcY H86A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=c0keneesWELs/MDTvsMdX2efUngLyPE7+0JAtFV8gGQ=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=WWaB4aK7JkO6x3saBt3qZvo8+fD9RR3mms/5EDIasXm6koxM2tHYofLs8c1AMXbgk5 ICBPQh5+78u/ca83wR7Q8j6+HAeBmPjmAqnLA9TMz4uJgEgc93ff9ljTARfiZzABj3CJ LiAWqVnQg758p2d9taGssJ53M/z6LDBLUlR/qSOuRFqXiK6S8+fklq/ytqNK3cvhC3xr Za3bKP0JN87Nog2XQGCLjxLOnPtNUvOX9TWS2Snvt3lDZdH7eIpnHYqN0pwJIsJkrr2n ryZ2S6QFCjP7hNU16ToiZ/jaG2gSBbf4o9Ojcw0g/UdfIGBOt4qaqtR3qsrj2+uN5Xp3 64Dg==; 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 8926c6da1cb9f-4f2637ff63csi492578173.4.2025.03.18.07.06.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Mar 2025 07:06:32 -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 hp15.localdomain (mm-54-5-214-37.mogilev.dynamic.pppoe.byfly.by [37.214.5.54]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 52IE6S2l022611 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:30 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 2/4] testsuite: Disable "snapshot" feature for installer image. Date: Tue, 18 Mar 2025 17:02:15 +0300 Message-ID: <20250318140622.13676-3-ubely@ilbers.de> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250318140622.13676-1-ubely@ilbers.de> References: <20250318140622.13676-1-ubely@ilbers.de> 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= In the testsuite we use qemu-system with "-shapshot" optiop with wic images thus preventing them from unwanted modification by tests. For installer.wic it's reasonable to disable this feature so that bmaptool will write directly to "installer.wic" instead of temporary file used by qemu for providing snapshot features. It also allows to mount it after build for debugging purposes. --- testsuite/cibuilder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 52eb35e8..eb5de190 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -236,7 +236,8 @@ class CIBuilder(Test): f.write(f'DISTRO ?= "{installer_distro}"\n') f.write(f'MACHINE ?= "{installer_machine}"\n') f.write(f'QEMU_DISK_ARGS = "-bios /usr/share/ovmf/OVMF.fd"\n') - f.write(f'QEMU_DISK_ARGS += "-hda {install_target}"\n') + f.write(f'QEMU_DISK_ARGS += "-drive file={install_target},'\ + 'if=ide,bus=0,unit=0,format=raw,snapshot=off"\n') f.write(f'QEMU_DISK_ARGS += "-hdb ##ROOTFS_IMAGE##"\n') # include ci_build.conf in local.conf From patchwork Tue Mar 18 14:02:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 4111 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 15:06:42 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ot1-f61.google.com (mail-ot1-f61.google.com [209.85.210.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52IE6fV9022670 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:41 +0100 Received: by mail-ot1-f61.google.com with SMTP id 46e09a7af769-72a2bc82f9bsf1525061a34.3 for ; Tue, 18 Mar 2025 07:06:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742306794; cv=pass; d=google.com; s=arc-20240605; b=D7VNY5vK0za9EJlP6vILOqaTz9BB8liuqf46wmnE/yt5+MQ47456DGLG7/hpEeeu5R BXL5pRFbieN9LuPJnuIKnm1rYy9i7/PlSU5ZQzhe+MZ3WXaLlZEWibUgIUvAJdmdp8TS pdr6JtPA5ECpPHR6mGgONx51AFBtcg6s9imHv2iH02VN4KS7Us8bTBcg0d82yHm9iZqP wUZMKRlb87dW5HvVbRqfwMhQD1HGbIvdGI0f7UuJx4dKFuGgPDWiJapaWVWecVlVKMlV JNkNViRMEKei1ifhMyVNStQGCXiqZM0DGiWKSOvksFsnlawkjW5LyeJBKSbNH2lw/zvA NH0w== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=qbnYusDk9zYHxzyyLfhwosGrUv5l5Jri7WrSCI5ASac=; fh=o1ndrS7Y0xIBeU19uw6L1cG2sXw/FfFNVqheS5Zge2M=; b=Ys307VKZHZWuAs+VdAPAkOTdNBeumMyeKoCRJfwBZ+Qutnvmh7Z2p6jgOJQ4tKBgBT lB1LYZqJr8H9DFYZPHoKqrm36/MQqzS8e81VEMbMoYy3q9r4ozlPJfjvqQneXNKdAFoy TcIVa4S1guX0k8EM6JqA0W+8AFuzjA7M7uav6Z9zXBaOS3dPVxiJxHIu9e3zmX2j7pV1 lSwO3QoYSgjJyFsAOqXLFJSeQUWPbstgbsYhCoGZrkI2RYTbfVfEDDJD67koQWJIiWrE x7MKapXK74rMjTY9ITi7aJqOCzhJf3+T4dK/hl3vmQ6vvy4Bc77gUuZPnFmeH//z0srP o47w==; darn=isar-build.org 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=1742306794; x=1742911594; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=qbnYusDk9zYHxzyyLfhwosGrUv5l5Jri7WrSCI5ASac=; b=biRIgb8LQAbLALTqhN/zXM9sCblo+o5nj5363XFTSHos35HdmyDUUBjOT8t8H5kr+G a/Ok8OBwSN9zn/76JFrSRzm7ak1q30qXQBI4nsP9vTuoWzEINidcoP+FrhWzH7ufQ1h7 2lree6bvfmcmBBZqtX9QIlZp+kVeWTm9B4cJzQGM8ClOu7/aAp9xcJOxn4FCGwSBnZpF wJdttpGRrlJPQ7CvdthRYKeHqI5ki9WTdcb2qcpKxpPoPzvrd9qajtHao1DA98e+qEQt TKcZAIChE4YKxRe9OmvN8Q5NuExI6jrLrowvySDXV0nGg4BzU1flSTvloBVPjdVW2PMN Kkhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742306794; x=1742911594; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=qbnYusDk9zYHxzyyLfhwosGrUv5l5Jri7WrSCI5ASac=; b=lEhMB+p3h+V/P3zwE6axxnDUQB+fDM6zBRxG+CvofVwruDR87i/80Z73Lz71zz69qa hLojp0lryYcTesnwPA5dznxowmXojlOdtF4fFo8xiMFBXS/3giZY2U54HLFf20aNzaw3 NtOu1Ex3RPD75Ox8Bfh7qLYRGy0ZBPNzOXENowEUSBd7SBuf88OkU2LxCwnrsbGe+IqS L5Fpn8ibF8ThCCfW3ntOISvzREVSax3frswLlOuRCwAk/L9mdGJD46Hm3q/VKzZro0ve KFUBEBvizkLkQog5iHKM/Tg9blnVPllHEfwATCaB3cZe4HhAPuUa5PDAQ6BGQS7JnkAd 44bw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVUestCiH0y3cLjUd9cgL9r1v3GjvD69jYTTXr0pESS6rNFnrWIkgcblxEjsrvu9Scn8XsoF7s=@isar-build.org X-Gm-Message-State: AOJu0YxNi6+7o4EPjXrj9Yn1QMvpsCMPAZXYna8j46UqkXxt+xI6b4k+ 5Td/GHl4cdxScvjeXRCDqREhAIpaUEGIkMizdPa2nNIG5vEjJzyy X-Google-Smtp-Source: AGHT+IF/b5Z8tMk3pLy5JZkU4RtokqjObcGP/qsHYUuBe0Dj6i/uGvK9c40oddq8pm0OME40uOWi2w== X-Received: by 2002:a05:6830:b88:b0:72b:93df:9213 with SMTP id 46e09a7af769-72bbc2369fcmr9643068a34.10.1742306794221; Tue, 18 Mar 2025 07:06:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAKRNE4DIy+8V7c0R0GGrKtLr7H2JZwHs0aEpjCw2C10dw== Received: by 2002:a4a:dbcc:0:b0:601:956e:7b5 with SMTP id 006d021491bc7-601d87d9766ls1221860eaf.0.-pod-prod-06-us; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) X-Received: by 2002:a05:6808:218e:b0:3fb:bc53:d292 with SMTP id 5614622812f47-3fdeed0d805mr9795907b6e.19.1742306793109; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742306793; cv=none; d=google.com; s=arc-20240605; b=cvOXoU+31ra/W6oRU0hhMdHUvDP330iQAMe5aJsxFJDw45XyI0MNCfY5+rqJqT6xvN ddc7QidhAsYfmbu6ba4BbumIN+KDzgDh1pvny5+/RbiCEA0yKGF2CGPrEmbNT4JzCkMs N7mgPEutW3H/KjLnAN21K4xauR5h4vNa8Jq9ljrDgFOEn/WzGzSDAU4GZFsVqhyQ5MEw 3GFxvyy/HB7vbYidl6vs2DGGOVPBy+2tcEYCVGBvCZGSFuBJZp+PCP9lBeAWMFAvZrTI zvkFG2aXOc3oy0fc/t8pMV4/fGvuYdXtG+qjo4veD27l9mQL54TIRJgxvdYmYXU/rpSH fQeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=gdRkBwIaGDvbvvk3kAtBD2l8JpSSP/mNaXl9+dIsMlo=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=llA0kpKhq5XqN+mJSaW+ls0uZJLn5MdZsP2vIsRh5jEV427IZPR+aAGsBbhzuwpVO4 peu4uvxuEbGzs0QqGbuYYq+DJDsm3oQohP1lxRmp5u90wfKTetFAOnH++qEzk1Mkjlwv YBVTCiKugNrWCjFUIYSLolDl0ZERvjp+KxSSI5+vpy2887c8zHtQxzKmg2kpPYuAdD/q KOXlwpmKfUdSdMBRRDKMwZk7GG+dmKqM5h9jzyQ+CGLqgBL6n0gmNLle2RUTFBiAe8Rk QbyD/4LGuyfnH5hrBh2xbod0B10/ApPsNGfitPez/g8wOCGy1q4/OXf2XqVosOUqTffX 5eTg==; 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 5614622812f47-3fcd5df4578si560514b6e.4.2025.03.18.07.06.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Mar 2025 07:06:33 -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 hp15.localdomain (mm-54-5-214-37.mogilev.dynamic.pppoe.byfly.by [37.214.5.54]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 52IE6S2m022611 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:31 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 3/4] Installer: allow to set custom TTYs for installer Date: Tue, 18 Mar 2025 17:02:16 +0300 Message-ID: <20250318140622.13676-4-ubely@ilbers.de> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250318140622.13676-1-ubely@ilbers.de> References: <20250318140622.13676-1-ubely@ilbers.de> 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_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-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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Different machines may use different terminals we want to run installer on. Allow this to be set in local.conf via INSTALLER_GETTY_TARGETS variables. Signed-off-by: Uladzimir Bely --- .../deploy-image-service/deploy-image-service.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta-isar/recipes-installer/deploy-image-service/deploy-image-service.bb b/meta-isar/recipes-installer/deploy-image-service/deploy-image-service.bb index 0fa3dcf3..fbcfbbfa 100644 --- a/meta-isar/recipes-installer/deploy-image-service/deploy-image-service.bb +++ b/meta-isar/recipes-installer/deploy-image-service/deploy-image-service.bb @@ -13,9 +13,14 @@ SRC_URI = "file://install.override.conf \ DEPENDS += " deploy-image" DEBIAN_DEPENDS = "deploy-image" +INSTALLER_GETTY_TARGETS ?= "getty@tty1 serial-getty@ttyS0" + do_install[cleandirs] = "${D}/usr/lib/systemd/system/getty@tty1.service.d/ \ ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/" do_install() { - install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/getty@tty1.service.d/override.conf - install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/serial-getty@ttyS0.service.d/override.conf + for target in ${INSTALLER_GETTY_TARGETS}; do + rm -rf ${D}/usr/lib/systemd/system/${target}.service.d/* + install -d -m 0700 ${D}/usr/lib/systemd/system/${target}.service.d/ + install -m 0600 ${WORKDIR}/install.override.conf ${D}/usr/lib/systemd/system/${target}.service.d/ + done } From patchwork Tue Mar 18 14:02:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 4112 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 15:06:43 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-yb1-f188.google.com (mail-yb1-f188.google.com [209.85.219.188]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52IE6fHo022681 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:42 +0100 Received: by mail-yb1-f188.google.com with SMTP id 3f1490d57ef6-e6372bafb8asf6807749276.1 for ; Tue, 18 Mar 2025 07:06:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742306795; cv=pass; d=google.com; s=arc-20240605; b=CKM57UUtMZMmDUQQpN+OCYzAbr3IZZ9Ub6Z38moyefZKiWySo7TVUD2/gqkEX6U4c7 SgkhYIeAUF6iZlMZg3vV/jlkmWrrPK0SFPU9C7acdl1pad5+n1ThOMJaYf4exuXipHdK Ln3VUOPYPfYnW/MidHq+W31eGk+3j0lEfwnNcp+xnZLVTwm5pEOK0ERHIqyBxd4jDj3f 9cqLbGxPkw7ooS9x5xM5FlbltIKctLOk+sgdDpsEsmhCWkabdswTskqf38mv7/obbhez VUxXEXXjulbmvVZJF4fpCHc3Eix3aU74NRxlJuI5UcyARu1MiyJ3JVbamaSJL+q6YpCQ I7vw== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=9DyrReUsUCZdnVj/3Il1GIIvku4ebTRZ4ky3K1YjWmU=; fh=0h0q0cE1qGlfETPVXjan9C7YTVQkiP/fnklaoIJnZY0=; b=IK9bUxipkKo7vcDMRgr2ZJEInMr9377ZfeofEirHSleKpS3QK/uo6NZ447x/uA6ZC4 x+q/RDhvmI4fQkK8XdastO3Z1U3BBrpZ53V2c3JrWWTER8RmCe+8u06yMxd/wD0oajuE p/O9AVj08R5vxKOKtm36PNBjD4qrwowubcuRGfNRJ4pWQsErCIt0VAvLJ7Zw9jP92OmP 3WNxG6O2qcob3krai+u3+oLL5p+lJEr5oixPvjST+qzN0SBVVs//F+wkHhTPHSZdRDrD d+k3rtzVasgd+pDlBsJWDGS+OLk8vrP+AvikL+SZZRx8YadY1xW4wGFPXgVA6Rf70p8d ujYQ==; darn=isar-build.org 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=1742306795; x=1742911595; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=9DyrReUsUCZdnVj/3Il1GIIvku4ebTRZ4ky3K1YjWmU=; b=cmUq7LRxBFc3u66PKdALxrDDPfHyF7rpCmrc8JJ9JjonmbteZR7BEvw5oDmYjdnLUQ G72v2HJ6TTnFs9FO1VrJhCNokhoSN4m41C+HywLdW5vcIshZqCHSJs7S8VUJ2m262ads l7mee+Qixidr/gk1zEf44p11nZveln6r24mAMi6sT0SMNr0DmEjUTVCpfKBz8jGLDGux SfO33oeuM8jDhmn+RP85iAIel1cEvE/fgjrcyT3ier6AiLE/aFVYsTPhE4r9o5Fimaqo yZkAqZ2JquGlZh2si9k6AZsWNIo76KpXUuw4jqeS/PjVLvak4fJBsNz2Fh9Fm+NOhqy+ vHcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742306795; x=1742911595; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=9DyrReUsUCZdnVj/3Il1GIIvku4ebTRZ4ky3K1YjWmU=; b=wJH9omzJ6TrBIBToYyCQK4P53V0Zdb6WMei5OXBIa5l1wzDtKkePLOH+Aycfqk/Omp fPSaOeBh2ws5PAmHAsgCgpSdHjBIaBR1mq54uR1dWlWbW5jcsLmCAf5MumTsZJJInvXe 1scD+uPV2xFblKp6ameV98DCNckh8lo4l2OGu78/A5BxjRIExl+rOHqwR8YEow/c3tbu YHx6UXQYy2IExGb7oHIJwP8wEh6vAtwJKN0dS/LGqZwVnYwMAG8aZGLVLnvGgrwZrOmf AXW0SeSWd2gmNrRniSzSw0njm4VxlzbPWsy38r3zjQcC63rdPihHxpPaIf8MWUk2Kxna ewNA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCX9PQffXTndOqyDkpYDNxxyeBpeh+ZwwBz2KMA9LPfmQ7tb4tkHP6b7QLCqmCC0w/tbKIT5BU4=@isar-build.org X-Gm-Message-State: AOJu0YxpTCGfbTqNW2Ntm2o7jeqKeWaRH0Dzc+0hKdCXd8Ibciv9RCpe d0+u+IGwtKwFWiFpTkRV3L+kXSKRmNxDo0ISTCWCnPPSaFnQBd8J X-Google-Smtp-Source: AGHT+IF6lVBkfdJxuElM/FS4ROKsjZaSBafucrIU5IKtiQWlnMYGbBYuIDUPaRXPMYnjaYrTH/1/dA== X-Received: by 2002:a05:6902:1009:b0:e63:6e52:2140 with SMTP id 3f1490d57ef6-e63f64f8086mr18576354276.16.1742306794861; Tue, 18 Mar 2025 07:06:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAKCwpyTj9fGTSC5GZxEpHDYLLeNJuRssgqupv3XOU9isg== Received: by 2002:a25:2905:0:b0:e61:b422:146b with SMTP id 3f1490d57ef6-e643eecd957ls990595276.2.-pod-prod-01-us; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) X-Received: by 2002:a05:6902:100e:b0:e57:442a:befd with SMTP id 3f1490d57ef6-e63f659d6famr20758768276.32.1742306793584; Tue, 18 Mar 2025 07:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742306793; cv=none; d=google.com; s=arc-20240605; b=KpZD2kgVEIXj6XnxOBE1jKMe7emjH+UHEL3Hgw4T5YJb+RuKxELeO1+Lx6I2B//CGc gGyxwvtR/soU7VWxVPH/ZsJI0QkrXdieaFwM1gYI553u9yY0ph/XbpPk4MLpjDezgx54 bD3X5M5As4iMjZlMEgKC5jBErFMhkeUXlihZy4/top40SfnpqeFmZn6uMLCjzl0OOdrJ rbB5SqzaaEqMcVfPe7scsLT+vmKTO5GjJJ0vP73VL7Uj10KnMBH4kwJorBlJHvt3NgUl CFOeYZ5QRpuZJ3PwFNZ//bHslyKY3CHRVfAJVZ5FvjSobX6DvHqGx+9Pnhcs9MD6B819 7new== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=8PbFWrmvEx3n0kEsyzM6XU05NQHQmIviDlCEZFW/+pA=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=jca6YKmVs8RxiiZXSKmNXTkzFpO+p9Fy6xb4D+9hWbmespY8XbkNndbo4ic+fCOD29 Z/MO0uHDMwQ68Xmo0tMzE2vtw4abO9Z9LYicIG72JtFWvmKL2Jodpua89koV3jD7sYjN idnTVRpnwmGG/4Bku05gio9e3Mz3me3q5Q4rcB4yMut1SZ5k1ddtMUW37yjWVWTEcPJF a52Uu+RGpMagbp142dH+eAt8/FqokG7FqAldwgNqvb0mPLW9oX67lW3Z3uYaQnGPO4C9 fPtq/pcH0TYwDh6PZgCPwnc+M2WrNAX8o5+bQ/4ni11AjiMySWZk6xiKqQjKBmWS8wl5 RB4A==; 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 3f1490d57ef6-e63e5471b6fsi614145276.3.2025.03.18.07.06.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Mar 2025 07:06:33 -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 hp15.localdomain (mm-54-5-214-37.mogilev.dynamic.pppoe.byfly.by [37.214.5.54]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 52IE6S2n022611 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:06:31 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 4/4] installer: Run unattended mode on the only terminal Date: Tue, 18 Mar 2025 17:02:17 +0300 Message-ID: <20250318140622.13676-5-ubely@ilbers.de> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250318140622.13676-1-ubely@ilbers.de> References: <20250318140622.13676-1-ubely@ilbers.de> 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This fixes race between two unattended installer instances running on different (e.g. serial "ttyS0" and graphic "tty1") terminals. 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. Selected terminal with unattended installer can be set by INSTALLER_UNATTENDED_TTY variable. It should correspond to one of INSTALLER_GETTY_TARGETS from deploy-image.service recipe. Signed-off-by: Uladzimir Bely --- .../recipes-installer/deploy-image/deploy-image_0.1.bb | 8 +++++++- .../bin/{deploy-image-wic.sh => deploy-image-wic.sh.tmpl} | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) rename meta-isar/recipes-installer/deploy-image/files/usr/bin/{deploy-image-wic.sh => deploy-image-wic.sh.tmpl} (95%) 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 242ca88e..1af3a6dd 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 @@ -7,10 +7,16 @@ DESCRIPTION = "Install image to device" inherit dpkg-raw -SRC_URI = "file://usr/bin/deploy-image-wic.sh \ +SRC_URI = "file://usr/bin/deploy-image-wic.sh.tmpl \ file://usr/lib/deploy-image-wic/handle-config.sh \ " DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, xz-utils, pbzip2, zstd" + +INSTALLER_UNATTENDED_TTY ?= "${MACHINE_SERIAL}" + +TEMPLATE_FILES += "usr/bin/deploy-image-wic.sh.tmpl" +TEMPLATE_VARS += "INSTALLER_UNATTENDED_TTY" + do_install[cleandirs] = "${D}/usr/bin/ \ ${D}/usr/lib/deploy-image-wic \ " 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.tmpl similarity index 95% rename from meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh rename to meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh.tmpl index 7f552eee..33a409f3 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.tmpl @@ -10,6 +10,12 @@ SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; ) . ${SCRIPT_DIR}/../lib/deploy-image-wic/handle-config.sh +if $installer_unattended; then + if [ "$(tty)" != "/dev/${INSTALLER_UNATTENDED_TTY}" ]; then + dialog --msgbox "Unattended installer is active on ${INSTALLER_UNATTENDED_TTY}. Please wait for it to finish." 7 60 + installer_unattended=false + fi +fi if ! $installer_unattended; then installer_image_uri=$(find "$installdata" -type f -iname "*.wic*" -a -not -iname "*.wic.bmap" -exec basename {} \;)