LINUX.ORG.RU

Не могу сгенерировать initramfs

 , ,


0

1

Ошибка:

* Gentoo Linux Genkernel; Version 4.2.3
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=/path/to/used/kernel.config initramfs
* ERROR: --kernel-config file '/path/to/used/kernel.config' does not exist!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
* 
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
* 
* Please do *not* report kernel compilation failures as genkernel bugs!
* 

Логи:

>>> Started genkernel v4.2.3 on: 2021-07-17 04:01:12
* CMD_INSTALL: yes
* CMD_KERNEL_CONFIG: /path/to/used/kernel.config
* Gentoo Linux Genkernel; Version 4.2.3^[[0m
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=/path/to/used/kernel.config initramfs
* Resolving config file, command line, and arch default settings.
*   TMPDIR defaulted to "/var/tmp/genkernel".
*   LOGFILE set in config file to "/var/log/genkernel.log".
*   KERNEL_DIR defaulted to "/usr/src/linux-5.10.49-gentoo-r1".
*   KERNEL_MODULES_PREFIX not set.
*   KERNEL_SOURCES defaulted to "yes".
*   INITRAMFS_FILENAME defaulted to "initramfs-%%KV%%.img".
*   INITRAMFS_SYMLINK_NAME defaulted to "initramfs".
*   KERNEL_CONFIG_FILENAME defaulted to "kernel-config-%%KV%%".
*   KERNEL_FILENAME defaulted to "vmlinuz-%%KV%%".
*   KERNEL_SYMLINK_NAME defaulted to "kernel".
*   SYSTEMMAP_FILENAME defaulted to "System.map-%%KV%%".
*   SYSTEMMAP_SYMLINK_NAME defaulted to "System.map".
*   CHECK_FREE_DISK_SPACE_BOOTDIR not set.
*   CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR not set.
*   COMPRESS_INITRD defaulted to "yes".
*   COMPRESS_INITRD_TYPE defaulted to "best".
*   CHOST defaulted to "x86_64-pc-linux-gnu".
*   MAKEOPTS defaulted to "-j4".
*   NICE defaulted to "10".
*   KERNEL_AS defaulted to "as".
*   KERNEL_AR defaulted to "ar".
*   KERNEL_CC defaulted to "gcc".
*   KERNEL_CFLAGS not set.
*   KERNEL_CXX defaulted to "g++".
*   KERNEL_LD defaulted to "ld".
*   KERNEL_NM defaulted to "nm".
*   KERNEL_MAKE defaulted to "make".
*   KERNEL_OBJCOPY defaulted to "objcopy".
*   KERNEL_OBJDUMP defaulted to "objdump".
*   KERNEL_RANLIB defaulted to "ranlib".
*   KERNEL_READELF defaulted to "readelf".
*   KERNEL_STRIP defaulted to "strip".
*   UTILS_AS defaulted to "as".
*   UTILS_AR defaulted to "ar".
*   UTILS_CC defaulted to "gcc".
*   UTILS_CFLAGS defaulted to "-Os -pipe -fomit-frame-pointer".
*   UTILS_CXX defaulted to "g++".
*   UTILS_LD defaulted to "ld".
*   UTILS_NM defaulted to "nm".
*   UTILS_MAKE defaulted to "make".
*   UTILS_OBJCOPY defaulted to "objcopy".
*   UTILS_OBJDUMP defaulted to "objdump".
*   UTILS_RANLIB defaulted to "ranlib".
*   UTILS_READELF defaulted to "readelf".
*   UTILS_STRIP defaulted to "strip".
*   CROSS_COMPILE not set.
BOOTDIR defaulted to "/boot".
*   KERNEL_APPEND_LOCALVERSION not set.
*   KERNEL_LOCALVERSION defaulted to "-%%ARCH%%".
*   MODPROBEDIR defaulted to "/etc/modprobe.d".
*   SPLASH defaulted to "no".
*   CLEAR_CACHEDIR defaulted to "no".
*   POSTCLEAR defaulted to "no".
*   MRPROPER defaulted to "yes".
*   MENUCONFIG defaulted to "no".
*   GCONFIG defaulted to "no".
*   NCONFIG defaulted to "no".
*   XCONFIG defaulted to "no".
*   CLEAN defaulted to "yes".
*   MINKERNPACKAGE not set.
*   MODULESPACKAGE not set.
*   MODULEREBUILD defaulted to "yes".
*   MODULEREBUILD_CMD defaulted to "emerge --ignore-default-opts --buildpkg=n --usepkg=n --quiet-build=y @module-rebuild".
*   KERNCACHE not set.
*   RAMDISKMODULES defaulted to "yes".
*   ALLRAMDISKMODULES defaulted to "no".
*   INITRAMFS_OVERLAY not set.
*   LINUXRC not set.
*   MOUNTBOOT defaulted to "yes".
*   BUILD_STATIC defaulted to "no".
*   SAVE_CONFIG defaulted to "yes".
*   SYMLINK defaulted to "no".
*   OLDCONFIG defaulted to "yes".
*   SANDBOX defaulted to "yes".
*   SSH defaulted to "no".
*   SSH_AUTHORIZED_KEYS_FILE defaulted to "/etc/dropbear/authorized_keys".
*   SSH_HOST_KEYS defaulted to "create".
*   STRACE defaulted to "no".
*   BCACHE defaulted to "no".
*   LVM defaulted to "no".
*   DMRAID defaulted to "no".
*   ISCSI defaulted to "no".
*   HYPERV defaulted to "no".
*   BOOTFONT defaulted to "none".
*   BOOTLOADER defaulted to "no".
*   B2SUM defaulted to "no".
*   BUSYBOX defaulted to "yes".
*   BUSYBOX_CONFIG not set.
*   NFS defaulted to "yes".
*   MICROCODE defaulted to "all".
*   MICROCODE_INITRAMFS defaulted to "no".
*   UNIONFS defaulted to "no".
*   NETBOOT defaulted to "no".
*   REAL_ROOT not set.
*   LUKS defaulted to "no".
*   GPG defaulted to "no".
*   MDADM defaulted to "no".
*   MDADM_CONFIG not set.
*   E2FSPROGS defaulted to "no".
*   XFSPROGS defaulted to "no".
*   ZFS defaulted to "no".
*   BTRFS defaulted to "no".
*   VIRTIO defaulted to "no".
*   MULTIPATH defaulted to "no".
*   FIRMWARE defaulted to "no".
*   FIRMWARE_DIR defaulted to "/lib/firmware".
*   FIRMWARE_FILES not set.
*   FIRMWARE_INSTALL defaulted to "no".
*   INTEGRATED_INITRAMFS defaulted to "no".
*   WRAP_INITRD defaulted to "no".
*   GENZIMAGE defaulted to "no".
*   KEYMAP defaulted to "yes".
*   DOKEYMAPAUTO defaulted to "no".
*   STRIP_TYPE defaulted to "modules".
*   INSTALL set on command line to "yes".
*   CLEANUP defaulted to "yes".
*   KERNEL_OUTPUTDIR defaulted to "/usr/src/linux-5.10.49-gentoo-r1".

* Read 'x86_64' from 'uname -m' ...
* ARCH 'x86_64' detected ...
* CBUILD set to 'x86_64-pc-linux-gnu' ...
* CHOST set to 'x86_64-pc-linux-gnu' ...

* Sourcing default modules_load from '/usr/share/genkernel/defaults/modules_load' ...
* Sourcing arch-specific config.sh from '/usr/share/genkernel/arch/x86_64/config.sh' ...
* Sourcing arch-specific modules_load from '/usr/share/genkernel/arch/x86_64/modules_load' ...
* Using '/usr/src/linux-5.10.49-gentoo-r1/include/config/kernel.release' to extract LOCALVERSION ...
* KERNEL_ARCH set to 'x86' ...

* GK_FILENAME_CONFIG set to 'kernel-config-5.10.49-gentoo-r1' (was: 'kernel-config-%%KV%%')
* GK_FILENAME_KERNEL set to 'vmlinuz-5.10.49-gentoo-r1' (was: 'vmlinuz-%%KV%%')
* GK_FILENAME_KERNEL_SYMLINK set to 'kernel' (was: 'kernel')
* GK_FILENAME_SYSTEMMAP set to 'System.map-5.10.49-gentoo-r1' (was: 'System.map-%%KV%%')
* GK_FILENAME_SYSTEMMAP_SYMLINK set to 'System.map' (was: 'System.map')
* GK_FILENAME_INITRAMFS set to 'initramfs-5.10.49-gentoo-r1.img' (was: 'initramfs-%%KV%%.img')
* GK_FILENAME_INITRAMFS_SYMLINK set to 'initramfs' (was: 'initramfs')
* Checking for suitable kernel configuration ...

* ERROR: --kernel-config file '/path/to/used/kernel.config' does not exist!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
*
* Please do *not* report kernel compilation failures as genkernel bugs!
*

* mount: >> Boot partition state on '/boot' was not changed; Skipping restore boot partition state ...
>>> Ended on: 2021-07-17 04:01:12 (after 0 days 0 hours 00 minutes 00 seconds)


Последнее исправление: pinux (всего исправлений: 4)

Ответ на: комментарий от AbbaT

Спасибо, помогло. Заменил на --kernel-config=/usr/src/linux-5.10.49-gentoo-r1/.config

KERNEL_CONFIG берет из конфигурации ядра, настроенного заранее make menuconfig. Я просто сонный был.

pinux
() автор топика
Последнее исправление: pinux (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.