On 7/22/25 11:49 AM, Dennis Clarke wrote:

> Now I am looking at the page in the handbook where it says we do then
> "Installing a distribution kernel" and I want to run :
> 
> # emerge --ask sys-kernel/gentoo-kernel
> 
> That fails with a baffling message :
> 
> chroot# /usr/bin/time -p /usr/bin/nice -n +19 emerge --ask --verbose
> sys-kernel/gentoo-kernel
> --- Invalid atom in /etc/portage/package.use/zz-autounmask: dracut

[...]

> The following USE changes are necessary to proceed:
>  (see "package.use" in the portage(5) man page for more details)
> # required by sys-kernel/gentoo-kernel-6.15.7::gentoo[initramfs]
> # required by virtual/dist-kernel-6.15.7::gentoo
>>=sys-kernel/installkernel-60 dracut
> 
> Would you like to add these changes to your config files? [Yes/No] Yes

[...]

> I have no idea what is needed in that file :
> 
> chroot# cat  /etc/portage/package.use/zz-autounmask
> # package.use
> dracut
> chroot#
> 
> Also "Invalid atom" is a total mystery.
> 
> Is there a simple way to proceed here?


The package.use file contains a series of lines, each of which is an
"atom" followed by whitespace followed by USE flags to use.

Atoms are documented in emerge(1) as a reference to ebuild(5) which
tells us an atom is a package name in full "category/package" format,
and extended atoms with versions / slots / comparison operators are
">=category/package-version".

The message "> The following USE changes are necessary to proceed:" told
you the file contents to add (two comment lines and a code line):


# required by sys-kernel/gentoo-kernel-6.15.7::gentoo[initramfs]
# required by virtual/dist-kernel-6.15.7::gentoo
>=sys-kernel/installkernel-60 dracut


Where ">=sys-kernel/installkernel-60" is an atom (greater than or equal
to version 60 of the package name sys-kernel/installkernel).

You said yes, it should write that out. But then,

 * IMPORTANT: 3 config files in '/etc/portage' need updating.

Indicates you need to run dispatch-conf to apply the updates.


Your file actually contains "dracut" which is just the second half of a
package.use directive -- it is missing the sys-kernel/installkernel atom.


-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to