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 }