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.

Reply via email to