From d619ce73a05d72e377d5acb9e1eb8c46a86c20df Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Tue, 22 Oct 2024 12:00:58 -0600 Subject: [PATCH] fix: disable grub-dpkg by default --- cloudinit/config/cc_grub_dpkg.py | 4 ++-- cloudinit/config/schemas/schema-cloud-config-v1.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudinit/config/cc_grub_dpkg.py b/cloudinit/config/cc_grub_dpkg.py index 6ab7ac48e6a..7107f1fe3c2 100644 --- a/cloudinit/config/cc_grub_dpkg.py +++ b/cloudinit/config/cc_grub_dpkg.py @@ -24,7 +24,7 @@ "id": "cc_grub_dpkg", "distros": ["ubuntu", "debian"], "frequency": PER_INSTANCE, - "activate_by_schema_keys": [], + "activate_by_schema_keys": ["grub_dpkg", "grub-dpkg"], } LOG = logging.getLogger(__name__) @@ -115,7 +115,7 @@ def handle(name: str, cfg: Config, cloud: Cloud, args: list) -> None: if not mycfg: mycfg = {} - enabled = mycfg.get("enabled", True) + enabled = mycfg.get("enabled", False) if util.is_false(enabled): LOG.debug("%s disabled by config grub_dpkg/enabled=%s", name, enabled) return diff --git a/cloudinit/config/schemas/schema-cloud-config-v1.json b/cloudinit/config/schemas/schema-cloud-config-v1.json index 3d1c1a89697..fffa04b5266 100644 --- a/cloudinit/config/schemas/schema-cloud-config-v1.json +++ b/cloudinit/config/schemas/schema-cloud-config-v1.json @@ -1611,8 +1611,8 @@ "properties": { "enabled": { "type": "boolean", - "default": true, - "description": "Whether to configure which device is used as the target for grub installation. Default: ``true``." + "default": false, + "description": "Whether to configure which device is used as the target for grub installation. Default: ``false``." }, "grub-pc/install_devices": { "type": "string",