kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
To: Joontaek Oh <na94jun@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Why new kernel version cannot be installed on old Ubuntu?
Date: Sat, 05 Dec 2020 12:09:59 -0500	[thread overview]
Message-ID: <28736.1607188199@turing-police> (raw)
In-Reply-To: <CAFyvkd3jGrdKwdHp+Pfiy5xtqd7Vi6wC37NLXj22Xpv8P++=+w@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1361 bytes --]

On Sat, 05 Dec 2020 22:35:37 +0900, Joontaek Oh said:
> So, I am using my laptop with the multi-booting but it is too
> space-consuming.
>
> Moreover, I get work that needs to modify the kernel 3.10.0 for Centos, but
> the kernel 3.10.0 is not installed on the Ubuntu any version, and the
> kernel 3.10.61 or the kernel 4.18.0 is not installed on Centos.

Instead of installing 2 or 3 entire OSs, why not use grub2 for what it's intended for,
and just keep multiple kernels in /boot?

A 1 gigabyte /boot will hold 20 or so copies of vmlinuz- and matching initramfs-,
allowing you to have a 3.10.0, a 3.10.61, a 4.18.0, a 5.8-5.10 kernel or two, and
still have room for a dozen or so builds if you find a need to bisect something.

And the *vast* majority of stuff will Work Just Fine  even if the kernel version
doesn't match the /usr userspace - there's not a lot of programs that actually *use*
the new syscalls we've added since 3.10 or so, and glibc will paper over most of the
mismatches. Of course, *some* stuff needs to be a match, but those usually require
a *precise* uname match - 4.18.9-foo1  and 4.18.9-bar1 aren't matches for that sort of
thing, and the version you need is probably in the tools/ subdirectory of the kernel
source tree matching the running kernel.

If 1 gigabyte is too space consuming, you have *bigger* problems to deal with....

[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      parent reply	other threads:[~2020-12-05 17:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFyvkd3jGrdKwdHp+Pfiy5xtqd7Vi6wC37NLXj22Xpv8P++=+w@mail.gmail.com>
2020-12-05 16:09 ` Why new kernel version cannot be installed on old Ubuntu? Ezra Buehler
2020-12-05 17:09 ` Valdis Klētnieks [this message]

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=28736.1607188199@turing-police \
    --to=valdis.kletnieks@vt.edu \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=na94jun@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).