Hi David,
David Garcia - ONPIT wrote: > Hi, > > Just out of curiosity.. > When we create a service we specify the target dir. It's actually the > only mandatory field according to installadm (shouldn't '-s srcimage' > option be mandatory as well?) yes, '-s' is mandatory - it is mentioned later in man page, but it seems to be marked incorrectly in 'usage' section. There is a bug filed for tracking these issues: 5553 required parameters are marked as optional in installadm(1M) man page It seems that the one you noticed is not mentioned in bug report - could you please capture it there ? > > usage: installadm <subcommand> <args> ... > create-service [-d] [-u] [-f <bootfile>] [-D <DHCPserver>] > [-n <svcname>] [-i <dhcp_ip_start>] > [-c <count_of_ipaddr>] [-s <srcimage>] <targetdir> > delete-service [-x] <svcname> > list [-n <svcname>] > start <svcname> > stop <svcname> > create-client [-P <protocol>] > [-b "<property>=<value>"] > -e <macaddr> -t <imagepath> -n <svcname> > delete-client <macaddr> > add -m <manifest> -n <svcname> > remove -m <manifest> -n <svcname> > set -p <name>=<value> -n <svcname> > version > help [<subcommand>] > > > # /usr/sbin/installadm/installadm create-service -n > x86_install_service -s /images/AI/osol-0811-rc2-ai.iso > /server/images/osol-0811-rc2-ai > > So at this point we have a service called x86_install_service that > points at /server/images/osol-0811-rc2-ai Actually, for x86, install service is not bound to the particular image - those are independent. * install image determines the environment used for the installation, * install service provides client with the locations where to ask for installation configuration. For example, you could have bunch of clients you would like to install with 106 and you need to use 106 AI image as installation environment for all of them. But you could have per client requirements where to search for install configuration files. > Then shouldn't it be enough to specify the service name when we create > a new client? > Given that a service can't have more than 1 targetdir related to it, > why do we need the option '-t imagepath'? Since install service is not bounded to AI image, you can specify that you would like to use the same install service for clients you would like to install using different AI images. I agree with you that this possibility is not quite obvious, since you probably can't create just AI image without creating new install service. I can see this might be useful for testing purposes (like making sure that different images lead to the same installed bits for regression tests), not sure if there might be other use cases. Thank you, Jan > > # installadm create-client -e 0:14:4f:4a:98:62 -n install_service -t > /server/images/osol-0811-rc2-ai/ > > > Thanks, > David > > > > _______________________________________________ > caiman-discuss mailing list > caiman-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
