|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
import re
|
|
|
|
|
from os import path
|
|
|
|
|
from os import path,readlink
|
|
|
|
|
from calculate.lib.datavars import Variable,VariableError,ReadonlyVariable, \
|
|
|
|
|
READONLY, TableVariable,FieldValue
|
|
|
|
|
|
|
|
|
@ -151,6 +151,11 @@ class VariableOsInstallNetFqdn(NetHelper,Variable):
|
|
|
|
|
_("Hostname length should be less that %d")%maxfqdn)
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
# TODO: temporary code for quick run on PXE loading
|
|
|
|
|
if path.exists('/proc/self/fd/1') and \
|
|
|
|
|
readlink('/proc/self/fd/1') == '/dev/console' and \
|
|
|
|
|
self.Get('os_root_dev') == '/dev/nfs':
|
|
|
|
|
return "calculate.local"
|
|
|
|
|
return self.Get('os_net_fqdn')
|
|
|
|
|
|
|
|
|
|
class VariableOsInstallNetDomain(NetHelper,Variable):
|
|
|
|
|