Skip to content

Commit

Permalink
fix: disable grub-dpkg by default
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Oct 22, 2024
1 parent a911b5e commit d619ce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloudinit/config/cc_grub_dpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cloudinit/config/schemas/schema-cloud-config-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d619ce7

Please sign in to comment.