制作模块_安装失败

制作模块_安装失败

我正在尝试安装内核模块,但是当我运行时进行模块安装,出现以下内容:

  INSTALL virt/lib/irqbypass.ko
  DEPMOD  4.19.97-gentoo
  depmod: ERROR: openat(1023, 4.19.97-gentoo-x86_64, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, kernel, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, arch, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, crypto, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, drivers, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, fs, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, lib, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, net, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, virt, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, x86, O_RDONLY): Too many open files
  depmod: ERROR: could not create module /lib/modules/4.19.97-gentoo/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gento

最后一行持续了很长时间,最终以“4.19.97-gentoo-x86_64/kernel/crypto/arc4.ko: 文件名太长”结束。我使用配置内核制作菜单配置。除此之外,系统运行正常。我正在使用 btrfs RAID 10。以下是到目前为止的命令序列:

  1. 使-j8
  2. 制作模块
  3. 进行模块安装

答案1

这似乎已通过删除/lib/modules/4.19.97-gentoo指向同一文件夹的错误符号链接得到解决。这在错误的最后一行中指出,因为输出显示了看似无穷无尽的嵌套目录深度。

depmod:错误:无法创建模块/lib/modules/4.19.97-gentoo/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo

没有错误符号链接的目录应该是/lib/modules/4.19.97-gentoo.

相关内容