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; Fri, 10 Jan 2025 21:31:01 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f62.google.com (mail-lf1-f62.google.com [209.85.167.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 50AKV1lk003368 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 Jan 2025 21:31:01 +0100 Received: by mail-lf1-f62.google.com with SMTP id 2adb3069b0e04-53e3bb933easf1776791e87.3 for ; Fri, 10 Jan 2025 12:31:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736541055; cv=pass; d=google.com; s=arc-20240605; b=ff8a4GTrsUxS3B5vTe6t203kO6qpo5PCt/Vjqk2wEHhP5a5/bmB428PgM/Bq0RUyj5 e6tn2Wzd9D7zDoId9cFJxG89ms28NgxyOYenPdtjh668CRa4Frh8QikhYSSsyXAbP2Jc y2g59ayVCxrE4OJmiA/fJ/t8VruJ/HlJjeb8QLYUNrRxdQiqd9td5LDoLGeZQVEHraCR lK6pK+RRXN4FbJSveyw5R3JaTfWcbsg1CJ5wRBvXrvQ3eInPjAHVESCWjj++W3cZ+zOa LuYz9aVmG7IkScMaNhKpMB7ggo8zNNKpmsyma65SIQSS62l+WC/dF47eiMMATvonYLr/ +VhA== 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:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3Bw5Q64eYNO4eW0fjani5K18jZBd5RFV0A+ymdzL47k=; fh=rb/eiXr66qQG2wxMo/yDroxSNOJljQwG6Fv2N7Tytcs=; b=gm+JokrVwkgXC2ovzdO8M7WBkZds2McCmuIrJQ0F0tPfIctUQhRHvgomNkpCs7tnj2 dA2JZXCNa0YT7eGczDvxDY+A3sNYenZP3kKjFbEUp9oAzYW9lh25/2Hhf6iaPzX/MmBv e1wgp/QQGpR5SfbreaLNGCe4ym0E0ibxwwgomA7V7LFckseprdVWGMuLQAo9ihbT/cEA TUNCGAdqW/eOQ6834oWVYV5KnJjSAwV6GtAXu3BEu43jPcna0KFumdT7f3OUEuVaBJId BysDzU0O2ubpa4oYqiKFvHSCznA1UspQzJNYbgDw4t6m4lVObY2GxAjrwI5F3aQ5f+0j R3+Q==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@evosoft.com header.s=fm1 header.b=RLefNoWY; spf=pass (google.com: domain of fm-1328579-20250110203051034023e702217b331e-0o2pff@rts-flowmailer.evosoft.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1328579-20250110203051034023e702217b331e-0o2pFF@rts-flowmailer.evosoft.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=evosoft.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736541055; x=1737145855; darn=ilbers.de; 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:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3Bw5Q64eYNO4eW0fjani5K18jZBd5RFV0A+ymdzL47k=; b=CEl7a4J7qxq2NtWxWhNLPdHHPt9GtL1UufJSSgyHP+MBIa0YU7rhli/T/BxZGIPgGZ mLJV/gINpa+W97ISt7pANOn3Gf8/6MlA/qcuHFTtNJAF3hllXkwMN6Wvg5SiRz9KhWxe fLVBLDZBEiwnV6A84DBg1t8nABO+mWVtSAMDKbTmyKKmfl9pbRCuJItvIT1IRvMG/3pX CURBEAWEDpXG5cjsz94D+ift3iDOX3hsb3HuV7e/Yl6vRZG3DDcy5JgeUTnG3uVrpq5n mQ1M9zRQFGPN1kzdZnVx6Lw82c+56McoOBA89ej9vYFDSHXwHi9+c2mqTUohti2mLJoF OB2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736541055; x=1737145855; 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:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3Bw5Q64eYNO4eW0fjani5K18jZBd5RFV0A+ymdzL47k=; b=dfkqKDJkYHlMvvej8b22c3YwulV0XRNRjTB6EFWhxOYgoCY8kKJvBm8Ym8LW9SgB56 WpPo/NT5vPzSv/PttbHM2TdiDcNSpeUIHDdMDhbulXb0/HvpqLIVzGcYTwSu1z1ZHsZN b1Zvhiv9Iwcp9WjxM/leYWqTL6y6qDgM+7rGtc/w70K/v+3TAK/MVghhsqjVa3LEVehP ZdrNmooXqONiOwkyag+x72Sxj8zAuzXqFKRaRjkKIjaIh9sUL1Lqpp+bo1alrd79vl/i +e9z908gwNH/7BClwmBM00zDDaRg7n5+zEUYFWwaoJSo3dZK7kRtv0y9+r8DwddvsN7z aHtQ== X-Forwarded-Encrypted: i=2; AJvYcCUCe1H03DjHSYOZDybCG2fpY7MC5CHfK/7TN4dRozHG+xgL3vBy0Ku6MteAMsZ7HwcAwLK+@ilbers.de X-Gm-Message-State: AOJu0YyNtK5SrGGVMGTeRX1gd1I39qDiF9sBeENGvixBKhFDBQ5SeVcP a3IIL4od0crKm0caDooOpMu31pshs4ZVcOA10+xeUct7V6UGT4lu X-Google-Smtp-Source: AGHT+IFGfr8gqkEfhuoMI4wGUdwh3YOdvMnJ4MNFtVeSJhV+tdJSAT6os4pR2fgzGpvVMGuFPvkrZg== X-Received: by 2002:a05:6512:401b:b0:540:20eb:80c5 with SMTP id 2adb3069b0e04-542848166b8mr4033498e87.37.1736541054747; Fri, 10 Jan 2025 12:30:54 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:8c44:0:b0:541:3532:a814 with SMTP id 2adb3069b0e04-5428a209f48ls231612e87.2.-pod-prod-07-eu; Fri, 10 Jan 2025 12:30:52 -0800 (PST) X-Received: by 2002:a05:6512:138e:b0:541:cdef:7ca3 with SMTP id 2adb3069b0e04-542845c47a0mr3814769e87.27.1736541052470; Fri, 10 Jan 2025 12:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736541052; cv=none; d=google.com; s=arc-20240605; b=JVmfU79uHFe3+FKiOQDgxbXIzSPr5/nYkEaYwmAuTcXhUpAb6XlT8aHa1QB2wnM1rN Q/q05r/VXiwAGTarvumcL2o6+LXKgToZlZo+IsI/8F27jVqVvY2odMK59je8VgJxfvpe Mis+v8yR3P8qb3c3HCpw2GymIG3JRLoUXii9lNUDyZy+cyoL7AywJHdJds5IGvAU0iE2 yxBcaik+wNE7y4Y3aHDd1QdhIzYmLjb6kJ1aWMGRcXXCJv65QRA35nMnGr+ciqCDiVXy mIX8O5y7QChJt3CWTmBPajibcna2LL7TFG9LAFWEoI5h9CK8u6zp2pb0dMtSVTQbUvxF MQ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=k2oBQtKawbuvBLt3YPt3dDUXZz7cAweona4V7TkVDAM=; fh=Rk0F5Qxc87u/JqZvZ4UC1jZks03skR1bVck+OsPMLZw=; b=iQ2KCHGi5QCE/y50Kuf2Fez8r9hPjY5dsKtkub23s0YXkkrSqY+daLobxLc6DYQoeS SoUQV1lvb8C9GnnBH5Q1PD49LZR/NJK+wPL8eqs651E8VBTw4yHTz/nkWkSawAdwEVBk blCNsQfz9CxkMyIUzXDsT3GBe0vPy+6MyEn355s4trqbAMUnCLw5FNmjt6jw9GyT9ekb G2jqhFbOk49dqTrnsKz33CyjzBU10NqlLh+4OuZp28G40uDKbGWjmyTrGQ0uYwziGPr7 /V9DY9cDGnfOX9mWhqgVghYHDk0ZzUGFHjJtbtWmWltaSfdA9A/6qozQZCk0az/KnWgx 6K4A==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@evosoft.com header.s=fm1 header.b=RLefNoWY; spf=pass (google.com: domain of fm-1328579-20250110203051034023e702217b331e-0o2pff@rts-flowmailer.evosoft.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1328579-20250110203051034023e702217b331e-0o2pFF@rts-flowmailer.evosoft.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=evosoft.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-5428c7bf683si122164e87.3.2025.01.10.12.30.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2025 12:30:52 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1328579-20250110203051034023e702217b331e-0o2pff@rts-flowmailer.evosoft.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20250110203051034023e702217b331e for ; Fri, 10 Jan 2025 21:30:51 +0100 From: "peter.czegledy via isar-users" To: isar-users@googlegroups.com Cc: Peter Czegledy Subject: [PATCH v2] wic: bootimg-efi-isar: fix generating of grub.cfg for custom initrd Date: Fri, 10 Jan 2025 21:30:41 +0100 Message-Id: <20250110203041.662979-1-peter.czegledy@evosoft.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328579:519-21489:flowmailer X-Original-Sender: peter.czegledy@evosoft.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@evosoft.com header.s=fm1 header.b=RLefNoWY; spf=pass (google.com: domain of fm-1328579-20250110203051034023e702217b331e-0o2pff@rts-flowmailer.evosoft.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1328579-20250110203051034023e702217b331e-0o2pFF@rts-flowmailer.evosoft.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=evosoft.com X-Original-From: peter.czegledy@evosoft.com Reply-To: peter.czegledy@evosoft.com Content-Type: text/plain; charset="UTF-8" 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-TUID: 6nXJpBataGaP From: Peter Czegledy Specifying the initrd location via WICs sourceparams initrd argument doesn't generate the initrd location properly in case of grub-efi loader. This fixes that and unifies the custom initrd handling for grub-efi and systemd-boots. Signed-off-by: Peter Czegledy --- .../lib/wic/plugins/source/bootimg-efi-isar.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py index 50f4187d..78ae4fb2 100644 --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py @@ -108,9 +108,12 @@ class BootimgEFIPlugin(SourcePlugin): if label: label_conf = "LABEL=%s" % label - kernel, initrd = isar_get_filenames( + kernel, default_initrd = isar_get_filenames( get_bitbake_var("IMAGE_ROOTFS"), get_bitbake_var("KERNEL_FILE") ) + if not initrd: + initrd = default_initrd + grubefi_conf += "linux /%s %s rootwait %s\n" \ % (kernel, label_conf, bootloader.append) @@ -187,12 +190,11 @@ class BootimgEFIPlugin(SourcePlugin): title = source_params.get('title') - temp_initrd = initrd - kernel, initrd = isar_get_filenames( + kernel, default_initrd = isar_get_filenames( get_bitbake_var("IMAGE_ROOTFS"), get_bitbake_var("KERNEL_FILE") ) - if temp_initrd: - initrd = temp_initrd + if not initrd: + initrd = default_initrd boot_conf = "" boot_conf += "title %s\n" % (title if title else "boot") -- 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/20250110203041.662979-1-peter.czegledy%40evosoft.com.