From e4fa7c25b2b0c37d514d916640609b9788b8a314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 20 Dec 2018 09:56:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=D0=B0=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D0=BE=D0=B9=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC?= =?UTF-8?q?=D1=8B=20=D0=BF=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если раздел, на который производится установка отформатирован, то будет использоваться такая же файловая система. Если раздел не содержит файловой системы (или её определить не удалось), то будет использоваться файловая система как на текущем корневом разделе (при установки с hdd). --- pym/install/variables/disk.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pym/install/variables/disk.py b/pym/install/variables/disk.py index bb21b05..fe968de 100644 --- a/pym/install/variables/disk.py +++ b/pym/install/variables/disk.py @@ -1326,6 +1326,14 @@ class VariableOsLocationFormat(LocationHelper, Variable): where='os_format_use', eq='yes')) + default_format = None + if self.Get('os_root_type_ext') in RootType.HDD: + root_format = self.select( + 'os_disk_format', os_disk_mount="/", limit=1) + if root_format and self.select( + 'os_format_use', os_format_type=root_format, limit=1) == "yes": + default_format = root_format + def wrap(info): dev, mount, fs = info if mount and not fs and dev.startswith('/dev/'): @@ -1341,8 +1349,10 @@ class VariableOsLocationFormat(LocationHelper, Variable): return diskFormat[dev] else: return diskFormat[dev] - return FileSystemManager.defaultFS.get(osInstallRootType, - "ext4") + if default_format: + return default_format + return FileSystemManager.defaultFS.get( + osInstallRootType, "ext4") return fs return wrap