Am Freitag, dem 27.09.2024 um 15:26 +1000 schrieb Adam Baxter: > Hi, > I'm sure I'm doing something wrong here but I'm seeing errors I've > never seen before. > > I'm rebuilding > https://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/cdrom/mini.iso > using something along the lines of > > sed -i '1s/^/timeout=1\n/' boot/grub/grub.cfg > sed -i '1s/^/default=0\n/' boot/grub/grub.cfg > sed -i "s/--- quiet/auto file=\/cdrom\/preseed.cfg DEBCONF_DEBUG=5 > language=en country=AU locale=en_AU.UTF-8 keymap=us/" > boot/grub/grub.cfg [..] > So the boot parameters are: > vga=788 auto file=/cdrom/preseed.cfg DEBCONF_DEBUG=5 language=en > country=AU locale=en_AU.UTF-8 keymap=us > > This results in the following error: > The file needed for preconfiguration could not be retreived from > file:///cdrom/preseed.cfg. The installation will proceed in non- > automated mode [..] > I'll try adding it to the initrd as a workaround but I thought > remastering the ISO was supposed to be an option, too.
As you have already found, there is no /cdrom with mini.iso. The solution I use is to put the preseed-file (and all other additional files) into a _separate_ initrd called preseed.gz, put that initrd onto the disk, and use vga=788 [kernel options] file=/preseed.cfg [preseed options] initrd=initrd.gz,preseed.gz for txt.cfg and adtxt.cfg and in boot.cfg use something like [..] /initrd.gz /preseed.gz [..] Personally, I found this to be the cleanest solution, and one doesn't have to change the original initrd. Regards, Daniel
signature.asc
Description: This is a digitally signed message part