aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-01-25 03:37:39 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-01-25 03:37:39 +0000
commit090dd246360c321806df99c192b36167cc11536c (patch)
treef839113829e2f473705130c93d8ec8810b0867bf /usr.sbin
parent3129859c9285ce9fa7e088f3b0619d79a895ee9b (diff)
downloadsrc-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.c4
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);
}