|
|
|
@ -301,6 +301,10 @@ class convertDictOpt:
|
|
|
|
|
"incompatible":["uni_xlate"]}},
|
|
|
|
|
"incompatible":[],
|
|
|
|
|
"makefs":"/usr/sbin/mkfs.vfat"},
|
|
|
|
|
"btrfs":{"options":[],
|
|
|
|
|
"pair":{},
|
|
|
|
|
"incompatible":[],
|
|
|
|
|
"makefs":"/sbin/mkfs.btrfs"},
|
|
|
|
|
"ntfs":{"options":["uni_xlate","posix","nls",
|
|
|
|
|
"utf8","iocharset",
|
|
|
|
|
"uid","gid","umask"],
|
|
|
|
@ -1613,12 +1617,22 @@ class cl_install(color_print, SignalInterrupt):
|
|
|
|
|
where="os_install_disk_mount", eq="/boot")
|
|
|
|
|
rootDiskType = self.varSelect("os_disk_type",
|
|
|
|
|
where="os_install_disk_mount", eq="/")
|
|
|
|
|
bootDiskFormat = self.varSelect("os_install_disk_format",
|
|
|
|
|
where="os_install_disk_mount", eq="/boot")
|
|
|
|
|
rootDiskFormat = self.varSelect("os_install_disk_format",
|
|
|
|
|
where="os_install_disk_mount", eq="/")
|
|
|
|
|
bootDiskType = bootDiskType or rootDiskType
|
|
|
|
|
bootDiskFormat = bootDiskFormat or rootDiskFormat
|
|
|
|
|
if "lvm" in bootDiskType or "raid" in bootDiskType:
|
|
|
|
|
self.printERROR(
|
|
|
|
|
_("Legacy grub not support boot from raid or lvm without"
|
|
|
|
|
" separate /boot partition"))
|
|
|
|
|
return False
|
|
|
|
|
if bootDiskFormat == "btrfs":
|
|
|
|
|
self.printERROR(
|
|
|
|
|
_("Legacy grub not support boot from btrfs without"
|
|
|
|
|
" separate /boot partition"))
|
|
|
|
|
return False
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def setUsers(self,listUsers):
|
|
|
|
@ -2613,8 +2627,12 @@ the system") + " (yes/no)"
|
|
|
|
|
"march" in imageData:
|
|
|
|
|
self.clVars.Set('os_install_arch_machine',
|
|
|
|
|
imageData['march'],True)
|
|
|
|
|
self.clVars.Set('os_install_linux_build',
|
|
|
|
|
imageData['build'],True)
|
|
|
|
|
self.clVars.Set('os_install_linux_ver',
|
|
|
|
|
imageData['ver'],True)
|
|
|
|
|
self.setLinuxName(imageData['name'].upper())
|
|
|
|
|
self.clVars.Set('cl_image',True)
|
|
|
|
|
self.clVars.Set('cl_image',isoimage,True)
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|
self.printERROR(_("Wrong image file"))
|
|
|
|
|