我一直在尝试从源代码编译 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/