stages/grub2.inst: Make grub-mkimage binary configurable
On Arch Linux grub-mkimage is provided by the `grub` package which is grub2 and grub (1) no longer exists.
This commit is contained in:
parent
8d67396ff3
commit
9d7d952ddf
1 changed files with 6 additions and 1 deletions
|
|
@ -70,6 +70,11 @@ SCHEMA = r"""
|
||||||
"filesystem": {
|
"filesystem": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["ext4", "xfs", "btrfs"]
|
"enum": ["ext4", "xfs", "btrfs"]
|
||||||
|
},
|
||||||
|
"binary": {
|
||||||
|
"description": "grub-mkimage binary name",
|
||||||
|
"type": "string",
|
||||||
|
"default": "grub2-mkimage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -231,7 +236,7 @@ def core_mkimage(platform: str, prefix: str, options: Dict,):
|
||||||
raise ValueError(f"unknown boot filesystem type: '{fs_type}'")
|
raise ValueError(f"unknown boot filesystem type: '{fs_type}'")
|
||||||
|
|
||||||
# now created the core image
|
# now created the core image
|
||||||
subprocess.run(["grub2-mkimage",
|
subprocess.run([options.get("binary", "grub2-mkimage"),
|
||||||
"--verbose",
|
"--verbose",
|
||||||
"--directory", f"/usr/lib/grub/{platform}",
|
"--directory", f"/usr/lib/grub/{platform}",
|
||||||
"--prefix", prefix,
|
"--prefix", prefix,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue