[Solved] Unable to emerge sys-kernel/gentoo-kernel-bin

Hi All,
This package is no longer installing on my system.
Look forward to your help on this!
Thanks in advance

  • russelld

The errors in /var/tmp/portage/sys-kernel/gentoo-kernel-bin/work/build.log:

>>> Extracting info
 * Package:    sys-kernel/gentoo-kernel-bin-6.1.55:6.1.55
 * Repository: gentoo
 * USE:        amd64 abi_x86_64 elibc_glibc initramfs kernel_linux
 * FEATURES:   ccache network-sandbox preserve-libs sandbox usersandbox
>>> Extracting sys-kernel/gentoo-kernel-bin-6.1.55
 * checking 22343 files for package collisions
 90% done,   2113 files remaining ...
100% done
>>> Merging sys-kernel/gentoo-kernel-bin-6.1.55 to /
/var/lib/calculate/profile.bashrc.d/40-pack-modules: line 18: linux_chkconfig_builtin: command not found
/var/lib/calculate/profile.bashrc.d/40-pack-modules: line 22: linux_chkconfig_builtin: command not found
--- /usr/
--- /usr/src/
--- /usr/src/linux-6.1.55-gentoo-dist/
.
.
.
>>> /lib/modules/6.1.55-gentoo-dist/build -> ../../..//usr/src/linux-6.1.55-gentoo-dist
>>> Safely unmerging already-installed instance...
>>> Original instance of package unmerged safely.
 * /usr/src/linux points at another kernel, leaving it as-is.
 * Please use 'eselect kernel' to update it when desired.
 * Assuming you do not have a separate /boot partition.
 * Building initramfs via dracut ...
dracut: Executing: /usr/bin/dracut --force --kernel-image /usr/src/linux-6.1.55-gentoo-dist/arch/x86/boot/bzImage /usr/src/linux-6.1.55-gentoo-dist/arch/x86/boot/initrd 6.1.55-gentoo-dist
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd' will not be installed, because command '/lib/systemd/systemd' could not be found!
dracut: dracut module 'systemd-ask-password' will not be installed, because command 'systemd-ask-password' could not be found!
dracut: dracut module 'systemd-ask-password' will not be installed, because command 'systemd-tty-ask-password-agent' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-hostnamed' will not be installed, because command 'hostnamectl' could not be found!
dracut: dracut module 'systemd-hostnamed' will not be installed, because command '/lib/systemd/systemd-hostnamed' could not be found!
dracut: dracut module 'systemd' will not be installed, because command '/lib/systemd/systemd' could not be found!
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/systemd-integritysetup' could not be found!
dracut: dracut module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-integritysetup-generator' could not be found!
dracut: dracut module 'systemd-journald' will not be installed, because command 'journalctl' could not be found!
dracut: dracut module 'systemd-journald' will not be installed, because command '/lib/systemd/systemd-journald' could not be found!
dracut: dracut module 'systemd-modules-load' will not be installed, because command '/lib/systemd/systemd-modules-load' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command 'networkctl' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-networkd' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-network-generator' could not be found!
dracut: dracut module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found!
dracut: dracut module 'systemd-portabled' will not be installed, because command '/lib/systemd/systemd-portabled' could not be found!
dracut: dracut module 'systemd-pstore' will not be installed, because command '/lib/systemd/systemd-pstore' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut: dracut module 'systemd-resolved' will not be installed, because command '/lib/systemd/systemd-resolved' could not be found!
dracut: dracut module 'systemd-rfkill' will not be installed, because command '/lib/systemd/systemd-rfkill' could not be found!
dracut: dracut module 'systemd-sysctl' will not be installed, because command '/lib/systemd/systemd-sysctl' could not be found!
dracut: dracut module 'systemd-sysext' will not be installed, because command 'systemd-sysext' could not be found!
dracut: dracut module 'systemd-sysusers' will not be installed, because command 'systemd-sysusers' could not be found!
dracut: dracut module 'systemd-timedated' will not be installed, because command 'timedatectl' could not be found!
dracut: dracut module 'systemd-timedated' will not be installed, because command '/lib/systemd/systemd-timedated' could not be found!
dracut: dracut module 'systemd-timesyncd' will not be installed, because command '/lib/systemd/systemd-timesyncd' could not be found!
dracut: dracut module 'systemd-timesyncd' will not be installed, because command '/lib/systemd/systemd-time-wait-sync' could not be found!
dracut: dracut module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/systemd-veritysetup' could not be found!
dracut: dracut module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-veritysetup-generator' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-legacy' will not be installed, because command 'dhclient' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'network-legacy' will not be installed, because command 'dhclient' could not be found!
dracut: dracut module 'calculate' depends on 'network-legacy', which can't be installed
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'network' depends on 'network-legacy', which can't be installed
dracut: dracut module 'cifs' depends on 'network', which can't be installed
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' depends on 'network', which can't be installed
dracut: dracut module 'nfs' depends on 'network', which can't be installed
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut: dracut module 'dracut-systemd' depends on 'systemd-initrd', which can't be installed
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'calculate' cannot be found or installed.
 [ !! ]
 * Building initramfs failed
 * 
 * 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-bin:6.1.55
 * ERROR: sys-kernel/gentoo-kernel-bin-6.1.55::gentoo failed (postinst phase):
 *   Kernel install failed, please fix the problems and run emerge --config sys-kernel/gentoo-kernel-bin:6.1.55
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called pkg_postinst
 *   environment, line 1978:  Called kernel-install_pkg_postinst
 *   environment, line 1505:  Called kernel-install_install_all '6.1.55-gentoo-dist'
 *   environment, line 1491:  Called die
 * The specific snippet of code:
 *           die "Kernel install failed, please fix the problems and run emerge --config ${CATEGORY}/${PN}:${SLOT}";
* 
 * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.1.55::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.1.55::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.1.55/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.1.55/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.1.55/empty'
 * S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.1.55/work/gentoo-kernel-bin-6.1.55'
 * FAILED postinst: 1

Why don’t you like the default sys-kernel/calculate-sources ?

Hi AlexOmskiy,
Thank you for the interesting suggestion.
sys-kernel/calculate-sources is providing the kernel that the machine is currently using.
While not fatal to operation of machine, to delete this package would disable further updates with any working binary kernels.
I will try this.
cheers

Sorted it out!
Clues are in /var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.1.55/temp/build.log

  1. Note the modules not installed
  2. Search the modules in Gentoo Wiki page on Dracut
    Some will not be available as yet to be ported from Red Hat.
  3. Install the packages for each module
  4. Remove packaged gentoo-kernel-bin-6.1.55 from /var/calculate/packages/x86_64/sys-kernel/
  5. Reinstall gentoo-kernel-bin:
    # emerge -va sys-kernel/gentoo-kernel-bin
  6. Note successful installation:
        * Building initramfs via dracut ...
        * Installing the kernel via installkernel ...
         >>> Auto-cleaning packages...
        >>> No outdated packages were found on your system.
       * GNU info directory index is up-to-date.
  1. Update portage to prefered kernel
     # eselect kernel list
    Available kernel symlink targets:                                                                                                             
   [1]   linux-6.1.39-calculate *                                                                                                             
   [2]   linux-6.1.55-gentoo-dist  
    # eselect kernel set 2
  1. Update modules
    # eselect -va @module-rebuild
  2. Rebuild grub.cfg
    # grub-mkconfig -o /boot/grub/grub.cfg
  3. reboot system in to new shiny new kernel :grinning:
1 Like