From mboxrd@z Thu Jan 1 00:00:00 1970 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 268D614A8F for ; Tue, 19 Dec 2023 08:44:02 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VMwxbP7J" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702975442; 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=VMwxbP7JZqrhZ1zvmnFqwHkTK03urzWPWrKoQbJUEomgOdQgFyse6S2ea91uD55JOJvhFu ys4q17GoPDDclJpLF0jOObCbVr4+3kkfmvJq8NQfm0V9jjomHFlxR2y9k8oDl4ej3yQrxr Bk9F4JM40r+FadvKq5JM8Xlk2Utgjv4= 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-kbuild@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