1 1.1.30.1 msaitoh /* $NetBSD: md.c,v 1.1.30.1 2019/11/17 13:45:26 msaitoh 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.1.30.1 msaitoh 7 1.1.30.1 msaitoh void amd64_md_boot_cfg_finalize(const char *path); 8 1.1.30.1 msaitoh 9 1.1.30.1 msaitoh void 10 1.1.30.1 msaitoh amd64_md_boot_cfg_finalize(const char *path) 11 1.1.30.1 msaitoh { 12 1.1.30.1 msaitoh char buf[MAXPATHLEN]; 13 1.1.30.1 msaitoh 14 1.1.30.1 msaitoh if (get_kernel_set() != SET_KERNEL_2) 15 1.1.30.1 msaitoh return; 16 1.1.30.1 msaitoh 17 1.1.30.1 msaitoh run_program(RUN_CHROOT|RUN_FATAL, 18 1.1.30.1 msaitoh "sh -c 'sed -e \"s:;boot:;pkboot:\" " 19 1.1.30.1 msaitoh "< %s > %s.1", path, path); 20 1.1.30.1 msaitoh snprintf(buf, sizeof buf, "%s.1", path); 21 1.1.30.1 msaitoh mv_within_target_or_die(buf, path); 22 1.1.30.1 msaitoh } 23