diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-25 03:37:39 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-25 03:37:39 +0000 |
commit | b41629d499619c40b79db969272fa8a6aa78486d (patch) | |
tree | f839113829e2f473705130c93d8ec8810b0867bf /usr.sbin/bsdinstall/partedit | |
parent | 1d1e035e4aa915966b05721e452d90fe7cef70db (diff) | |
download | FreeBSD-src-b41629d499619c40b79db969272fa8a6aa78486d.zip FreeBSD-src-b41629d499619c40b79db969272fa8a6aa78486d.tar.gz |
Experimental support for booting CHRP-type PowerPC systems from hard disks.
Diffstat (limited to 'usr.sbin/bsdinstall/partedit')
-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 13d2536..ef23eb6 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); } |