public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can't get the GUI to stay up for more than a minute or so before crashing
Date: Tue, 25 Jun 2024 10:34:20 +0100	[thread overview]
Message-ID: <1896954.CQOukoFCf9@rogueboard> (raw)
In-Reply-To: <bf7c73f5-c496-117e-bd0e-1227c52f0661@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3867 bytes --]

On Tuesday, 25 June 2024 00:47:07 BST Dale wrote:
> Michael wrote:

> > The first option in the man page explains what you did:
> > 
> > https://linux.die.net/man/8/dracut
> > 
> > -f, --force
> > overwrite existing initramfs file.
> > 
> > Did you have an initramfs already in there?
> 
> I had the kernel and the config file on /boot.

Did these files arrived in /boot/ by installing them yourself manually, or by 
having them installed automatically by calling 'make install', which utilised 
'sys-kernel/installkernel' to do it with?

If the latter, did 'sys-kernel/installkernel' have the right USE flags set for 
your system?


> I did not have anything
> else there except grub and the CPU microcode file.  I didn't save the
> init thingy when I was copying files over from previous install.  I just
> saved the config and kernel.

I suspect you may have overlaid manual and automated kernel installation 
procedures, resulting in one trying to over-write the other.  Then you run 
dracut and it complained, until you used --force to overwrite whatever files 
had already been installed in /boot.


> > No don't start over!  Have you read through this:
> > 
> > https://wiki.gentoo.org/wiki/Dracut
[snip ...]

> Yep.  I saw that too.  Thing is, it confuses me.  On the main install
> page, it shows /efi mounted on the / partition.  In other words, the
> same place /boot, /usr and /var are mounted too.  In the page you link
> to it seems to show the efi partition mounted inside /boot.  Like this: 
> /boot/efi.  The main page I think says this is no longer recommended. 
> Which am I to follow?  If it being inside /boot is discouraged, someone
> needs to update the page. 

Err ... you lost me there.  Where in the 'https://wiki.gentoo.org/wiki/Dracut' 
wiki page does it state what you mention above?!  o_O

The ESP partition's mountpoint is /efi.  Some time ago the ESP mountpoint used 
to be /boot/efi, but this is no longer recommended.

The boot partition's mountpoint for your installation is /boot.

The directories for /usr, /var, et al. will be found in the / partition.  If 
you have chosen for your /var directory to be stored on a different partition, 
then its mountpoint would be /var.


> I'm continuing on with the install but still puzzled about the dracut
> error.  Is this what /efi should look like? 
> 
> 
> (chroot) livecd / # tree /efi/
> /efi/
> └── EFI
>     └── gentoo
>         └── grubx64.efi
> 
> 3 directories, 1 file
> (chroot) livecd / #

Yes, this looks good.  The MoBo's UEFI firmware will load grubx64.efi, which 
in turn will fetch your kernel & initrd images from /boot.


> I never looked in the directory on the last install.  Nothing reported a
> error so I just went with it.  ;-)

I'm guessing, in your last install you had not mixed up manual and automated 
kernel installation steps, but in this one you did.  ;-)

You probably want to spend some quality time reading this at your leisure:

https://wiki.gentoo.org/wiki/Installkernel

Regarding the microcode file '/boot/amd-uc.img', this is created by the 'sys-
kernel/linux-firmware' package if it has USE="initramfs" set.  GRUB will find 
pick up this image file and include it along with any other initramfs images 
when you run grub-mkconfig, or when grub-mkconfig is run by 'make install'.  
Then GRUB will load it at boot time.  However, you can built both the AMD CPU 
microcode and any other firmware needed by your machine in the kernel.  Just 
add them in your kernel:

# Firmware loader
CONFIG_EXTRA_FIRMWARE="....."

before you build it.

Regarding Nvidia's module, I don't think you need an initramfs for this.  When 
the kernel loads it will fetch the Nvidia module from /lib/modules/, provided 
it can mount the root partition.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-06-25  9:34 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21 19:02 [gentoo-user] Can't get the GUI to stay up for more than a minute or so before crashing Dale
2024-06-22 11:49 ` Michael
2024-06-22 13:32   ` Jude DaShiell
2024-06-22 16:12   ` Dale
2024-06-22 18:13     ` Dale
2024-06-22 18:54       ` Dale
2024-06-22 20:04       ` Michael
2024-06-23  1:21         ` Dale
2024-06-23  9:13           ` Michael
2024-06-23  7:20         ` Wols Lists
2024-06-23  0:13 ` Mark Knecht
2024-06-23  1:30   ` Dale
2024-06-23  7:53     ` Dale
2024-06-23  9:20       ` Michael
2024-06-23 12:19         ` Dale
2024-06-23 14:22           ` Michael
2024-06-23 22:37             ` Dale
2024-06-24  0:01               ` Michael
2024-06-24  1:55                 ` Dale
2024-06-24  2:53                   ` William Kenworthy
2024-06-24  5:19                     ` Dale
2024-06-24  9:03                       ` Michael
2024-06-24 13:25                         ` Dale
2024-06-24 14:29                           ` Dale
2024-06-24 14:57                             ` Peter Humphrey
2024-06-24 16:00                             ` Michael
2024-06-24 15:38                           ` Michael
2024-06-24 16:54                             ` Dale
2024-06-24 17:31                               ` Michael
2024-06-24 19:47                                 ` Dale
2024-06-24 20:43                                   ` Michael
2024-06-24 21:03                                     ` Dale
2024-06-24 21:22                                       ` [gentoo-user] " Grant Edwards
2024-06-24 21:52                                         ` Dale
2024-06-24 23:00                                           ` Michael
2024-06-24 23:54                                             ` Dale
2024-06-24 22:48                                       ` [gentoo-user] " Michael
2024-06-24 23:47                                         ` Dale
2024-06-25  9:34                                           ` Michael [this message]
2024-06-25 10:18                                             ` Dale
2024-06-24  7:15                   ` Wols Lists
2024-06-24  8:38                   ` Michael
2024-06-25 14:27 ` Dale
2024-06-25 16:23   ` Michael
2024-06-25 18:54     ` Dale
2024-06-25 23:23       ` Michael
2024-06-26  0:28         ` [gentoo-user] SOLVED " Dale
2024-06-26  8:30           ` Michael
2024-06-26 20:32             ` [gentoo-user] " Dale
2024-06-27  6:54               ` Dale
2024-06-27 18:27                 ` Michael
2024-06-27 19:09                 ` Mark Knecht
2024-06-27 21:06                   ` Dale
2024-06-27 21:45                     ` Michael
2024-06-27 22:52                       ` Dale
2024-06-28 11:01                         ` Michael
2024-06-28 21:25                           ` Dale
2024-06-29 13:24                             ` [gentoo-user] " Grant Edwards
2024-06-29  7:36                           ` [gentoo-user] " Dale
2024-06-29 20:30                             ` Dale
2024-06-29 21:12                               ` Jack
2024-06-29 22:28                                 ` Dale
2024-06-29 22:14                               ` Michael
2024-06-29 23:20                                 ` Mark Knecht
2024-06-30  0:24                                   ` Dale
2024-06-30  9:35                                     ` Dale
2024-06-30  9:36                                     ` Dale
2024-06-30 10:51                                       ` Michael
2024-06-30 22:56                                         ` Dale
2024-07-01 13:24                                           ` Michael
2024-07-01 13:51                                             ` Dale
2024-06-27 22:18                     ` Mark Knecht
2024-06-27 23:01                       ` Dale
2024-06-27 23:27                         ` Mark Knecht
2024-06-28  5:10                           ` Dale
2024-06-28 13:39                             ` Mark Knecht
2024-06-28 21:40                               ` Dale
2024-06-28 21:50                                 ` Mark Knecht
2024-06-29  3:55                                   ` Dale
2024-06-27  4:10             ` Dale

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=1896954.CQOukoFCf9@rogueboard \
    --to=confabulate@kintzios.com \
    --cc=gentoo-user@lists.gentoo.org \
    /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