From patchwork Mon Mar 25 15:34:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 164 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 25 Mar 2024 16:35:33 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oa1-f63.google.com (mail-oa1-f63.google.com [209.85.160.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 42PFZViU011472 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 25 Mar 2024 16:35:32 +0100 Received: by mail-oa1-f63.google.com with SMTP id 586e51a60fabf-229ede09748sf3088322fac.1 for ; Mon, 25 Mar 2024 08:35:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711380926; cv=pass; d=google.com; s=arc-20160816; b=aKmCy2J1AylTrpuUSWSjfMmqnUXn+hn08iYinTtZiBskBSYmGezAtmnVSJRdoM24FN crnAEbSysnYNajuQmQq+rp5ME0k9o9KMuelkbFCCLkFSODi6VwcPPTfW2ANkNMQb6vQY Gqm89jQlrzvH/pZtAxaeDfkwiVXCCyp1x062oy+L7PKEPE2lgrLji63OWZNdFX4oDjtk z+J8W0k2PjqoeB55dCBIIdviVjkswY2fBiBDvFQG/8vSHV4aUsqlWMOQIAXlumaJTZgc 6RvSi6kS4sZojhUzQyuWORp3pwKcHJfyIgltV46djQRtOKgMS4Vb3Skfxx8uaHA0YhEh awKQ== 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:reply-to:feedback-id:mime-version :message-id:date:subject:to:from:dkim-signature; bh=lPw/IpahXDjnbKu0FnjwKimdwjHrQURXxruTbRB/M7A=; fh=nqnUN94HWoYyiGDciyASm/FJT/Ax87bSgk35dlm6zjI=; b=o/MPPnCAveGzAdH/dPxkFVZvH0xnMImRdPP+PsYPlmMhZq6E515SM7ieZ1VCzCQNOO NqtOpIWaKgA/eezA0UrW1t0BneqxvVZAaeiLvvc7yPsl892XH/nbOKbhdxEn1oKuC1RM FSnA0tzNu4C7fKxJ8Domz5qoXN61IVNN8kx1oxe2j7ow2spY0xf8HSMfAIzFKambwR25 TtJWC+UXfHmT/TUydIUtyrWwRMDctqhUHyfMupRyb6R1KfY77z9KVqx1v4uqjYFxnwOd GkY46Qjpqd69OkyNcU5Cbcf+Wj048C84NADrW50lGEg1YBYF4LS/S7Bb8ZYhi3WIwn7Y YjPA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=XpllekoU; spf=pass (google.com: domain of fm-51332-2024032515352337a266d6b8a103de27-91icxw@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-51332-2024032515352337a266d6b8a103de27-91ICxw@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1711380926; x=1711985726; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=lPw/IpahXDjnbKu0FnjwKimdwjHrQURXxruTbRB/M7A=; b=bhXLA7eTD0nx02lAhkFPzAz3QOMzZysdrY2LefHNXAp48OGA+kLdqc90KOxznMtpcS y2Hcb1TyS2pCi4QD1rC1HN1wXoG4jomv2xWDuJl0Fq6mI02kWDn3n4BRYiIUL1EWqkSh ja9LyfMuuDAsnxMQlsTRYG9Bs006+vvZCVZpEDbuMojD4Qda1DP5DUn1KslOKRQp9/eU VMIwZ5dEVceIJP1kriWWkbX2/qYEvMKP5NXMwMputqRonvvlCxOvKivnJTVZKb1+J4pP 1BgbtUxQlxP+xO3RkhxSCSpzJY/kDAj9dLUu3Ya/BNg1WsHn/jpkm1FwlFb84zDxqeD3 J23g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711380926; x=1711985726; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lPw/IpahXDjnbKu0FnjwKimdwjHrQURXxruTbRB/M7A=; b=v5ttuQMhE6J7dcpV8BCN8Kw8NQlIaN/2q4QBY1LfA7Y4hGLdUxqt4eaYnHhFd93Sit 3M+S/iXbKv2AB9Aw2TmcbRVZtKAAEN/ajpiusH6Yhf4O06DOW8OMM5+vYsDyzECusR/d d7nGIg8uQMQfiT6iJnJwjDv+kZxarMXOz/eCHXso3mGMhu1dTEUk1ls8oL4NJ6yXM3or yhDCpk5ftxbgrerA3a21zojwvq2e2Kwp4YV6IRu42phgkA6KZLaazjZEPpf8XIc0kb6I K4gArCSuw3ugdDwONY3o6iPqNsHLmu7e3ZKXC66mPS2k/jHV4ujqE+VFIRDcwW1Hpa9B McOw== X-Forwarded-Encrypted: i=2; AJvYcCXlffUhK8bc7F2D5KBrwTVXfpYyKkRBLSR/GbRTI3D+lYOuilzWzW69kPRh5Em7Uz+sthVYtoEDEGSCKHJY8yjfq6I4X9Q= X-Gm-Message-State: AOJu0Yxshv0xpIcK7IxPc4FaItFhwriACoRhB2ZBYCrEyLAFjcpR1o+V YjJYMcoQIaKV2nrakBdqmWnwTen0/c6dpQqSeqSFLPJT5E1/bz2d X-Google-Smtp-Source: AGHT+IHwSE2LoNa3P4elA0OpQSzc1UncYQU+01SdWcBaRWxYtsSV65+roWdL9J9KOBndEy24kgFLZA== X-Received: by 2002:a05:6870:bb10:b0:229:fd7a:d728 with SMTP id nw16-20020a056870bb1000b00229fd7ad728mr8380911oab.24.1711380925992; Mon, 25 Mar 2024 08:35:25 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:7d8e:0:b0:431:6135:9b7a with SMTP id c14-20020ac87d8e000000b0043161359b7als884089qtd.0.-pod-prod-03-us; Mon, 25 Mar 2024 08:35:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU5Fb3tRf+X/OQMfzQ171+YXAkAyi9N9T8ssj5XcxspL1wibcXIqT+qLXeuDEOk5eJHl9qviDXdlhNsnRgfzc293VcHkxMg8xYNZ6w= X-Received: by 2002:a05:620a:51d2:b0:789:e5b6:824f with SMTP id cx18-20020a05620a51d200b00789e5b6824fmr7841295qkb.53.1711380925008; Mon, 25 Mar 2024 08:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711380924; cv=none; d=google.com; s=arc-20160816; b=mP7ckIFAVXt4vldPCFOfgA3cAufjKUgUE7x3fX/NqCuqW7VT8RYZA/tr+B2TNuI6sr pVrCbByS5RzSIN8oHu9oWdxdO09UT1W7WPCF6y5qkavnYwF4M9sqsnT9SvSesHBB8muT GoRIagYUQzXF/2jW0CcPD2xcLN6LhWRK6H++567tkqbSrue1UuravzQ+nov/u7207fKi V4V+fu/LasI8FWuHrsUIGWIfaOO+3QR9YLdL2ZvECsuvCh93RDB0WmMMnXrO4nPypD/s En2QMUG8YEJPqCtGT21OSSsP7580FyH3lMgKlcWzBuM9iStywt/1HyVTy0rVeIyyAw4t sqWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:to:from:dkim-signature; bh=wVlZnWKu7t2PnDpAhsFB/SXOTw05jQPL78ImOjrV9II=; fh=rpHsxb7lPfJJgFX8BDY3/IlKBNbRtI9Z0SHxGoqscuk=; b=CrALpA0Fugs34V8Yb8i4OmI85Ghwgl8RHIqc4A4eNcpKJpg50mQNrGGQ1ghvGSe4yp toRKuTJZcJLbW23W9mYFtswlXh+ZsrtfFjTptuAZLzT3lBQ/Y+eWoYWIHb8XosjgJzzj KR1f8llkRBPeJAUUlhQ2n7Lu6AYAcjAo4ziqj+4/aTtdm7iT1BN8lDTp7LSCIbioDOBf L71nFHx93BJ6YtXUXYo4GQkv4X7E5Jz7T7X0JNLH23t5P+zEUC1pbbwaWYYUCBBdSEmU Tjoagxt8GrvymdXGFsQVk40c1+BEeFO2RbesVSSBv04pM3aVA6D4D73fSoqci1YEQqEA PzDw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=XpllekoU; spf=pass (google.com: domain of fm-51332-2024032515352337a266d6b8a103de27-91icxw@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-51332-2024032515352337a266d6b8a103de27-91ICxw@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id pc20-20020a05620a841400b0078a199066f4si393462qkn.7.2024.03.25.08.35.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2024 08:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-51332-2024032515352337a266d6b8a103de27-91icxw@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 2024032515352337a266d6b8a103de27 for ; Mon, 25 Mar 2024 16:35:23 +0100 X-Patchwork-Original-From: "'Quirin Gylstorff' via isar-users" From: Quirin Gylstorff To: felix.moessbauer@siemens.com, isar-users@googlegroups.com Subject: [PATCH v3 0/2] Isar installer copy installer-target direct to rootfs Date: Mon, 25 Mar 2024 16:34:57 +0100 Message-ID: <20240325153522.2104345-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer X-Original-Sender: quirin.gylstorff@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=XpllekoU; spf=pass (google.com: domain of fm-51332-2024032515352337a266d6b8a103de27-91icxw@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-51332-2024032515352337a266d6b8a103de27-91ICxw@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Quirin Gylstorff Reply-To: Quirin Gylstorff 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-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Quirin Gylstorff This reduce the build time of the isar-installer image as we don't apply gzip on a already compressed image. Also the sstate size is reduced as we don't store a package with hundredths of MB. Changes v3: - add missing bmap file - support initramfs, install -D -m is greed and sets the permissions of the parent folder. Therefore the initramfs could not be generated. Changes v2: - split patches into rootfs-add-files and the installer specific target Quirin Gylstorff (2): add new class to add files directly to the rootfs isar-installer: use rootfs-add-files class instead of seperate package .../classes/installer-add-rootfs.bbclass | 43 ++++++++++++++++++ .../images/isar-image-installer.bb | 2 +- .../deploy-image/deploy-image_0.1.bb | 3 +- .../store-target-image_0.1.bb | 25 ----------- meta/classes/rootfs-add-files.bbclass | 45 +++++++++++++++++++ 5 files changed, 90 insertions(+), 28 deletions(-) create mode 100644 meta-isar/classes/installer-add-rootfs.bbclass delete mode 100644 meta-isar/recipes-installer/store-target-image/store-target-image_0.1.bb create mode 100644 meta/classes/rootfs-add-files.bbclass