Hello, I'm trying to use debian-cd to build an image for a Debian derivative (aka Kali Linux). I'm using this version of debian-cd: http://http.kali.org/pool/main/d/debian-cd/debian-cd_3.1.15kali1_all.deb
It's plain debian-cd 3.1.15 with just a few supplementary symlinks "kali" pointing to "wheezy" in tasks/, data/ and tools/boot/. Now I'm trying to generate images with those changes to CONF.sh: # Name of the distribution for the image filename (Defaults to 'debian') -# export CDNAME=debian +export CDNAME=kali # Building wheezy cd set ... -export CODENAME=wheezy +export CODENAME=kali [...] -export MIRROR=/srv/mirror/debian +export MIRROR=/ext/mirror/kali [...] -# export NONFREE=1 +export NONFREE=1 [...] -# export FORCE_FIRMWARE=1 +export FORCE_FIRMWARE=1 [...] -export DISKTYPE=CD +export DISKTYPE=NETINST [...] -#export MAXCDS=1 +export MAXCDS=1 [...] -#export OMIT_MANUAL=1 +export OMIT_MANUAL=1 [...] -#export OMIT_DOC_TOOLS=1 +export OMIT_DOC_TOOLS=1 And I build the image with "make official_images". The build seems to work fine but the resulting image doesn't boot with UEFI. I get a grub screen but whenever I select an entry, grub tells me: > error: unknown command `linux'. > error: unknown command `initrd'. > > Press any key to continue... Yet the file structure seems exactly the same than for an official Debian ISO image. And building an official Debian images in the same environment yields a fully working ISO image. So I'm wondering what I can have missed. Do you have an idea of what could be wrong ? Note that Kali rebuilds debian-installer images with newer snapshots of d-i because we track newer kernels as well. But we have the same grub packages. Here's the possibly relevant changes in the diff comparing the file listing of both images: --- debian-7.0-amd64-NETINST-1.filelist 2014-07-08 16:19:24.206922498 +0200 +++ kali-7.0-amd64-NETINST-1.filelist 2014-07-08 16:19:47.834925117 +0200 @@ -41,6 +41,7 @@ /mnt/boot/grub/x86_64-efi/efi_uga.mod /mnt/boot/grub/x86_64-efi/elf.mod /mnt/boot/grub/x86_64-efi/ext2.mod +/mnt/boot/grub/x86_64-efi/extcmd.mod /mnt/boot/grub/x86_64-efi/fat.mod /mnt/boot/grub/x86_64-efi/fixvideo.mod /mnt/boot/grub/x86_64-efi/font.mod @@ -105,6 +106,7 @@ /mnt/boot/grub/x86_64-efi/msdospart.mod /mnt/boot/grub/x86_64-efi/multiboot2.mod /mnt/boot/grub/x86_64-efi/multiboot.mod +/mnt/boot/grub/x86_64-efi/normal.mod /mnt/boot/grub/x86_64-efi/ntfscomp.mod /mnt/boot/grub/x86_64-efi/ntfs.mod /mnt/boot/grub/x86_64-efi/ohci.mod @@ -183,68 +185,32 @@ [...] @@ -281,10 +248,8 @@ /mnt/install.amd /mnt/install.amd/gtk /mnt/install.amd/gtk/initrd.gz -/mnt/install.amd/gtk/install.bat /mnt/install.amd/gtk/vmlinuz /mnt/install.amd/initrd.gz -/mnt/install.amd/install.bat /mnt/install.amd/vmlinuz /mnt/isolinux /mnt/isolinux/adgtk.cfg [...] The first is due to debian-installer generating different debian-cd_info.tar.gz and the latter is because the Kali mirror lacks the tools directory. Comparing debian-cd_info.tar.gz I see changes to the syslinux config files, addition of grub/x86_64-efi/normal.mod & grub/x86_64-efi/extcmd.mod, as well as a different checksum to grub/efi.img (but the content seems identical except for the filesystem Volume Serial Number). I don't know what to try out next. Any suggestion of further possible investigation is welcome. Thank you! -- Raphaël Hertzog ◈ Debian Developer Discover the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140708151344.gc3...@x230-buxy.home.ouaza.com