From ff7ceb2e2be953c490b8317fb3c08e6f0b3bc850 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 24 May 2022 15:56:34 +0200 Subject: [PATCH] [fstab] Replace two-step attribute-setting with one step --- src/modules/fstab/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/fstab/main.py b/src/modules/fstab/main.py index 2b261fc66..0a9da8f2d 100755 --- a/src/modules/fstab/main.py +++ b/src/modules/fstab/main.py @@ -341,8 +341,7 @@ def create_swapfile(root_mount_point, root_btrfs): swapfile_path = os.path.join(root_mount_point, "swap/swapfile") with open(swapfile_path, "wb") as f: pass - libcalamares.utils.host_env_process_output(["btrfs", "property", "set", swapfile_path, "compression", "none"]) - libcalamares.utils.host_env_process_output(["chattr", "+C", swapfile_path]) # No Copy-on-Write + libcalamares.utils.host_env_process_output(["chattr", "+C", "+m", swapfile_path]) # No Copy-on-Write, no compression else: swapfile_path = os.path.join(root_mount_point, "swapfile") with open(swapfile_path, "wb") as f: