1/*	$NetBSD: md.c,v 1.2 2019/11/16 21:25:14 martin Exp $ */
2
3/* md.c -- Machine specific code for amd64 */
4
5#include "../i386/md.c"
6
7void	amd64_md_boot_cfg_finalize(const char *path);
8
9void
10amd64_md_boot_cfg_finalize(const char *path)
11{
12	char buf[MAXPATHLEN];
13
14	if (get_kernel_set() != SET_KERNEL_2)
15		return;
16
17	run_program(RUN_CHROOT|RUN_FATAL,
18	    "sh -c 'sed -e \"s:;boot:;pkboot:\" "
19	    "< %s > %s.1", path, path);
20	snprintf(buf, sizeof buf, "%s.1", path);
21	mv_within_target_or_die(buf, path);
22}
23