Attempting to correct some inconsitencies in disk-parent reporting.
This commit is contained in:
parent
c7b2133376
commit
e49b73cef4
|
|
@ -166,6 +166,9 @@ class Partition():
|
||||||
self.mountpoint = target
|
self.mountpoint = target
|
||||||
|
|
||||||
if not self.filesystem and autodetect_filesystem:
|
if not self.filesystem and autodetect_filesystem:
|
||||||
|
print(f'Auto-detecting filesystem for: {path}')
|
||||||
|
print('Mount information:', mount_information.get('fstype', None))
|
||||||
|
print('Real device:', get_filesystem_type(self.real_device))
|
||||||
if (fstype := mount_information.get('fstype', get_filesystem_type(self.real_device))):
|
if (fstype := mount_information.get('fstype', get_filesystem_type(self.real_device))):
|
||||||
self.filesystem = fstype
|
self.filesystem = fstype
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ class Installer():
|
||||||
if '/usr/bin/btrfs-progs' not in BINARIES:
|
if '/usr/bin/btrfs-progs' not in BINARIES:
|
||||||
BINARIES.append('/usr/bin/btrfs')
|
BINARIES.append('/usr/bin/btrfs')
|
||||||
|
|
||||||
if (partition.encrypted or Partition(partition.parent, None, autodetect_filesystem=True).filesystem == 'crypto_LUKS'):
|
if (partition.encrypted or (partition.parent not in partition.path and Partition(partition.parent, None, autodetect_filesystem=True).filesystem == 'crypto_LUKS')):
|
||||||
if 'encrypt' not in HOOKS:
|
if 'encrypt' not in HOOKS:
|
||||||
HOOKS.insert(HOOKS.find('filesystems'), 'encrypt')
|
HOOKS.insert(HOOKS.find('filesystems'), 'encrypt')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue