-
-
Even if actually both loader installboot and grub installgrub are both based on sparc installboot, there platform differences are quite large - starting from partition handling (MBR+VTOC/MBR logical partitions+VTOC/GPT) ending with stage1 management, bootblock on sparc is split, handle the bootblock locations in case of zfs/ufs/pcfs on different partitioning schemes, I just felt a lot safer to have separate copy. I guess it is possible to merge the installboot.[ch] into one file, but the result will be preprocessor #if #else #endif spaghetti and im not sure if the result will be worth it. Also consider if we have single source and need to update, the result has to be tested on both platforms or we have really unhappy sparc people... I think, it is better to keep separation here.
-
I'm not talking about one installboot.[ch], but there are surely a lot of duplicate code, which could live in common/something.[ch].
-
Ah i see. Well, I did trivial check with vim -d, and it was not too promising really. Actually even thinking about it - current sparc installboot is only supporting VTOC, just splitting bootblk at 7.5k and writing it down to two location - there really is not too much to share.
-
-
-
I've converted the man page - http://www.xvoid.org/illumos/stuff/installboot.1m, let's not add any more ugliness to the gate. Please use the format of commands in SYNOPSIS for usage messages, making arguments look like <arg>, eg, <raw-device>.
Change Summary:
installboot.1m manual update from Yuri. whitespace mixup in i386/installboot.c.
-
-
-
usr/src/cmd/boot/installboot/Makefile.com (Diff revision 2) Is this a false positive? Even if it is, I'd rather see it "fixed" than the warning gagged.
-
usr/src/cmd/boot/installboot/Makefile.targ (Diff revision 2) Just include this directly, instead, if you don't need your own
Makefile.targ
-
-
-
Diff: |
Revision 3 (+2040 -52)
|
---|
Change Summary:
typo in manual.
Diff: |
Revision 4 (+2040 -52)
|
---|
Change Summary:
fill up the device->stage for MBR only case (either use space between MBR and first partition or solaris boot partition), needed for proper space verification before writing stage2.
Diff: |
Revision 5 (+2069 -52)
|
---|
Change Summary:
cstyle fix
Diff: |
Revision 6 (+2069 -52)
|
---|