hold on something is NOT right

This commit is contained in:
2025-12-21 18:27:03 +01:00
parent ec18b3ef0c
commit 34ded0a08f

15
femctl
View File

@@ -137,13 +137,16 @@ def apply_service_overlays(service):
"""Fetch overlay index and apply all patches for a service"""
index = fetch_overlay_index()
# optionally warn if BLFS versions mismatch
if index.get("blfs_version") != BOOTSCRIPT_VER:
print("Warning: overlay BLFS version mismatch")
patches = index.get("overlays", {}).get(service, [])
for patch_name in patches:
apply_remote_overlay(service, patch_name)
service_entry = index.get("overlays", {}).get(service, None)
if not service_entry:
return # no overlays for this service
target = service_entry.get("target", service) # fallback to the service itself
for patch_name in service_entry.get("patches", []):
apply_remote_overlay_live(target, patch_name)
# ---------------------------------------------------------
@@ -166,11 +169,9 @@ def main():
return
service = sys.argv[2]
# apply remote overlays first
apply_service_overlays(service)
if command == "enable":
run_make(service, "install", services)
apply_service_overlays(service)
elif command == "disable":
run_make(service, "uninstall", services)
else: