|
|
|
@ -164,6 +164,24 @@ class VariableClMigrateRootPwd(UserHelper,Variable):
|
|
|
|
|
if not value:
|
|
|
|
|
raise PasswordError(_("Password for user %s missing")%"root")
|
|
|
|
|
|
|
|
|
|
class VariableClInstallHomeCryptSet(UserHelper,Variable):
|
|
|
|
|
type = 'bool'
|
|
|
|
|
opt = ["--crypt-home","-C"]
|
|
|
|
|
untrusted = True
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.help = _("crypt user profiles")
|
|
|
|
|
self.label = _("Crypt user profiles")
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
return ("off" if self.Get('cl_autologin')
|
|
|
|
|
else self.Get('cl_home_crypt_set'))
|
|
|
|
|
|
|
|
|
|
def check(self,value):
|
|
|
|
|
if value == "on" and self.Get('cl_autologin'):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Crypt user profile uncompatible with autologin"))
|
|
|
|
|
|
|
|
|
|
class VariableClMigrateData(UserHelper,TableVariable):
|
|
|
|
|
"""
|
|
|
|
|
User migrate data table
|
|
|
|
@ -604,14 +622,16 @@ class VariableOsInstallUefiSet(Variable):
|
|
|
|
|
if self.Get('os_uefi_set') == 'off' and \
|
|
|
|
|
self.Get('os_install_root_type') == 'hdd':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("System must be loaded in UEFI for using this bootloader"))
|
|
|
|
|
_("Your system must be loaded in UEFI for using this "
|
|
|
|
|
"bootloader"))
|
|
|
|
|
if not 'gpt' in self.Get('os_device_table'):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Need GPT for using UEFI bootloader"))
|
|
|
|
|
_("GPT is needed for using the UEFI bootloader"))
|
|
|
|
|
if not (self.Get('os_install_disk_efi') or \
|
|
|
|
|
"/boot/efi" in self.Get('os_location_dest')):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Need EF00 partition for using UEFI bootloader"))
|
|
|
|
|
_("A EF00 partition is needed for using "
|
|
|
|
|
"the UEFI bootloader"))
|
|
|
|
|
if self.Get('os_install_arch_machine') != 'x86_64':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Architecture of the target system must be x86_64"))
|
|
|
|
@ -673,7 +693,7 @@ class VariableOsAudioData(ReadonlyTableVariable):
|
|
|
|
|
aplay = getProgPath('/usr/bin/aplay')
|
|
|
|
|
if not aplay:
|
|
|
|
|
return [[]]
|
|
|
|
|
entry = re.compile('^card (\d+): ([^,]+)')
|
|
|
|
|
entry = re.compile('^card (\d+): ([^:]+)')
|
|
|
|
|
return tuple(map(lambda x:x.groups(),
|
|
|
|
|
filter(None,map(entry.search,
|
|
|
|
|
process(aplay,'-l')))))
|
|
|
|
|