Random imagezip hacking:
1. Make imagezip (and imageunzip) understand LILO bootblocks. Imagezip will create relocation information for all the absolute blocks that LILO embeds in the partition. Imageunzip will correctly relocate those locations when laying down the new image. Thus Linux slice images can be layed down anywhere on the disk (as can BSD images). 2. Because #1 is incompatible with the old imageunzip, I bumped the imagezip format version number (to 3) on images that contain relocations (i.e., slice images). Make sure you have a new imageunzip to unzip new slice images. Whole disk images are still created as version 2 since they contain no relocs and thus are no different than before. 3. Added -N option to imagezip to create slice images without any relocations. [ We could create our Emulab images this way, since we don't have any mechanism for, or reason to, let the user choose which partition to load an image in. Hence our slice images always wind up at the same offset on the disk and relocations are unnecessary. ] Note that there is no significant expense in either time or space for relocations, this option was more of a debugging thing.
Showing with 666 additions and 55 deletions