Quoting Evan Layton, who wrote the following on Tue, 20 Apr 2010:
On 4/20/10 7:05 PM, Seth Goldberg wrote:
Also: are etc/release and kernel/genunix the only things you want to
check for? How about checking for the things that we know will result in
a bootable BE, like the boot archive and both genunix and unix? If any
of them don't exist, the user will need to be aware of that anyway, lest
they be left with an unbootable BE.
This was meant to be a "best effort" to determine if the BE has valid bits in
it. I don't think it's reasonable for us to try to insure that the BE is
complete. However if there are better things to be checking for SPARC and X86
than what we're currently using then we should definitely change what we're
checking. What did you have in mind that we should be looking for that can be
used for both SPARC and x86 and doesn't require a bunch of extra checking or
running other utilities?
Well, I don't think it's unreasonable to expect the kernel and boot archive
to be there :). I'm not even talking about sanity-checking those files
(though a basic size sanity check for the boot archive would be good, since
there have been situations where the boot archive ended up being 0 bytes for
some reason or another). If you can warn users that the BE they're booting
into appears to be insane, I think they'd thank you for it :).
So, for x86, the boot archive in /platform/i86pc/[amd64/]boot_archive and
the kernel in /platform/<karch>/kernel/[amd64/]unix.
For sparc, similar (i.e. platform/`uname -k`/boot_archive) and
/platform/[`uname -i`|`uname -k`]/kernel/sparcv9/unix (though I am by no means
a sparc expert, so I may be full of crap there.
Thanks,
--S
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss