In the installation, if you run the ndbsetup task n times (n > 1),
the installed /lib/ndb/local will have n sys= entries.
The problem is that ndb(8) will use the first sys= entry found, but
one would expect that the last configuration in the ndbsetup task
would be the active one.
Remove any previous entry in ndbsetup before adding new one.
prompt $default 'sysname'
sysname=$rd
+ cp /n/newfs/lib/ndb/local /tmp/ndb.local
{
+ ssam 'x/^.*ether='^$etheraddr^'.*$/ d' /tmp/ndb.local
+
echo
switch($ethermethod){
case dhcp
'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr
}
echo
- } >>/n/newfs/lib/ndb/local
+ } >/n/newfs/lib/ndb/local
}