Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp41550rdb; Tue, 19 Dec 2023 08:52:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt9DWl3ZzSh3eB0WEpr61RxnbF09gtG68NvgQ66H8hVR0uZjwJvD52s4vUFISSlCjZKBw6 X-Received: by 2002:a05:6358:4194:b0:170:ee27:bfa1 with SMTP id w20-20020a056358419400b00170ee27bfa1mr15593874rwc.5.1703004752617; Tue, 19 Dec 2023 08:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703004752; cv=none; d=google.com; s=arc-20160816; b=j4ediy6XBVf5uKNJuktyRCEWsT7lOoWlODFCAW5gp5gFt66CxfZLTURLJLJzizAJgo RSuJnHmYPNR1UjnIEBGPv2bMk0SddA8R3zSgUBr2UD5jb3ZU6j8wrJztijXRcGXdju+9 8WSRUbG4fv+/+mUyX0BrFknodBn7l2wkQnEk/xdTSuVM5JwedG5PNQ95QJqn4IJNPGuv e1MGnL1pqNkQUhGkrr8eryUglJI5+TIXmBbySHdft3HOnjY4B4Ak7dSNaJn9kx23L52n Gy833YE6OsPVzN2pXBuA+DROAQripPzrY4hZvNpoJRKhRuGG9IK7F0gf0rC0NVPmsIm7 0QYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=R4UK43hZlwabAzzEBuvlrt8StIK7OiOPqq5J59SVXhs=; fh=ofMv7648eDAg50Gcz4oju0zXK1WTx9dRqZb9P7bUfjU=; b=BgWtfHpdZNDqNYt096OCTPtzppT+RGz58msUX+DNTvqfcF331kz8uHF3mW/KMN9N8t Hf1iaGFXfbTbcUANuDLjNQiW0rw59/HD9o1t7WfHU01B/NDCUlEANfEw0Y7/g5VgR9vH qbLija2qbgV1jGrvE/JSH25hevCvbfV4srd7zvpQ2ma7XE3215LVCQkMtEyHuWQq0/6d u2yZVj3/sRp+Eulm34oJ6n0Fc3W2yoVQDetJRigRSsNqpi6P/iZlWYPhJkV6A3193dSa 5OyB5CgRJ9np4UgEIUvYYkXQbdXCvZRcmjYGgi80nvElklJ59wrRscNsUGljNuqr9ewx 8bbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=guAAzcAz; spf=pass (google.com: domain of linux-kernel+bounces-5600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bx2-20020a056a02050200b005c6248a0cd8si20586026pgb.23.2023.12.19.08.52.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:52:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=guAAzcAz; spf=pass (google.com: domain of linux-kernel+bounces-5600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B5BDB253C1 for ; Tue, 19 Dec 2023 16:50:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D483E22331; Tue, 19 Dec 2023 16:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="guAAzcAz" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E552C23769; Tue, 19 Dec 2023 16:49:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8369C433C7; Tue, 19 Dec 2023 16:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703004589; bh=R4UK43hZlwabAzzEBuvlrt8StIK7OiOPqq5J59SVXhs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=guAAzcAzwt3lyO3MlGj8pUpuMNSJHEcAwMNE3V34NOkp2QHOIkD+/Td9E6Rk9MdL5 x0x65A3tVJ9XFPP8tzWyPyOTbBVSEbtVIHgXX38PXbuIEDu+LjDOdEXDpNLlfftkdm 6b5SVkmA+Cod18DxDykF4HJyKkCKIqp0MKo0ZHjb4ZETdFlXjgcQ52wtReUQEbMJoQ S8NeJg75jcSmzCo2YopfmTP2zkGMYGyK3r0Y+f4CwEwpmgjJ4aGFt0v80nm0sqo01G uFGW+zX7iAuOETcoCGeDFP3Ht0MqqQmiSlft85auD0VqhXzVibLirDZXlx95aIV262 RE6fTHk2HMAWw== Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-20335dcec64so3194180fac.3; Tue, 19 Dec 2023 08:49:49 -0800 (PST) X-Gm-Message-State: AOJu0YzqWWGVbWJXWJRiIihssoh6HEd5xFcsE7i+a1Q3O+3v7juZ/Q3D lbqhNapAVUMi/eLoLSrpyHPc25oO/y6idqODYx4= X-Received: by 2002:a05:6870:a40d:b0:1fb:75a:6d45 with SMTP id m13-20020a056870a40d00b001fb075a6d45mr23293575oal.108.1703004589143; Tue, 19 Dec 2023 08:49:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219155659.1591792-1-jtornosm@redhat.com> In-Reply-To: <20231219155659.1591792-1-jtornosm@redhat.com> From: Masahiro Yamada Date: Wed, 20 Dec 2023 01:49:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] rpm-pkg: simplify installkernel %post To: Jose Ignacio Tornos Martinez Cc: dcavalca@meta.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 12:57=E2=80=AFAM Jose Ignacio Tornos Martinez wrote: > > The new installkernel application that is now included in systemd-udev > package allows installation although destination files are already presen= t > in the boot directory of the kernel package, but is failing with the > implemented workaround for the old installkernel application from grubby > package. > > For the new installkernel application, as Davide says: > < This isn't actually necessary afaict, and the current implementation > ends up triggering downstream issues such as > https://github.com/systemd/systemd/issues/29568 > This commit simplifies the logic to remove the shuffling. For reference, > the original logic was added in commit 3c9c7a14b627("rpm-pkg: add %post > section to create initramfs and grub hooks").>> > > But we need to keep the old behavior as well, because the old installkern= el > application from grubby package, does not allow this simplification and > we need to be backward compatible to avoid issues with the different > packages. > > Mimic Fedora shipping process and store vmlinuz, config amd System.map > in the module directory instead of the boot directory. In this way, we wi= ll > avoid the commented problem for all the cases, because the new destinatio= n > files are not going to exist in the boot directory of the kernel package. > > Replace installkernel tool with kernel-install tool, because the latter i= s > more complete. Suitable manual actions are added as a default if tool is = not > present (unusual). > > Special installation case for discontinued architecture ia64 has been > removed. This code does not exist any more. A patch applicable to linux-kbuild would be appreciated. --=20 Best Regards Masahiro Yamada