Skip to content

Commit

Permalink
Disable zswap if zram is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles committed Oct 8, 2022
1 parent cf6223c commit 4e38052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,9 @@ def add_grub_bootloader(self, boot_partition :Partition, root_partition :Partiti

options = [f'rootfstype={root_fs_type}']

if self._zram_enabled:
options.insert(0, 'zswap.enabled=0')

if real_device := self.detect_encryption(root_partition):
root_uuid = SysCommand(f"blkid -s UUID -o value {real_device.path}").decode().rstrip()

Expand Down

0 comments on commit 4e38052

Please sign in to comment.