Hi everyone.

Problem solved.

We ended up doing something similar to what was done for the old 
installer.  Changes from what I sent out yesterday are:
-  The manifest depends on milestone/single-user now, not 
system/filesystem/minimal.
- The 'need_session' propval was added to the startd property group.  
Value is 'true'
- The lib/svc/method file is now bypassed, and the manifest calls the 
menu script directly.

Another part of the puzzle was that I was running a changed file of a 
different name.  I changed the manifest to refer to the new file, but 
did not re-import the changed manifest, so the repository kept running 
the old file :(

Revised files attached.

Thanks to Tony Nguyen for his help!

    Thanks,
    Jack



On 09/29/09 16:14, Jack Schwartz wrote:
> Hi everyone.
>
> I work on the install team, and am working on an ITU-style menu the 
> user will first see when booting the text-mode CD.  This menu selects 
> the installer and Device Driver Utility among other things.  The menu 
> is a ksh93 script started as an SMF service.  The environment given to 
> it via SMF is different than a usual login environment, and signals do 
> not work.
>
> Attached are the files which I put in /lib/svc/method, 
> /var/svc/manifest/... and the menu itself which goes in /usr/sbin.
>
> The intent is for the script to mask signals (^C, abort, ^Z,^\, 
> SIGTERM) so it cannot be exited, but to allow signals to be active in 
> the commands it runs (installer, DDU, shell).  Examples: I want to be 
> able to run sleep from my script and ^C out of it;  I want the shell 
> run from my menu to see a ^C for processing.
> Using the attached files as a starting point, I tried modifying the 
> manifest file to look more like what the original install-setup 
> manifest (old installer) looked like (to depend on 
> svc:/milestone/single-user, and to add to the startd property group:
> <propval name-'need_session' type='boolean' value='true' />
>
> I also tried modifying the 'ignore_error' property, but then I checked 
> the ARC case (PSARC/2004/524) and it turns out the ignore_error deals 
> with errors requiring a restart, not what I am interested in.
>
> I looked at console-login service to see how it works and tried a 
> dependency on svc:/milestone/sysconfig as it had;  that didn't work 
> either.
>
> Any suggestions?  I'd greatly appreciate any help getting this to work.
>
>    Thanks,
>    Jack
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: text-mode-menu.usr_sbin
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090930/fd0c0bb8/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text-mode-menu.var_svc_manifest_system
Type: text/xml
Size: 2350 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090930/fd0c0bb8/attachment.xml>

Reply via email to