Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp360738rdh; Tue, 19 Dec 2023 00:44:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGF0TMqFvMuxBAhqEfZMJZjvVK8ubXcNf/CWTVigW+bJhJUBFWmpsj/OEzjnqKM1NgIodGo X-Received: by 2002:a05:6871:73a0:b0:1fa:548:5124 with SMTP id na32-20020a05687173a000b001fa05485124mr20534424oac.15.1702975461420; Tue, 19 Dec 2023 00:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702975461; cv=none; d=google.com; s=arc-20160816; b=p7nsvAelat9Ulz4z9SX2Vk/M/Sn30Ge+hPXxjOD9pK8D/gemYOO3j7t+6fVmMDL3PC wnxfEPdQw1tTBU+HjXF3TC1b5/gdF8aN58S93b4qLE1DRnHqjZZQ/xaz4uTqyBUL7JCv ZF/Z/KgLgK9YBG35W6yN7B4rWZLEluhQ4nrn91FHW4/k8rqNcHpwjIhmIZ6/XKAUCXRS xcYBif5Eb8ukCZnyvfF6pJjf+c1GSQm4DO6QAF87kRUzsg/I2nGPLdbLfWCfqpeiYv3E DPj1643GbuM4gb/JnJhwqu/WaPq1y3IboxrLvd5+3UXZ/Mxn9mfoq8FhugEIQ7TrnDFq U66g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YrvSxLZe9VcQ9K/emlKRK2E9t4qFRR6zMV18jSkIVOA=; fh=UtjiNYbYZwpSkQBvFYcjoqZCLQVWRkcJXV3l/BIBQoQ=; b=jiJ7XEZUD3dWi/Zj1CZI/a3gpHw+06jjY5ShTxPQ6oLWhs8t1ns9K2Vont59i4fbR2 G1Vuo3uBjBNHhS4qSnD6I7Re+JGMri97IZsVcIPO6d5kX7QPDmPfYGN2MFdo9E+Sj2LU XvNqV76vHhwMoR35XeNVccREt3fxrLxhTU7XoOh+deE5cKYl8gPy1GU0VO5bdG31k+v7 DjCJPV5ZwoL+q+Se1URgtYCr1cqdUWaUeVLH6KQxRRG+BVtwQcnrMN4RGRR5IXOAfBbo akmWmaZ6pe95FfTy6XCZOpWPuLsG4F2JZbm0f2oEsC4aH4a07DxZc5yl2VBQCqd7LUi4 c4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FNKzLMdo; spf=pass (google.com: domain of linux-kernel+bounces-4903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o13-20020a65614d000000b005c65ac797acsi19116042pgv.360.2023.12.19.00.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 00:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FNKzLMdo; spf=pass (google.com: domain of linux-kernel+bounces-4903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 900C52857ED for ; Tue, 19 Dec 2023 08:44:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95D7B1172A; Tue, 19 Dec 2023 08:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FNKzLMdo" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 6FC2A14A84 for ; Tue, 19 Dec 2023 08:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702975440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YrvSxLZe9VcQ9K/emlKRK2E9t4qFRR6zMV18jSkIVOA=; b=FNKzLMdoevpWCliScbnK0MDVTqizt2xFyx+bEe4pCuPwa7o4m7cKo2wAFXFPcyXwOh3RKC PIB2nZU0UN63WS/vtU27nkPNAmJRC4GYvMXyFmlBzmvkOefi7fd5hSsaS74aCwSQP3KjKW 0AUlUmCvovi2QKvC0Wqy18efLYyPF2Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-675-eA42ncFKN6Ksu-0UYqq83Q-1; Tue, 19 Dec 2023 03:43:58 -0500 X-MC-Unique: eA42ncFKN6Ksu-0UYqq83Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 197EA280FEC7; Tue, 19 Dec 2023 08:43:58 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.165]) by smtp.corp.redhat.com (Postfix) with ESMTP id 979001121313; Tue, 19 Dec 2023 08:43:55 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: masahiroy@kernel.org Cc: dcavalca@meta.com, jtornosm@redhat.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, nicolas@fjasle.eu, stable@vger.kernel.org Subject: Re: [PATCH v2] rpm-pkg: simplify installkernel %post Date: Tue, 19 Dec 2023 09:43:50 +0100 Message-ID: <20231219084354.464320-1-jtornosm@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Hello Masahiro, > Fedora ships vmlinux, config, System.map in the module directory. > Why don't you mimic it? > Change the %install section to install them to > /lib/modules/%{KERNELRELEASE}/. Ok, I did not dare to change a lot of things, overall in other sections. I like the idea of imitating Fedora and making it easier. > Then, change %post section to copy them to /boot/. > If you take care of an unusual case where installkernel > is not found, you can support manual copy as a fallback. Ok, much clear in this way (and independent of software packages). Again, good idea. > Maybe, you can also convert the installkernel syntax to > kernel-install while you are here. Ok, that tool is more complete, I will try. The next version will include all of this. Thank you Best rgards José Ignacio