5
# Do post-image-building tasks for mips, to make CDs bootable.
8
# $2 is the temporary CD build dir
19
# Only disk 1* bootable
20
if [ $N != 1 -a $N != 1_NONUS ]; then
24
for sub in r4k-ip22 r5k-ip22; do
25
_start=$(isoinfo -i $CDIMAGE -lR |grep -A 10 'Directory listing of /install' |grep ${sub}-boot.img |awk '{print $10 * 4}')
26
_size=$(isoinfo -i $CDIMAGE -lR |grep -A 10 'Directory listing of /install' |grep ${sub}-boot.img |awk '{OFMT="%.0f"; print int(($5 + 2047) / 2048) * 2048}')
27
_bootfiles="${_bootfiles} ${sub}:${_start},${_size}"
29
_start=$(isoinfo -i $CDIMAGE -lR |grep -A 10 'Directory listing of /install' |grep $r4k-ip22-boot.img |awk '{print $10 * 4}')
30
_size=$(isoinfo -i $CDIMAGE -lR |grep -A 10 'Directory listing of /install' |grep $r4k-ip22-boot.img |awk '{OFMT="%.0f"; print int(($5 + 2047) / 2048) * 2048}')
31
_bootfiles="${_bootfiles} sashARCS:${_start},${_size}"
33
echo Bootfiles: ${_bootfiles}
35
genisovh $CDIMAGE ${_bootfiles}