linux - 来自源代码的内核编译卡住在 update-initramfs : Generating/boot/initrd. img-4.7.1

标签 linux

我一直在尝试从源代码编译 Linux 内核 v4.7.1,这是我迄今为止最远的一次。如何编译成功?

以下是控制台上的最后几行,在 cpu 的使用率达到 1% 之前,所以我假设编译在这里停止了。

  INSTALL sound/usb/snd-usbmidi-lib.ko
  INSTALL sound/usb/usx2y/snd-usb-us122l.ko
  INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
  INSTALL virt/lib/irqbypass.ko
  DEPMOD  4.7.1

sh ./arch/x86/boot/install.sh 4.7.1 arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.1 /boot/vmlinuz-4.7.1
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.1 /boot/vmlinuz-4.7.1
update-initramfs: Generating /boot/initrd.img-4.7.1

最佳答案

解决方案是添加:

ARRAY <ignore> devices=/dev/sda在/etc/mdadm/mdadm.conf 中

关于linux - 来自源代码的内核编译卡住在 update-initramfs : Generating/boot/initrd. img-4.7.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48688445/

相关文章:

linux - 如何记录用户输入

c - POSIX 部分写入()

c++ - Qt 像素图操作

linux - 如何确定哪些网络服务器软件正在为网页提供服务,替代 nc?

linux - ssh cronjob 删除不起作用

linux - echo 命令是否有可能破坏 so 文件?

java - JVM内存和CPU使用的实际限制?

c - 堆栈上的局部变量和 EBP 之间是什么?

linux - 一次杀死多个进程只能手动工作,不能从脚本内部工作

c++ - Netbeans 7.2 显示 "Unable to resolve identifier",尽管构建成功