mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavin Joseph <me@pavinjoseph.com>
To: Thorsten Leemhuis <linux@leemhuis.info>,
	Linux regressions mailing list <regressions@lists.linux.dev>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Linux Doc Mailing List <linux-doc@vger.kernel.org>
Subject: Re: guide on bisecting (was Re: [REGRESSION] kexec does firmware reboot in kernel v6.7.6)
Date: Sun, 3 Mar 2024 15:47:44 +0530	[thread overview]
Message-ID: <66019e35-5adb-4817-a64d-e379b6f4240a@pavinjoseph.com> (raw)
In-Reply-To: <4630483e-fc4e-448d-8fd6-916d3422784e@leemhuis.info>

On 3/3/24 14:06, Thorsten Leemhuis wrote:

> That being said: I think I might know what sent you sideways: the main
> section lacked a "git remote add -t master stable
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git". :-((

Now that I read through it with a fresh pair of eyes, this is exactly 
the problem!

>> 2. The "installkernel" command is called "kernel-install" in OpenSuse,
> 
> Yeah, it looks like that, but that's not really the case. :-) In short:
> on Fedora "installkernel" calls into kernel-install -- and
> "installkernel" has a long history, so doing what Fedora does is likely
> a wise thing for distros. And openSUSE had a "installkernel" as well,
> which was part of the dracut package. Not sure if that is still the case
> for current Leap and Tumbleweed. Could you check?

It's not available even as a symlink in OpenSuse TW / Slowroll I'm afraid.

suse-pc:~ # whereis installkernel
installkernel:
suse-pc:~ # whereis kernel-install
kernel-install: /usr/bin/kernel-install 
/usr/share/man/man8/kernel-install.8.gz
suse-pc:~ # man kernel-install | grep -i installkernel
        installkernel [OPTIONS...] VERSION VMLINUZ [MAP] [INSTALLATION-DIR]
        When invoked as installkernel, this program accepts arguments as 
specified by the kernel build system's make install command. The VERSION 
and VMLINUZ parameters

>> and it doesn't really perform all the steps to install kernel. It calls
>> dracut to create initramfs though, but that's hardly much help.
> 
> Could you please elaborate a bit on that "hardly much help", as I'm not
> really sure what you exactly mean here. Are you and/or openSUSE normally
> not using dracut?

I meant that calling kernel-install in OpenSuse only seems to then call 
dracut to build an initramfs for the kernel. I can call dracut myself 
without adding an unnecessary middleman (kernel-install) in the process 
and less verbosely too: dracut --kver $(make -s kernelrelease)

Perhaps you could add generic details such as I provided in the 
reference section for distros where installkernel doesn't exist or don't 
perform all the steps required.

>> 3. The dependencies for kernel building in OpenSuse and other major
>> distros are incomplete,
> 
> So what was missing?

Sorry, I don't remember. The compile/build threw some error and I looked 
up how to install kernel building dependencies in OpenSuse only to find 
out there was a pattern for it already.

Perhaps you could list the basic dependencies in the main section and 
provide the collection/patterns in the reference section.

>> 4. The command to build RPM package (make binrpm-pkg) fails as the
>> modules are installed into "/home/<user>/linux/.../lib" while depmod
>> checks for modules in "/home/<user>/linux/.../usr/lib".
> 
> That sounds like a bug that should be reported and fixed, not something
> that docs should catch and work around. Could you report that?

Please, could you tell me where to report this bug? Kernel bugzilla? 
Which category/component? Thanks for all your help 😉

Kind regards,
Pavin Joseph.

  reply	other threads:[~2024-03-03 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3a1b9909-45ac-4f97-ad68-d16ef1ce99db@pavinjoseph.com>
     [not found] ` <7ebb1c90-544d-4540-87c0-b18dea963004@leemhuis.info>
     [not found]   ` <3a8453e8-03a3-462f-81a2-e9366466b990@pavinjoseph.com>
     [not found]     ` <a84c1a5d-3a8a-4eea-9f66-0402c983ccbb@leemhuis.info>
     [not found]       ` <806629e6-c228-4046-828a-68d397eb8dbc@pavinjoseph.com>
2024-03-03  8:36         ` Thorsten Leemhuis
2024-03-03 10:17           ` Pavin Joseph [this message]
2024-03-04  6:16             ` Thorsten Leemhuis
2024-03-04 18:03               ` Pavin Joseph
2024-03-05  6:12                 ` Thorsten Leemhuis
2024-03-04 16:56             ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66019e35-5adb-4817-a64d-e379b6f4240a@pavinjoseph.com \
    --to=me@pavinjoseph.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®