mkimg_test.sh (c78cd98b8ac557177b565c8f4354ddd8862167a7) mkimg_test.sh (3ac62888fc211e92785751c9bb6e73868101f65c)
1# $FreeBSD$
2
3mkimg_blksz_list="512 4096"
4mkimg_format_list="qcow qcow2 raw vhd vhdf vhdx vmdk"
5mkimg_geom_list="1x1 63x255"
6mkimg_scheme_list="apm bsd ebr gpt mbr vtoc8"
7
8bootcode()

--- 42 unchanged lines hidden (view full) ---

51
52 partarg=""
53 for P in $*; do
54 partarg="$partarg -p $P"
55 done
56 if test -z "$partarg"; then
57 local swap ufs
58 swap="-p freebsd-swap::128K"
1# $FreeBSD$
2
3mkimg_blksz_list="512 4096"
4mkimg_format_list="qcow qcow2 raw vhd vhdf vhdx vmdk"
5mkimg_geom_list="1x1 63x255"
6mkimg_scheme_list="apm bsd ebr gpt mbr vtoc8"
7
8bootcode()

--- 42 unchanged lines hidden (view full) ---

51
52 partarg=""
53 for P in $*; do
54 partarg="$partarg -p $P"
55 done
56 if test -z "$partarg"; then
57 local swap ufs
58 swap="-p freebsd-swap::128K"
59 ufs="-p freebsd-ufs:=`mkcontents P 4194304`"
59 ufs="-p freebsd-ufs:=$(atf_get_srcdir)/partition_data_4M.bin"
60 partarg="$ufs $swap"
61 fi
62
63 imagename=$pfx-$geom-$blksz-$scheme.$format
64
65 mkimg -y -f $format -o $imagename -s $scheme -P $blksz -H $nhds -T $nsecs \
66 $bootarg $partarg
67 echo $imagename

--- 97 unchanged lines hidden ---
60 partarg="$ufs $swap"
61 fi
62
63 imagename=$pfx-$geom-$blksz-$scheme.$format
64
65 mkimg -y -f $format -o $imagename -s $scheme -P $blksz -H $nhds -T $nsecs \
66 $bootarg $partarg
67 echo $imagename

--- 97 unchanged lines hidden ---