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