Make woody's post-boot-mipsel script cope with extra fields in the

output of sarge's isoinfo
This commit is contained in:
Steve McIntyre 2005-04-18 00:00:06 +00:00
parent f5d06672dd
commit f052e56e2a
2 changed files with 5 additions and 2 deletions

3
debian/changelog vendored
View File

@ -3,6 +3,9 @@ debian-cd (2.2.22) UNRELEASED; urgency=low
* Joey Hess * Joey Hess
- Add post-sarge udebs rescue-check, initrd-preseed, and preseed-common - Add post-sarge udebs rescue-check, initrd-preseed, and preseed-common
to the udeb exclude list since these will be/are inluded on sid initrds. to the udeb exclude list since these will be/are inluded on sid initrds.
* Steve McIntyre
- Make woody's post-boot-mipsel script cope with extra fields in the
output of sarge's isoinfo
-- Joey Hess <joeyh@debian.org> Thu, 14 Apr 2005 00:59:49 -0400 -- Joey Hess <joeyh@debian.org> Thu, 14 Apr 2005 00:59:49 -0400

View File

@ -51,7 +51,7 @@ KTYPE[7]=""
KTYPE[8]="" KTYPE[8]=""
LINE=$(isoinfo -i ${CDIMAGE} -lR |grep tftpimage-${KTYPE[$NN]}.raw) LINE=$(isoinfo -i ${CDIMAGE} -lR |grep tftpimage-${KTYPE[$NN]}.raw)
CDSTARTEXTEND=$(echo $LINE | cut -d "[" -f 2 | cut -d "]" -f 1) CDSTARTEXTEND=$(echo $LINE | cut -d "[" -f 2 | cut -d "]" -f 1 | awk '{print $1}')
CDNUMBLOCKS=$((($(echo $LINE |tr -s " "| cut -f 5 -d " ") + 2047)/2048)) CDNUMBLOCKS=$((($(echo $LINE |tr -s " "| cut -f 5 -d " ") + 2047)/2048))
KERNEL_ENTRY=$(objdump -f CD1/dists/$CODENAME/main/disks-$ARCH/current/tftpimage-${KTYPE[$NN]} | grep "start address" | cut -f 3 -d " ") KERNEL_ENTRY=$(objdump -f CD1/dists/$CODENAME/main/disks-$ARCH/current/tftpimage-${KTYPE[$NN]} | grep "start address" | cut -f 3 -d " ")
# echo "LINE=${LINE}" # echo "LINE=${LINE}"