lofiadm(1m) should be VTOC aware.
There should be a mechanism for using lofiadm(1m) with ISO images
which have multiple slices. ie lofiadm should have a switch to
tell it to read the VTOC and create an approriate number of
/dev/lofi devices.
The current limitation can be seen when using Solaris 9 ISO images. These
have the Tools/Boot directory located on s1 via a symlink:
lrwxrwxrwx 1 root other 11 Apr 15 2002 Boot -> ../../../s1
In the equivalent directory on Solaris 8:
drwxr-xr-x 17 root other 4096 Dec 18 2001 Boot
The workaround at present is to identify the location of s1 within
the image and dd(1) the bytes out.
Work Around
Use dd(1m) to extract partition of interest.
Method for identifying location vary:
. First dd VTOC and interpret.
. Mount each successive slice in turn and use size from df to work
out offset for dd.