繁体   English   中英

单分区和无 initramfs linux 启动会导致内核恐慌

[英]single partition & no initramfs linux boot gets kernel panic

  • 使用 gentoo 规范为 Thinkpad T430 编译内核

  • 挂载空的 ext4 硬盘并在其上创建 boot/ 目录,将 bzImage 和 System.map 移动到里面

  • 使用“extlinux --install [挂载目录]/boot”安装 extlinux

  • 使用以下配置将 syslinux.cfg 放入其中:

     DEFAULT linux SAY Now booting the kernel from EXTLINUX... LABEL linux KERNEL /boot/bzImage APPEND root=/dev/sdb rw init=/bin/bash
  • 在已安装的硬盘驱动器中创建 bin/ 文件夹,将 bash 二进制文件放入其中

在这一点上,我能够将内核引导到必须运行 init 的点,但是它会发生恐慌:

---[ Kernel Panic - not syncing: Requested init /bin/bash failed (error -2). ]---

4chan 在 10 分钟内解决了我的问题,我没有 libc.so 库

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM