split-image.sh.in 594 Bytes
Newer Older
1 2
#!/bin/sh

Leigh Stoller's avatar
Leigh Stoller committed
3 4 5 6 7 8 9
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#


10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#
# Split up an image and imagezip it. Beware, some sector offsets and sizes
# are hardcoded in here.
#

#
# Configure variables
#
TB="@prefix@"

#
# My zipper.
# 
zipper="$TB/bin/imagezip"

#
# The input image
# 
image=wd0

#
# Boot block: start 0, size 63
# 
$zipper -d -r -c 62 $image ${image}-mbr.ndz

#
# FreeBSD:
#
$zipper -d -s 1 $image ${image}-fbsd.ndz

#
# Linux:
#
$zipper -d -s 2 $image ${image}-rhat.ndz

#
# All of it.
#
$zipper -d $image ${image}-all.ndz