View previous topic :: View next topic |
Author |
Message |
SableEA n00b
Joined: 23 Aug 2024 Posts: 4 Location: Belarus
|
Posted: Fri Aug 30, 2024 9:01 pm Post subject: Do we have a kernel during installation |
|
|
I don't realize bow does gentoo installation works if we compiling kernel during installation
As far as I know, kernel is the binder between hardware and programs. Didn't compilers require a kernel? I googled that compiler is part of the kernel, but I don't know if there is a dependency between compiler and other kernel's parts.
What about emit? It doesn't look like kernel part so it should require the kernel, am I right? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1235 Location: Richmond Hill, Canada
|
Posted: Fri Aug 30, 2024 9:21 pm Post subject: Re: Do we have a kernel during installation |
|
|
SableEA wrote: | I googled that compiler is part of the kernel | Can you share where you find such information?
To be honest, I have never heard anybody said compiler is part of kernel.
Yes, kernel need compiler to build, that is true. but by design kernel once load into memory does not depend on anything. (may be except some kernel module files, but that part should be consider part of kernel and modules once load into memory, the module file no longer necessary)
BTW, Gentoo's Stage3 tarball does not contain kernel. Therefor in installation guild have step(s) that require build/download Linux kernel. |
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 629 Location: Fife, Scotland
|
Posted: Sat Aug 31, 2024 12:55 am Post subject: |
|
|
This is roughly how the Gentoo installation works ...
You boot a live image to start the installation - the live image provides the Linux kernel running at this point.
Then you download the stage file and unpack it onto your hard disk / SSD - this includes the compiler and associated build tools / libraries. At this point you're just using the live image to prep your disk.
Then you chroot to your disk - you're still using the Linux kernel belonging to the live image, but the filesystem you see from the command line is now the files you unpacked from the stage file. These stage 4 files are a functioning Gentoo image, so you can use emerge to update or install new packages (as soon as you've got the networking configured).
Then you use emerge to install whichever kernel sources you want, use make to build the kernel, sort out the boot method, and now your on-disk image has everything it needs to boot and run stand-alone. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5087 Location: Bavaria
|
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 629 Location: Fife, Scotland
|
Posted: Sat Aug 31, 2024 9:39 am Post subject: |
|
|
@pietinger Yup but I think OP is asking how you can be emerging stuff and running things before you've set up a kernel, any kernel. I probably went a bit too specific there at the end. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5087 Location: Bavaria
|
Posted: Sat Aug 31, 2024 9:43 am Post subject: |
|
|
wjb wrote: | @pietinger Yup but I think OP is asking how you can be emerging stuff and running things before you've set up a kernel, any kernel. [...] |
Yes.
wjb wrote: | [...] I probably went a bit too specific there at the end. |
No, your description is excellent. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
SableEA n00b
Joined: 23 Aug 2024 Posts: 4 Location: Belarus
|
Posted: Sat Aug 31, 2024 1:05 pm Post subject: Re: Do we have a kernel during installation |
|
|
pingtoo wrote: | SableEA wrote: | I googled that compiler is part of the kernel | Can you share where you find such information? |
I tried but didn't found where I reaad it. I found out about it indirectly. After exact qustion "is compiler a part of kernel" I understand that it isn't. Also I found this answer. It looks like false. |
|
Back to top |
|
|
SableEA n00b
Joined: 23 Aug 2024 Posts: 4 Location: Belarus
|
Posted: Sat Aug 31, 2024 1:23 pm Post subject: |
|
|
Thank for material! |
|
Back to top |
|
|
|