Skip to content

Commit

Permalink
Add minor checking to image build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
r0m30 committed Feb 9, 2015
1 parent e28e7db commit 24df95e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/buildbiospba
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ set -x
# Build the bios PBA
## define releases for tools
. conf

VERSIONINFO=`git describe --dirty`
BUILDTYPE=biospba
BUILDIMG=${BUILDTYPE}-${VERSIONINFO}.img
# Start fresh
sudo rm -rf ${BUILDTYPE} ; mkdir ${BUILDTYPE} ; cd ${BUILDTYPE}
## check that everything is available
[ -f ${SYSLINUX}/bios/mbr/mbr.bin -a \
-x ${SYSLINUX}/bios/linux/syslinux -a \
-f ${SYSLINUX}/bios/com32/msedpba/msedpba.c32 -a \
-f ${SYSLINUX}/bios/com32/libutil/libutil.c32 -a \
-f ${SYSLINUX}/bios/com32/lib/libcom32.c32 \
] || { echo " prereqs are not available "; exit 1; }
#
dd if=/dev/zero of=${BUILDIMG} bs=1M count=1
(echo o;echo n;echo p;echo 1;echo 63;echo "";echo a;echo 1;echo t;echo b;echo w) | fdisk -C 10 ${BUILDIMG}
Expand Down
7 changes: 7 additions & 0 deletions images/buildrescue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ BUILDIMG=${BUILDTYPE}-${VERSIONINFO}.img
echo "Building " $BUILDTYPE "image"
# Start fresh
sudo rm -rf ${BUILDTYPE} ; mkdir ${BUILDTYPE} ; cd ${BUILDTYPE}
[ -f ${SYSLINUX}/bios/mbr/mbr.bin -a \
-x ${SYSLINUX}/bios/extlinux/extlinux -a \
-f ../scratch/core.gz -a \
-f ../scratch/vmlinuz -a \
-f ../scratch/hdparm.tcz -a \
-f ../../dist/Release_i686/msed \
] || { echo " prereqs are not available "; exit 1; }
#
dd if=/dev/zero of=${BUILDIMG} bs=1M count=15
(echo o;echo n;echo p;echo 1;echo "";echo "";echo a;echo 1;echo w) | fdisk -C 100 ${BUILDIMG}
Expand Down

0 comments on commit 24df95e

Please sign in to comment.