缺少步骤:debian-installer-launcher

缺少步骤:debian-installer-launcher

我创建了 Debian Live 映像,但缺少让 debian-live-installer 工作的步骤。我采取了以下步骤:

##needed packages
apt-get install --assume-yes xorriso live-build syslinux squashfs-tools

##create basic system
mkdir ~/livework && cd ~/livework
debootstrap --arch=amd64 wheezy chroot

##chroot
cd ~/livework
chroot chroot
mount none -t proc /proc
mount none -t sysfs /sys
mount none -t devpts /dev/pts
export HOME=/root
export LC_ALL=C
export PS1="\e[01;31m(live):\W \$ \e[00m"

##kernel and set password
apt-get install --assume-yes dialog dbus
dbus-uuidgen > /var/lib/dbus/machine-id
apt-get install --assume-yes linux-image-amd64 live-boot
passwd

##install packages
apt-get install --assume-yes xserver-xorg slim fluxbox debian-installer debian-installer-launcher


##finished chroot
apt-get clean
rm /var/lib/dbus/machine-id && rm -rf /tmp/*
umount /proc /sys /dev/pts
exit

##setup isolinux
cd ~/livework
rm chroot/root/.bash_history
mkdir -p binary/live && mkdir -p binary/isolinux
cp chroot/boot/vmlinuz-3.2.0-4-amd64 binary/live/vmlinuz
cp chroot/boot/initrd.img-3.2.0-4-amd64 binary/live/initrd
rm binary/live/filesystem.squashfs
mksquashfs chroot binary/live/filesystem.squashfs -comp xz -e boot
cp /usr/lib/syslinux/isolinux.bin binary/isolinux/.
cp /usr/lib/syslinux/menu.c32 binary/isolinux/.

##sample binary/isolinux/isolinux.cfg
ui menu.c32
prompt 0
menu title CASED Boot Menu
timeout 50

label live-amd64
menu label Live amd64
menu default
linux /live/vmlinuz
append initrd=/live/initrd boot=live persistence quiet

label live-amd64-failsafe
menu label ^Live (amd64 failsafe)
linux /live/vmlinuz
append initrd=/live/initrd boot=live persistence config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal

endtext

##build iso
cd ~/livework
xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin -partition_offset 16 -A "Debian Live"  -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o my-debian.iso binary

登录我的 Live System 后,我希望能够将其安装到我的硬盘上。通过执行 debian-installer-launcher 我收到以下错误:

no suitable d-i initrd image found, aborting

我用谷歌搜索,但找不到任何答案。我缺少哪一步?

答案1

好吧,解决了。以下步骤完成了这项工作:

cd ~
## [ get debian-live iso... ]

## create folder for mounting the iso
mkdir debian
mount debian.iso debian/

## copy install (contains initrd(gtk/normal) and vmlinuz)
cp -r debian/install livework/binary/
## copy needed files for installation
cp -r debian/pool livework/binary/
cp -r debian/dists livework/binary/

## create iso
cd ~/livework
xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin -partition_offset 16 -A "Debian Live"  -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o my-debian.iso binary

希望这对其他人也有帮助;)

相关内容