diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2012-01-25 03:37:39 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2012-01-25 03:37:39 +0000 |
commit | 090dd246360c321806df99c192b36167cc11536c (patch) | |
tree | f839113829e2f473705130c93d8ec8810b0867bf /usr.sbin | |
parent | 3129859c9285ce9fa7e088f3b0619d79a895ee9b (diff) | |
download | src-090dd246360c321806df99c192b36167cc11536c.tar.gz src-090dd246360c321806df99c192b36167cc11536c.zip |
Experimental support for booting CHRP-type PowerPC systems from hard disks.
Notes
Notes:
svn path=/head/; revision=230522
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bsdinstall/partedit/partedit_powerpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/partedit/partedit_powerpc.c b/usr.sbin/bsdinstall/partedit/partedit_powerpc.c index 13d25360bb6c..ef23eb6120dc 100644 --- a/usr.sbin/bsdinstall/partedit/partedit_powerpc.c +++ b/usr.sbin/bsdinstall/partedit/partedit_powerpc.c @@ -67,7 +67,7 @@ is_scheme_bootable(const char *part_type) { size_t bootpart_size(const char *part_type) { - if (strcmp(part_type, "APM") == 0) + if (strcmp(part_type, "APM") == 0 || strcmp(part_type, "MBR") == 0) return (800*1024); return (0); } @@ -81,6 +81,8 @@ const char * partcode_path(const char *part_type) { if (strcmp(part_type, "APM") == 0) return ("/boot/boot1.hfs"); + if (strcmp(part_type, "MBR") == 0) + return ("/boot/boot1.elf"); return (NULL); } |