從頭開始的 Live CD - 無 vmlinuz* / initrd.img*

從頭開始的 Live CD - 無 vmlinuz* / initrd.img*

遵循本指南:

https://help.ubuntu.com/community/LiveCDCustomizationFromScratch

當它詢問:

cp chroot/boot/vmlinuz-2.6。--通用影像/casper/vmlinuz

cp chroot/boot/initrd.img-2.6。--通用影像/casper/initrd.lz

我沒有這樣的文件:

ls chroot/啟動

grub memtest86+.bin memtest86+.elf memtest86+_multiboot.bin

該指南是否已過時或我錯過了某個步驟?

編輯:

根據我下面的評論,我正在做:

sudo debootstrap --arch=$ARCH $RELEASE chroot

其中 amd64 和 trusty 是值。

答案1

該指南已過時,並且基於 2.6.xx 核心。我假設您正在運行較新的核心版本,因為最近有人提出這個問題。

對於 Trusty Tahr,64 位元 -

sudo debootstrap --arch=amd64 trusty chroot

若要檢查您的核心版本,請在終端機中鍵入以下內容 -

uname -r

現在替換2.6.x-x為您的核心版本。例如- 3.13.0-37

cp chroot/boot/vmlinuz-3.13.0-37-generic image/casper/vmlinuz

cp chroot/boot/initrd.img-3.13.0-37-generic image/casper/initrd.lz

相關內容