bootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=, auth= and secstore= (thanks mischief)
This commit is contained in:
parent
d75f5a24ba
commit
23b3407663
|
@ -25,6 +25,13 @@ fn confignet{
|
||||||
if(~ $#auth 0)
|
if(~ $#auth 0)
|
||||||
ask auth ' ip is? ' $fs(1)
|
ask auth ' ip is? ' $fs(1)
|
||||||
|
|
||||||
|
# resolve dns names
|
||||||
|
if(test -x /bin/ndb/dnsgetip){
|
||||||
|
for(i in fs auth secstore){
|
||||||
|
$i=`{for(x in $$i) ndb/dnsgetip -a $x}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# set bootstrap authservers for factotum
|
# set bootstrap authservers for factotum
|
||||||
if(! ~ $#auth 0){
|
if(! ~ $#auth 0){
|
||||||
grep -v '^[ ]*auth=' /net/ndb >/env/x
|
grep -v '^[ ]*auth=' /net/ndb >/env/x
|
||||||
|
|
|
@ -27,6 +27,8 @@ $objtype
|
||||||
mntgen
|
mntgen
|
||||||
mount
|
mount
|
||||||
mv
|
mv
|
||||||
|
ndb
|
||||||
|
dnsgetip
|
||||||
hjfs
|
hjfs
|
||||||
rc
|
rc
|
||||||
rm
|
rm
|
||||||
|
|
Loading…
Reference in a new issue