By the way I've done it using an OpenBSD workstation in my way: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
cannot open cd0a:/etc/random.seed: No such file or directory booting cd0a:/7.1/amd64/bsd.rd: 3891908+1614848+3895112+0+708608 [109+435984+290736]=0xa57ab0 entry point at 0xffffffff81001000 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2022 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.1 (RAMDISK_CD) #440: Mon Apr 11 18:09:13 MDT 2022 [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD Using this simple script: #!/bin/ksh OSREV="7.1" MACHINE="amd64" CDROM="iso_serial.iso" [[ ! -d "tmp" ]] && mkdir tmp [[ ! -d "mnt" ]] && mkdir mnt doas vnconfig vnd0 ${1} doas mount -t cd9660 /dev/vnd0c mnt/ doas cp -Rp $(pwd)/mnt/* cd-dir/ doas chown -R $(whoami):$(whoami) cd-dir/ find cd-dir/ -name "TRANS*" -type f -delete find cd-dir/ -name "boot.catalog" -type f -delete #echo stty com0 115200 > $(pwd)/tmp/etc/boot.conf echo "set tty com0" >> cd-dir/etc/boot.conf echo "set image /7.1/amd64/bsd.rd" >> cd-dir/etc/boot.conf mkhybrid -a -R -T -L -l -d -D -N -o ${CDROM} \ -A "OpenBSD ${OSREV} ${MACHINE} bootonly CD" \ -P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" \ -p "Theo de Raadt <[email protected]>" \ -V "serial console boot-only CD" \ -b ${OSREV}/${MACHINE}/cdbr -c ${OSREV}/${MACHINE}/boot.catalog \ cd-dir rm -rf $(pwd)/tmp/* doas umount $(pwd)/mnt/ doas vnconfig -u vnd0 On Sat, Aug 20, 2022 at 10:27 PM Riccardo Giuntoli <[email protected]> wrote: > Thank you. > > On Sat, Aug 20, 2022 at 12:10 PM Stuart Henderson < > [email protected]> wrote: > >> On 2022-08-20, Riccardo Giuntoli <[email protected]> wrote: >> > Hello there, I want to build an iso image whose output has to be a >> serial >> > consolle. >> > >> > I'm doing this in a Linux workstation and those are my commands: >> > >> > [[ ! -d "tmp" ]] && mkdir tmp >> > [[ ! -d "mnt" ]] && mkdir mnt >> > >> > sudo mount -o rw,loop -t iso9660 ${1} $(pwd)/mnt/ >> > sudo cp -Rp $(pwd)/mnt/* $(pwd)/tmp/ >> > sudo chown -R $(whoami):$(whoami) $(pwd)/tmp/ >> > find $(pwd)/tmp/ -name "TRANS*" -type f -delete >> > cp {cdbr,cdboot} tmp/ >> > #echo stty com0 115200 > $(pwd)/tmp/etc/boot.conf >> > echo "set tty com0" >> $(pwd)/tmp/etc/boot.conf >> > echo "set image /7.1/amd64/bsd.rd" >> $(pwd)/tmp/etc/boot.conf >> > mkisofs -o "open_serial.iso" -v -J -R -D -A "open_serial" -V >> "open_serial" \ >> > -no-emul-boot -boot-info-table -boot-load-size 4 \ >> > -G cdbr -b cdboot tmp/ >> > rm -rf tmp/* >> > sudo umount mnt/ >> > >> > image doesn't boot. Some ideas? >> >> I suggest doing this on OpenBSD, modifying the relevant Makefile e.g. >> src/distrib/amd64/iso/Makefile, and following the steps in release(8). >> >> >> -- >> Please keep replies on the mailing list. >> >> > > -- > Name: Riccardo Giuntoli > Email: [email protected] > Location: sant Pere de Ribes, BCN, Spain > PGP Key: 0x67123739 > PGP Fingerprint: CE75 16B5 D855 842FAB54 FB5C DDC6 4640 6712 3739 > Key server: hkp://wwwkeys.eu.pgp.net > -- Name: Riccardo Giuntoli Email: [email protected] Location: sant Pere de Ribes, BCN, Spain PGP Key: 0x67123739 PGP Fingerprint: CE75 16B5 D855 842FAB54 FB5C DDC6 4640 6712 3739 Key server: hkp://wwwkeys.eu.pgp.net

