From: Daan De Meyer Date: Thu, 7 Jul 2022 18:12:47 +0000 (+0200) Subject: arch: Add symlinks to /boot for kernel and initrd when using bios X-Git-Tag: v14~133^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1038%2Fhead;p=thirdparty%2Fmkosi.git arch: Add symlinks to /boot for kernel and initrd when using bios Grub doesn't support the boot loader spec on Arch so we have to symlink vmlinuz and the initrd to some place where grub can find them. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index edd7d43e0..324ae4f09 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -7315,6 +7315,11 @@ def run_kernel_install(args: MkosiArgs, root: Path, do_run_build_script: bool, f for kver, kimg in gen_kernel_images(args, root): run_workspace_command(args, root, ["kernel-install", "add", kver, Path("/") / kimg]) + if args.distribution == Distribution.arch and "bios" in args.boot_protocols: + boot_dir = Path("/") / boot_directory(args, kver) + root.joinpath(f"boot/vmlinuz-{kver}").symlink_to(boot_dir / "linux") + root.joinpath(f"boot/initramfs-{kver}.img").symlink_to(boot_dir / "initrd") + @dataclasses.dataclass class BuildOutput: