Thomas Bohl writes:
>
> Now I want to go the extra step and automate the modification of the
> installXX.iso.
I have put an insane amount of work into exactly this, also with
an eye to portably directing the process to other operating systems
and hosting environments.
I'd be very interested to hear more about what your working on but
meanwhile I think the command you're looking for is some variant
on this:
mkiso() {
# Create new iso
# From src/distrib/amd64/cdfs/Makefile
if on_openbsd; then
OSREV=$os_version # For easier copy pasta
mkhybrid -a -R -T -L -l -d -D -N -o "$iso_fn" -v -v \
-A "OpenBSD ${OSREV} amd64 autoinstall CD" \
-P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" \
-p "Theo de Raadt <[email protected]>" \
-V "OpenBSD/amd64 ${OSREV} boot-only CD" \
-b ${OSREV}/amd64/cdbr -c ${OSREV}/amd64/boot.catalog \
"$s_where"/cd
# -a all-files
# -R Rock Ridge
# -T TRANS.TBL
# -L Allow .-file
# -l allow 32char
# -d Omit trailing period
# -D not use deep directory relocation, ... Use with caution.
# -N Omit os_version numbers ... Use with caution.
# -o "$iso_fn"
# -v -v verbose
# -b boot_image
# -c boot_catalog
else
die_unsupported build/target combination
fi
}
mkhybrid and xorriso are basically the same tool in ways I can't
quite remember right not but could probably be persuaded to. An
invocation of one can be systematically converted into an invocation
of the other.
Enjoy.
Matthew