Hi John,
as you pointed out, DNS is not available until /usr is mounted -
looking at SMF dependencies, I think it is expected:
$ svcs -d svc:/network/service:default
...
online Sep_17 svc:/system/filesystem/usr:default
...
/lib/svc/method/net-svc start method of svc:/network/service:default
SMF service is the one which populates /etc/resolv.conf:
...
if [ "$_INIT_NET_STRATEGY" = "dhcp" ]; then
dnsservers=`get_dhcp_var DNSserv`
dnsdomain=`get_dhcp_var DNSdmain`
else
dnsservers=""
dnsdomain=""
fi
if [ -n "$dnsservers" ]; then
#
# add settings retrieved from dhcp server to
/etc/resolv.conf
#
update_resolv "$dnsservers" "$dnsdomain"
#
# Add dns to the nsswitch file, if it isn't already there.
#
update_nss hosts
...
Since it calls bunch of binaries from /usr,
it has to wait until /usr is available - from
/var/svc/manifest/network/network-service.xml:
...
<!--
We require the root, usr and minimal filesystems, since
this service writes to/reads from /tmp, /etc, /var and
runs programs under /usr.
-->
<dependency
name='filesystem'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/system/filesystem/root' />
<service_fmri value='svc:/system/filesystem/usr' />
<service_fmri value='svc:/system/filesystem/minimal' />
</dependency>
...
AI currently uses DNS only for resolving hostname of IPS repository,
everything else is provided in form of IP addresses - installadm(1M)
takes care of the configuration.
NIS/NIS+ is currently not supported by AI, but I am not sure if it
would help, since it seems (after taking a quick look at SMF
dependencies) that it waits for /usr as well.
Thank you,
Jan
John Levon wrote:
> On Mon, Sep 28, 2009 at 08:55:37PM +0100, John Levon wrote:
>
>>> Can you check whether dns client service
>>> (svc:/network/dns/client:default) is up on the install client?
>> No, I can't - there's no svcs or ps binaries.
>
> After much pain importing an rpool from elsewhere, I got svcs:
>
> # svcs -xv network/dns/client
> svc:/network/dns/client:default (DNS resolver)
> State: disabled since Mon Sep 28 05:53:40 2009
> Reason: Disabled by an administrator.
>
> # cat /etc/svc/volatile/network-dns-client\:default.log
> [ start + 1.03s Disabled. ]
> -bash: /usr/bin/hostname: No such file or directory
>
> # netstrategy
> ufs xnf0 dhcp
>
> # cat system-identity\:node.log
> [ start + 0.54s Enabled. ]
> [ start + 9.28s Executing start method
> ("/lib/svc/method/identity-node"). ]
> [ start + 9.32s Method "start" exited with status 0. ]
>
> Any suggestions?
>
> regards
> john
> _______________________________________________
> caiman-discuss mailing list
> caiman-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss