Trying to make a customize cdrom (preseed) but it fails with "incorrect cd-rom detected"
by Red Squirrel from LinuxQuestions.org on (#4YTAS)
I want to include a preseed.cfg and make a custom ISO and basically create my own custom automated install so all my installs are consistent with all the changes I want. At this point I'm not at figuring out the specifics of preseeding or adding custom packages etc, I just want to make sure I have the basic process down path.
I followed these instructions more or less:
https://wiki.debian.org/DebianInstaller/Modify/CD
As a baseline test, I did not modify any of the files from the ISO (tried that previously but that failed too, so took a step back to eliminate variables). I simply mounted it, copied the files to another folder so they are ready to be modified, and then I ran this command:
Code:genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /localdata/www/isotest/debian-10.2.0-amd64-DVD-1_custom.iso isodataisodata is the folder the ISO's contents was copied to.
However when I boot the ISO (in Virtualbox) and select any installation option, it fails at detecting the cd-rom and fails with this error:
Code:Incorrect CD-ROM detected
The CD-ROM drive contains a CD which cannot be used for installation.
Please insert a suitable CD to continue with the installation.So something it does not like about the customized ISO. Anything else I can try or any variants of that command that will work? I presume the failure has to do with the way the ISO is being created, as the original ISO works fine.


I followed these instructions more or less:
https://wiki.debian.org/DebianInstaller/Modify/CD
As a baseline test, I did not modify any of the files from the ISO (tried that previously but that failed too, so took a step back to eliminate variables). I simply mounted it, copied the files to another folder so they are ready to be modified, and then I ran this command:
Code:genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /localdata/www/isotest/debian-10.2.0-amd64-DVD-1_custom.iso isodataisodata is the folder the ISO's contents was copied to.
However when I boot the ISO (in Virtualbox) and select any installation option, it fails at detecting the cd-rom and fails with this error:
Code:Incorrect CD-ROM detected
The CD-ROM drive contains a CD which cannot be used for installation.
Please insert a suitable CD to continue with the installation.So something it does not like about the customized ISO. Anything else I can try or any variants of that command that will work? I presume the failure has to do with the way the ISO is being created, as the original ISO works fine.