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, 14 Oct 2025 17:00:00 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f183.google.com (mail-lj1-f183.google.com [209.85.208.183]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 59EExx4Y007435 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Oct 2025 16:59:59 +0200 Received: by mail-lj1-f183.google.com with SMTP id 38308e7fff4ca-36ac2323417sf29236211fa.1 for ; Tue, 14 Oct 2025 07:59:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1760453994; cv=pass; d=google.com; s=arc-20240605; b=Nz20SZBZ24v9kZc4eojzhdxNEcFD1ixT3dNZQGaHPv7GUXenWpFK5USOwTSQvVaPvH A+xCMw6gqIh7tD653+NM52aGi07/U0ehd8lK2pkPVzAYj7ureyLRDKFu54RhNttYFGVW 1Udv83CfukIXAluqKCHFR6DsPKjKz+VFUvXnD8HX2BYT2PGhHC4z97pfAj133onhzTQH zRc+Ovmwe7uUkY7GEin5AfiIlEaKWyj9WbTujp2g5677BjGZ5Bev+fILnXGx2zWHOFUi RtWTpJ+e4LgkUnVRD64He6VFYxl2gLdH5RsKrIQN3ikz1KV9Oh0wXF6VzbJWm26gXZot Knww== 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:in-reply-to:content-language :references:to:subject:from:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=Y/dPlEUFBvYE+O3SirmMIOSoWirnYlAxxpsYEPdFTHY=; fh=0C96y2fxhOpKnJ5CCbPyBJyQFpC6By/gAmqpHwOcuvw=; b=ErlijZWRwU7cyU6ns+o3ns8mJyrYmzDsz5sRT3jhFOotHgHkHzRKp8O4+ITmFcCQUN VKs4h/J25AwhL+EwTT927QVV/ZvvP7tG/RAmV81Y/LV18K2JYLGHTFKQ1ob6oYLD6JO8 N1oPqgQUEG/vJFmdd0aCs9E7J4KyE1b0houRlmtMw0lOXPK/CBupYVauX07lp1HJ6r6n b8bZG6kIJj9ou3xkGRP4O1uLYRkZibJ8lAk7J5dUIsTht+T/T/eRKx6C+DK8flObjRDb Cyzl23m0fOKzWMQDJRS27V/vu9kB6frnomv2HNIXn/7tfXxnB8hA7/Z+Il8RCsQ6Bayw ppow==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1760453994; x=1761058794; 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:in-reply-to:content-language:references:to :subject:from:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=Y/dPlEUFBvYE+O3SirmMIOSoWirnYlAxxpsYEPdFTHY=; b=XSz0TmlatoD5jM4bwg88Ob4PF+IGgVGEpKBdlFPL3kNYVShHbVBvRKaljWOQ7yNZfs aZlwXqbpVXxbhqVFMhAedqSYqmKKL7xDmgfy1kV0ybaPxQE/cUqnmv+YqKLHrZqWBI5S /Qp/stdygldmuI2JG7VgytTIFHMIKBSVEEiRWKVzBCRnOqFAh5QDS3VwWERMyA+1bzqT 1KR4nmy0QYBlSd4sHiLrk/WrfgoSjFO83GLznD8rWcfGZaZGOnWdFXyTZgJeFQr05FVl /09VLwrgpNnm0BJj3DrYMJ2ZlB97Dpl+UFXDOl8feMQtw9ZWtalKonZLexvnwZAf8C3f an8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760453994; x=1761058794; 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:in-reply-to :content-language:references:to:subject:from:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=Y/dPlEUFBvYE+O3SirmMIOSoWirnYlAxxpsYEPdFTHY=; b=InC0dATuhToiriCi81A4rOl6eMGshRIDm2esbAsTSYaVggu9SUCknuVyOA23Ik5erq r1glAJN4Bxv06oTRAnIFfKW75iUSmViHxtWK0iF8hd9PrKBaWQ1xiu7Qf9Ta+/K7/+Z5 yXTrbwkpf+TkKEMycb9zcBP1HSNYLoi+NooUNCXNh8ZA71y764JOb1k877BM5U7yn2cP u680C+rd1sIrs3ajL5ZP4ihaVK/Pf2ZMcUku/7Rsjt4ne/rnqRotvgrsjyzQMj7fa1Lc FOG7HwRSkfhfeGiZXuxuFqDmbweOCgeK5byN8SxFHLeZUtDsxC8GID3QteT3XMjEtw3B BbUw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWdvAkY0AErCiw8mDYyJ5LNGbnkBUaRdEVvKW702xzaP+5sunhNfQhR7BpwlSy0fpZCvMx0@ilbers.de X-Gm-Message-State: AOJu0YzSXV/yQt7S1sBujKVryukApVXPbRGJ72LYvqlX9OPAet+k/y0Z igkNJRmMA1Xgns/Rv2p4z7NpW18zKpWI6XN42oUJlvu9UfHfce2Hs30Q X-Google-Smtp-Source: AGHT+IEpF5RM65zx4+Y4QjgXxazeB2vUrhxJPM3uGS0b3Cn7jA50P01tWuiT9wdLE0uZ6Fd7adDjDA== X-Received: by 2002:a2e:a911:0:b0:375:d1e4:21b7 with SMTP id 38308e7fff4ca-37609ef1281mr63181341fa.45.1760453993750; Tue, 14 Oct 2025 07:59:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd7cYJ6yFAq5pesHfdvEOsrD0smZThrAm+ujjZjS/ncFrQ==" Received: by 2002:a2e:9496:0:b0:376:33c4:9fa3 with SMTP id 38308e7fff4ca-37633c4a7eels7083081fa.0.-pod-prod-07-eu; Tue, 14 Oct 2025 07:59:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXMj1c/HYk7Rkrx9S+s5Er5S2zgbZHCzEX6KATV3ZQuE6OU9Oh0UHVwpZEpAGLQoskMoCDDdl2WBWZe@googlegroups.com X-Received: by 2002:a2e:a911:0:b0:375:d1e4:21b7 with SMTP id 38308e7fff4ca-37609ef1281mr63180741fa.45.1760453990847; Tue, 14 Oct 2025 07:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1760453990; cv=none; d=google.com; s=arc-20240605; b=KZ3+n3j6JlIPfChlquLu+hsvAE3nkB8TKD3afFf1ambTI/D//L1HA1TEsMkbJICXBq caVu2TO44lx7xR8oKxKgkMS0HPGnQKEELjpyQNmQK2HQg2qcS+kU4MR9aJ+BPS3OMoIe S9E1KeVtBeVpkH+mPrHfr2cLwyhpoDAdJUh7p/efY8dyGYOlcijvkYZxYmansl6sS6Pb RXCOVaR8AP2TI9K+OEH9Cikq8C5SPvey3JnIPbEGaU6o7F9orlIlTdp0TFSbtR0849RD pTfQlE122dlMXgDVsdyWiC9pbP6U8uA7z6U49jF7jDQM6VQEORDxVanbtX7JrIhE0anx hBxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id; bh=hfVVIBV5N26jidVp1wgN+NxXPDyuDIzRohpBfvNYG+w=; fh=BSPqGArB6tTDqZiGP6bWbwR/OT+7QmHvthjvMivxaWQ=; b=d7kw1+gR+8oRaMwKn2HGG977TVAYpfgWdJ2KRObsrztxQiLOmNZfzg99jKkM3RYSMZ 2lP8eADtoF0nG/CL5fL5dNrdFcaK7IcF3G5vwXEWS725DyQKgaVNtWbtjt9wPufHmec0 +U2PC5piM9qdwtUavJxYOiGSNFyXsm9PrujRFvX3fRD2QH5fvdGQILkzdRGCFXlO/gGh In66wEyH3blrzJsZ0VE/kzWSAUT53qnbG8Ku1/qQCaRtimw/eaaoEiuMqToUDzj2z6Ux UkKxVVN9QaxYek0mCyW8iSnVlxABnIaWk2YUVcxnwDYiQm++1vCx3aglWmyuaGZyStIb xH+A==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-3764ae5a875si1966741fa.4.2025.10.14.07.59.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Oct 2025 07:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.117] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 59EExnvi007408 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Oct 2025 16:59:49 +0200 Message-ID: <03775d5b-497a-4935-91ca-ac4b81086e9b@ilbers.de> Date: Tue, 14 Oct 2025 16:59:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Zhihang Wei Subject: Re: [PATCH 0/6] Add target bootstrapper framework To: alexander.heinisch@siemens.com, isar-users@googlegroups.com References: <20250922170445.1393839-1-alexander.heinisch@siemens.com> Content-Language: en-US In-Reply-To: <20250922170445.1393839-1-alexander.heinisch@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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: Ybz6OJX/H1yA Applied to next, thanks. On 9/22/25 19:04, alexander.heinisch via isar-users wrote: > From: Alexander Heinisch > > Currently the installer deploys images embedded to itself. > > In many situations this is fine, but for some more demanding requirements > are in place. e.g.: > - enrollment of keys (e.g. Secure Boot), > - setup for disk encryption, > - collection and reporting of device information (serial number, mac addresses, ...) > - resize / repartition of disk during comissioning > - generation of a commissioning report > > While many of these tasks can be done on first-boot doing so during > device setup can be beneficial in many cases. > e.g. > - additional time required for "first-boot" when performing tasks > with high effort on site may not be desired > - the comissioning environment oftentimes allows for failures during > that phase - worst case the device is put aside. On site failures during > the wrong bootstrapping phases (secure boot setup, disk encryption) > can be severe. > > This patch extends current installer behaviour to support a flexible > framework to define multiple tasks to be executed in sequence during > the "target (device) bootstrapping" phase. > > Note: Current patchset uses installer and target-bootstrapper interchangeably. > Imo the name target-bootstrapper fits better to the actual purpose, > while installer is already established for some time in isar and changing > the naming would probably break some downstream. Although, that could be > fixed in a backwards compatible way, I left this exercise open upon agreement. > > Alexander Heinisch (6): > isar-installer: Moved installer related Kconfig to separate file. > isar-installer: Added target bootstrapper framework > isar-installer: Use target-bootstrapper-service in favour of > deploy-image-service > isar-installer: Removed deploy-image-service > isar-installer: Fixing race between ttys in unattended mode. > isar-installer: Added example target bootstrapper task to collect > device information. > > kas/image/Kconfig | 83 ++------------ > kas/image/isar-image-installer.yaml | 6 + > kas/installer/Kconfig | 104 ++++++++++++++++++ > kas/installer/add-device-info-collector.yaml | 14 +++ > kas/installer/unattended.yaml | 18 +++ > meta-isar/classes/target-bootstrapper.bbclass | 37 +++++++ > .../images/isar-image-installer.bb | 2 +- > .../deploy-image-service.bb | 21 ---- > .../files/install.override.conf | 5 - > .../device-info-collector.bb | 27 +++++ > .../files/usr/bin/device-info-collector.sh | 28 +++++ > .../files/target-bootstrapper.override.conf | 3 + > .../target-bootstrapper-service.bb | 38 +++++++ > .../files/target-bootstrapper.sh.tmpl | 44 ++++++++ > .../target-bootstrapper.bb | 41 +++++++ > 15 files changed, 369 insertions(+), 102 deletions(-) > create mode 100644 kas/installer/Kconfig > create mode 100644 kas/installer/add-device-info-collector.yaml > create mode 100644 kas/installer/unattended.yaml > create mode 100644 meta-isar/classes/target-bootstrapper.bbclass > delete mode 100644 meta-isar/recipes-installer/deploy-image-service/deploy-image-service.bb > delete mode 100644 meta-isar/recipes-installer/deploy-image-service/files/install.override.conf > create mode 100644 meta-isar/recipes-installer/device-info-collector/device-info-collector.bb > create mode 100755 meta-isar/recipes-installer/device-info-collector/files/usr/bin/device-info-collector.sh > create mode 100644 meta-isar/recipes-installer/target-bootstrapper-service/files/target-bootstrapper.override.conf > create mode 100644 meta-isar/recipes-installer/target-bootstrapper-service/target-bootstrapper-service.bb > create mode 100644 meta-isar/recipes-installer/target-bootstrapper/files/target-bootstrapper.sh.tmpl > create mode 100644 meta-isar/recipes-installer/target-bootstrapper/target-bootstrapper.bb > > -- > 2.39.5 > -- 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 email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/03775d5b-497a-4935-91ca-ac4b81086e9b%40ilbers.de.