Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernell - mess
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Wed Jan 10, 2024 6:18 am    Post subject: kernell - mess Reply with quote

Problem 1.)

I have a new installation and was using only "linux-6.1.57-gentoo" kernel
Instead of grub, I am using "refind" and in "/boot" I only had one kernel in there:
Code:

i5_new /usr/src/linux # ll /boot
total 30172
drwxr-xr-x 6 root root     4096 Dec 30 11:32 EFI
-rwxr-xr-x 1 root root  4589397 Dec 30 10:26 System.map-6.1.57-gentoo
-rwxr-xr-x 1 root root   140437 Dec 30 10:26 config-6.1.57-gentoo
-rwxr-xr-x 1 root root 14220288 Dec 30 10:38 intel-uc.img
-rwxr-xr-x 1 root root      270 Dec 30 10:36 refind_linux.conf
-rwxr-xr-x 1 root root 11927648 Dec 30 10:26 vmlinuz-6.1.57-gentoo


During today's upgrade
    package sys-kernel/gentoo-kernel-6.1.69 merged on i5_new with notice

emerge with error notice that /boot is not mounted
Code:
LOG: install
Your configuration for sys-kernel/gentoo-kernel-6.1.69 has been saved in
"/etc/portage/savedconfig/sys-kernel/gentoo-kernel-6.1.69" for your editing pleasure.
You can edit these files by hand and remerge this package with
USE=savedconfig to customise the configuration.
You can rename this file/directory to one of the following for
its configuration to apply to multiple versions:
${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
[${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
ERROR: postinst
FAILED postinst: 1
LOG: postinst
/usr/src/linux points at another kernel, leaving it as-is.
Please use 'eselect kernel' to update it when desired.
ERROR: postinst
Your boot partition is not mounted at /boot.
Please mount it and retry.
/boot not mounted

The kernel files were copied to disk successfully but the kernel
was not deployed successfully.  Once you resolve the problems,
please run the equivalent of the following command to try again:

    emerge --config sys-kernel/gentoo-kernel:6.1.69
ERROR: sys-kernel/gentoo-kernel-6.1.69::gentoo failed (postinst phase):
  Kernel install failed, please fix the problems and run emerge --config sys-kernel/gentoo-kernel:6.1.69

I'm surprized since I've never seen this message before, why do I have to have /boot mounted?
Is it because I'm using "refind, instead of grub" (I'm new to refind)

So I mounted /boot and run as instructed:
Code:
emerge --config sys-kernel/gentoo-kernel:6.1.69

after emerge I found in /boot ???: these entries:
Code:
i5_new /home/fd # ll /boot
total 226820
drwxr-xr-x 6 root root     4096 Jan  8 22:32 EFI
-rwxr-xr-x 1 root root  4697322 Jan  8 15:10 System.map-6.1.57-gentoo
-rwxr-xr-x 1 root root  4589397 Dec 30 10:26 System.map-6.1.57-gentoo.old
-rwxr-xr-x 1 root root  6294590 Jan  9 19:14 System.map-6.1.69-gentoo-dist
-rwxr-xr-x 1 root root  6294590 Jan  9 18:49 System.map-6.1.69-gentoo-dist.old
-rwxr-xr-x 1 root root   140765 Jan  8 15:10 config-6.1.57-gentoo
-rwxr-xr-x 1 root root   140437 Dec 30 10:26 config-6.1.57-gentoo.old
-rwxr-xr-x 1 root root   249486 Jan  9 19:14 config-6.1.69-gentoo-dist
-rwxr-xr-x 1 root root   249486 Jan  9 18:49 config-6.1.69-gentoo-dist.old
-rwxr-xr-x 1 root root 72528688 Jan  9 19:14 initramfs-6.1.69-gentoo-dist.img
-rwxr-xr-x 1 root root 72527533 Jan  9 18:49 initramfs-6.1.69-gentoo-dist.img.old
-rwxr-xr-x 1 root root 14220288 Dec 30 10:38 intel-uc.img
-rwxr-xr-x 1 root root      270 Dec 30 10:36 refind_linux.conf
-rwxr-xr-x 1 root root 12267104 Jan  8 15:10 vmlinuz-6.1.57-gentoo
-rwxr-xr-x 1 root root 11927648 Dec 30 10:26 vmlinuz-6.1.57-gentoo.old
-rwxr-xr-x 1 root root 13053792 Jan  9 19:14 vmlinuz-6.1.69-gentoo-dist
-rwxr-xr-x 1 root root 13053792 Jan  9 18:49 vmlinuz-6.1.69-gentoo-dist.old

Where all these entires came from!?
I "world" wirth regards to kernel I have
Code:
sys-kernel/gentoo-kernel
sys-kernel/gentoo-sources
sys-kernel/gentoo-sources:6.1.57


/user/src:
Code:
i5_new /home/fd # ll /usr/src/
total 16
lrwxrwxrwx  1 root root   19 Dec  4 11:48 linux -> linux-6.1.57-gentoo
drwxr-xr-x 27 root root 4096 Jan  8 12:24 linux-6.1.57-gentoo
drwxr-xr-x 27 root root 4096 Dec 15 16:51 linux-6.1.67-gentoo
drwxr-xr-x 26 root root 4096 Jan  9 18:24 linux-6.1.69-gentoo-dist
drwxr-xr-x  7 root root 4096 Jan  8 22:22 rpm


Problem 2.)
Before running "emerge --depclean"
I try to double check with: emerge --update --newuse --deep @world
and run into conflict:
Code:
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

sys-libs/gdbm:0

  (sys-libs/gdbm-1.23:0/6::gentoo, ebuild scheduled for merge) USE="nls readline -berkdb -static-libs -test -verify-sig" ABI_X86="(64) -32 (-x32)" conflicts with
    sys-libs/gdbm:0/6=[berkdb] required by (dev-lang/python-3.12.1:3.12/3.12::gentoo, installed) USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build -debug -examples -libedit -lto -pgo -test -tk -valgrind -verify-sig" ABI_X86="(64)"
                       ^^^^^^
    sys-libs/gdbm:=[berkdb] required by (dev-lang/python-3.11.7:3.11/3.11::gentoo, installed) USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build -debug -examples -libedit -pgo -test -tk -valgrind -verify-sig" ABI_X86="(64)"
                    ^^^^^^
    sys-libs/gdbm:0/6=[berkdb] required by (dev-lang/python-3.11.7:3.11/3.11::gentoo, installed) USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build -debug -examples -libedit -pgo -test -tk -valgrind -verify-sig" ABI_X86="(64)"
                       ^^^^^^
    sys-libs/gdbm:=[berkdb] required by (dev-lang/python-3.12.1:3.12/3.12::gentoo, installed) USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build -debug -examples -libedit -lto -pgo -test -tk -valgrind -verify-sig" ABI_X86="(64)"
                    ^^^^^^

media-libs/tiff:0

  (media-libs/tiff-4.6.0:0/6::gentoo, ebuild scheduled for merge) USE="cxx jpeg zlib -jbig -lzma -static-libs -test -verify-sig -webp -zstd" ABI_X86="(64) -32 (-x32)" conflicts with
    <media-libs/tiff-4.6:= required by (net-misc/hylafaxplus-7.0.6-r4:0/0::gentoo, installed) USE="lcms mgetty pam -html -jbig -ldap" ABI_X86="(64)"
    ^                ^^^ 
    <media-libs/tiff-4.6:0/6= required by (net-misc/hylafaxplus-7.0.6-r4:0/0::gentoo, installed) USE="lcms mgetty pam -html -jbig -ldap" ABI_X86="(64)"
    ^                ^^^     


How to resolve it?
It looks like there are dependency conflicts involving the packages sys-libs/gdbm and media-libs/tiff in the system.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1854
Location: Germany

PostPosted: Wed Jan 10, 2024 6:43 am    Post subject: Reply with quote

Problem 1.
A good read about kernel upgrade: https://wiki.gentoo.org/wiki/Kernel/Upgrade. Please read and decide which route you want to take before doing anything further.

In short:
/boot is a directory on which the a seperate partition is mapped to (if you followed the install handbook). Since the boot stuff is only needed at boot, the partition for boot is unmounted after. So to update your kernel /boot needs to be mounted.
If you do not do this, the data will be stored in this directory but not in the correct partition, thus the confusing why there are more/other files in there after mount.
The .old files do come from kernel updates. It is a copy from the previous kernel and needs to be removed manually.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Wed Jan 10, 2024 7:00 am    Post subject: Reply with quote

I run:
emerge --noreplace =sys-kernel/gentoo-sources-6.1.57

since I want to keep this kernel, but running:
Code:
emerge --ask --depclean gentoo-sources
wants to remove it?
Code:
Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 sys-kernel/gentoo-sources
    selected: 6.1.57 6.1.67
   protected: none
     omitted: none

All selected packages: =sys-kernel/gentoo-sources-6.1.57 =sys-kernel/gentoo-sources-6.1.67


How to clean/unmerge: "linux-6.1.69-gentoo-dist" it shouldn't be there
It is not listed for removal
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Wed Jan 10, 2024 7:32 am    Post subject: Reply with quote

Solved!
removing "-berkdb" from USE = in make.conf (my error)

and masking "media-libs/tiff-4.6.0" solve it, hylfaxplus need <tiff-4.6
I think these kind of conflicts should be resolve by portage automatically
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1994

PostPosted: Wed Jan 10, 2024 1:28 pm    Post subject: Reply with quote

Joseph_sys wrote:
Solved!
removing "-berkdb" from USE = in make.conf (my error)

and masking "media-libs/tiff-4.6.0" solve it, hylfaxplus need <tiff-4.6
I think these kind of conflicts should be resolve by portage automatically

Portage is resolving it and giving (overly verbose) messages that something was skipped.
The first case was user error and it is saying "what is installed is correct and better than the proposed change".
It is not really a problem on the second case an could be ignored until hylafaxplus is updated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum