Hello list,

I created an autoinstall bsd.rd (containing auto_install.conf and disklabel.conf) and a siteXX.tgz.

For example with the tool isomaster I can manually edit the install66.iso and add bsd.rd and site66.tgz to the directory 6.6/amd64. This modified ISO can be booted from real and virtual hardware. The unattended installation works and is really cool!

Now I want to go the extra step and automate the modification of the installXX.iso.

I tried the tool xorriso:
$ ls -l 6.6/amd64/
total 28544
-rwxr-xr-x  1 null  null  10299545 Nov 17 18:00 bsd.rd
-rw-r--r--  1 null  null   4680444 Nov 17 05:03 site66.tgz
$ xorriso -indev install66.iso -outdev install66a.iso -boot_image "any" "keep" -add 6.6/amd64/
[1]

This leads to this message when trying to boot:
CD-ROM: E0
Can't find /cdboot

I then moved cdboot from 6.6/amd64 to the root of the CD:
$ xorriso -indev install66.iso -outdev install66a.iso -boot_image "any" "keep" -move 6.6/amd64/cdboot cdboot -add 6.6/amd64/

This leads to this message when trying to boot:
CD-ROM: E0
Loading /CDBOOT
probing: pc0 mem[639KB 2046M a20=on]
disk: hd0+ cd0
>> OpenBSD/amd64 CDBOOT 3.44
boot>
cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/6.6/amd64/bsd.rd: open cd0a:/6.6/amd64/bsd.rd: No such file or dir
ectory
 failed(2). will try /6.6/amd64/bsd.rd
boot>

When I move bsd.rd to the root of the CD too, I can at least start the installation by typing
boot> bsd.rd

But it would be nice if that wouldn't be necessary.

When looking at the ISO files with isomatser, the only difference I can find is that
on the modified ISO the publisher information is in all caps.
I'm obviously doing something wrong. Any ideas or alternatives?


[1]
In case the full output is necessary:

$ xorriso -indev install66.iso -outdev install66a.iso -boot_image "any" "keep" -add 6.6/amd64/
xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE : 24 nodes read in 1 seconds
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev 'install66.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito
Media summary: 1 session, 226537 data blocks,  442m data, 62.8g free
Volume id    : 'OpenBSD/amd64   6.6 Install CD'
Drive current: -outdev 'install66a.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 62.8g free
Added to ISO image: directory '/6.6/amd64'='/home/null/OpenBSD66/6.6/amd64'
xorriso : UPDATE : 2 files added in 1 seconds
xorriso : NOTE : Keeping boot image unchanged
xorriso : UPDATE : Writing:       2000s    0.9%   fifo  43%  buf 50%
xorriso : UPDATE : Writing:      23513s   10.3%   fifo  84%  buf 50%   32.1xD xorriso : UPDATE : Writing:      45822s   20.0%   fifo  98%  buf 50%   33.3xD xorriso : UPDATE : Writing:      68243s   29.8%   fifo  99%  buf 50%   33.5xD xorriso : UPDATE : Writing:      93008s   40.6%   fifo 100%  buf 50%   33.3xD xorriso : UPDATE : Writing:     114511s   50.0%   fifo  99%  buf 50%   32.1xD xorriso : UPDATE : Writing:     133184s   58.2%   fifo  99%  buf 50%   27.9xD xorriso : UPDATE : Writing:     154835s   67.6%   fifo 100%  buf 50%   32.3xD xorriso : UPDATE : Writing:     176528s   77.1%   fifo  99%  buf 50%   32.4xD xorriso : UPDATE : Writing:     197248s   86.1%   fifo  99%  buf 50%   30.9xD xorriso : UPDATE : Writing:     218688s   95.5%   fifo 100%  buf 50%   32.0xD
ISO image produced: 228822 sectors
Written to medium : 228992 sectors at LBA 32
Writing to 'install66a.iso' completed successfully.


Reply via email to