On Thu, May 21, 2009 at 5:14 PM, Adam Chunn <adam.ch...@texmemsys.com> wrote:
> I am having a minor annoyance with my 111a build of 2009.06 Solaris.
>
> The short version:  How do I turn off the boot-archive check on boot-up?
>
> The long version:
>
> I am doing driver development and a couple of times a day I crash my system.
>
> I do not work close to my development system, so I have been successfully
> using the /etc/system "set snooping=1" trick to have my Solaris system
> reboot when it hangs itself.  When that doesn't work, I use IPMI to reboot
> my box remotely.
>
> Every time my Solaris box reboots from a crash, it hangs just in initial
> boot-up wanting me to enter System Maintenance Mode and type "svcadm clear
> system/boot-archive" because the driver install changed some archived files.
>  Unfortunately I can't remotely enter system and type these commands.  I
> have to trundle down to my lab and type these commands.
>
> I have tried to just disable the service by "svcadm disable
> system/boot-archive", but upon crash, the OS still requests system
> maintenance mode, I have to enter it, re-enable the service, re-clear the
> service and then start up.
>
> I have tried to add the "-F failsafe" flag to various lines in the grub menu
> list.  But everywhere I put it, it either hangs my box or ignores it.
>
> Surely there is an easy way to disable this.  Any help would be appreciated.
>  Thanks.
>
> -Adam
> _______________________________________________
> driver-discuss mailing list
> driver-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/driver-discuss
>


Hello, while this sounds odd (a bug in SMF or at least in your
system's /etc/svc/repository.db ?), a workaround would be:


# mv -i /lib/svc/method/boot-archive
/lib/svc/method/boot-archive__ORIG__pre20090521thu
# touch /lib/svc/method/boot-archive && chmod 755 /lib/svc/method/boot-archive

However, I wonder why svcadm disable  doesn't seem to work in your
case. One reason could be, that this change does not make it into the
boot archive. Before the steps from above try svcadm disable once
again and perform a clean init 6 reboot. Chances are the change then
makes it successfully into /platform/i86pc/amd64/boot_archive and
/platform/i86pc/boot_archive.

I'm on SXCE snv_114 here.
I found something new, 2 new directories:

/platform/i86pc/archive_cache/
/platform/i86pc/amd64/archive_cache

Not sure if that might have an influence, too.


--
%martin
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to