Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
diff --git a/src/hhd/plugins/power/power.py b/src/hhd/plugins/power/power.py
|
|
index 5ece857..be41542 100644
|
|
--- a/src/hhd/plugins/power/power.py
|
|
+++ b/src/hhd/plugins/power/power.py
|
|
@@ -79,12 +79,6 @@ def create_subvol():
|
|
)
|
|
return
|
|
|
|
- # Fixup selinux for swap
|
|
- subprocess.run(
|
|
- ["semanage", "fcontext", "-a", "-t", "var_t", HHD_SWAP_SUBVOL],
|
|
- )
|
|
- subprocess.run(["restorecon", HHD_SWAP_SUBVOL])
|
|
-
|
|
logger.info(f"Creating swap subvolume {HHD_SWAP_SUBVOL}")
|
|
os.system(f"btrfs subvolume create {HHD_SWAP_SUBVOL}")
|
|
|
|
@@ -153,19 +147,6 @@ def create_temporary_swap():
|
|
subprocess.run(["chmod", "600", HHD_SWAP_FILE], check=True)
|
|
subprocess.run(["mkswap", HHD_SWAP_FILE], check=True)
|
|
|
|
- # Fixup selinux for swap
|
|
- subprocess.run(
|
|
- [
|
|
- "semanage",
|
|
- "fcontext",
|
|
- "-a",
|
|
- "-t",
|
|
- "swapfile_t",
|
|
- HHD_SWAP_FILE,
|
|
- ],
|
|
- )
|
|
- subprocess.run(["restorecon", HHD_SWAP_FILE])
|
|
-
|
|
# Enable swap
|
|
subprocess.run(["swapon", HHD_SWAP_FILE], check=True)
|
|
|