|
|
|
@ -294,6 +294,62 @@ class convertDictOpt:
|
|
|
|
|
"incompatible":["uni_xlate"]}},
|
|
|
|
|
"incompatible":[],
|
|
|
|
|
"makefs":"/usr/sbin/mkfs.vfat"},
|
|
|
|
|
"ntfs":{"options":["uni_xlate","posix","nls",
|
|
|
|
|
"utf8","iocharset",
|
|
|
|
|
"uid","gid","umask"],
|
|
|
|
|
"pair":{"utf8":{"options":
|
|
|
|
|
re.compile("0|1|no|false|true|yes"),
|
|
|
|
|
"incompatible":["uni_xlate"]},
|
|
|
|
|
"iocharset":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":["nls"]},
|
|
|
|
|
"uni_xlate":{"options":
|
|
|
|
|
re.compile("0|1|2"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"posix":{"options":
|
|
|
|
|
re.compile("0|1"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"uid":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"gid":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"umask":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
},
|
|
|
|
|
"incompatible":[],
|
|
|
|
|
"makefs":"/usr/sbin/mkfs.ntfs"},
|
|
|
|
|
"ntfs-3g":{"options":["uid","gid","umask","fmask",
|
|
|
|
|
"dmask","usermapping",
|
|
|
|
|
"default_permissions",
|
|
|
|
|
"inherit","locale",
|
|
|
|
|
"force","remove_hiberfile",
|
|
|
|
|
"show_sys_files","allow_other",
|
|
|
|
|
"max_read","silent","no_def_opts",
|
|
|
|
|
"streams_interface","user_xattr",
|
|
|
|
|
"efs_raw","debug","no_detach"],
|
|
|
|
|
"pair":{"uid":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"gid":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"umask":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"fmask":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"dmask":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"usermapping":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"default_permissions":{
|
|
|
|
|
"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"locale":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"max_read":{"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]},
|
|
|
|
|
"streams_interface":{
|
|
|
|
|
"options":re.compile(".+"),
|
|
|
|
|
"incompatible":[]}},
|
|
|
|
|
"incompatible":[],
|
|
|
|
|
"makefs":"/usr/sbin/mkfs.ntfs"},
|
|
|
|
|
"xfs":{"options":["allocsize", "attr2", "noattr2",
|
|
|
|
|
"barrier", "dmapi", "grpid",
|
|
|
|
|
"bsdgroups", "nogrpid", "sysvgroups",
|
|
|
|
@ -563,10 +619,11 @@ class convertDictOpt:
|
|
|
|
|
optMountPoint = "/"
|
|
|
|
|
dictUpdateProperty["mountPoint"] = optMountPoint
|
|
|
|
|
supportedFS = self.getAllSupportFileSystemOpt()
|
|
|
|
|
if optMountPoint == "/":
|
|
|
|
|
reRootDirectories = re.compile("^/[^/]*/?$",re.S)
|
|
|
|
|
if reRootDirectories.match(path.normpath(optMountPoint)):
|
|
|
|
|
# check install type (flash or hdd)
|
|
|
|
|
if self._getDeviceType(dev) != "flash":
|
|
|
|
|
excludeFS = set(["vfat"])
|
|
|
|
|
excludeFS = set(["vfat","ntfs","ntfs-3g"])
|
|
|
|
|
else:
|
|
|
|
|
excludeFS = set(supportedFS) - \
|
|
|
|
|
set(["vfat","noformat","default"])
|
|
|
|
@ -591,7 +648,8 @@ class convertDictOpt:
|
|
|
|
|
%optFileSystem)
|
|
|
|
|
if optFileSystem in excludeFS:
|
|
|
|
|
mp = optMountPoint
|
|
|
|
|
if mp == '/' and self._getDeviceType(dev) == "flash":
|
|
|
|
|
if reRootDirectories.match(path.normpath(mp)) \
|
|
|
|
|
and self._getDeviceType(dev) == "flash":
|
|
|
|
|
mp = "flash"
|
|
|
|
|
raise InstallError(
|
|
|
|
|
_("File system for '%s' should not be '%s'")
|
|
|
|
@ -606,7 +664,8 @@ class convertDictOpt:
|
|
|
|
|
_("Partition %s is not formatted")%dev)
|
|
|
|
|
elif format in excludeFS:
|
|
|
|
|
mp = optMountPoint
|
|
|
|
|
if mp == '/' and self._getDeviceType(dev) == "flash":
|
|
|
|
|
if reRootDirectories.match(path.normpath(mp)) \
|
|
|
|
|
and self._getDeviceType(dev) == "flash":
|
|
|
|
|
mp = "flash"
|
|
|
|
|
raise InstallError(\
|
|
|
|
|
_("File system for '%s' should not be '%s'")
|
|
|
|
|