Make iso filename include 'bios' when using hd emulation
This commit is contained in:
parent
cb235bce1e
commit
e9441a8972
1 changed files with 45 additions and 51 deletions
|
@ -60,15 +60,13 @@ CDFILES=/usr/tmp/cdreleasefiles
|
||||||
sh tell_config OS_RELEASE . OS_VERSION >/tmp/rel.$$
|
sh tell_config OS_RELEASE . OS_VERSION >/tmp/rel.$$
|
||||||
version_pretty=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$`
|
version_pretty=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$`
|
||||||
version=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$ | tr . _`
|
version=`sed 's/[" ]//g;/^$/d' </tmp/rel.$$ | tr . _`
|
||||||
ISO=minix${version}_`date +%Y%m%d-%H%M%S`.iso
|
ISO=minix${version}_`date +%Y%m%d-%H%M%S`
|
||||||
ISOGZ=${ISO}.gz
|
|
||||||
echo $ISOGZ
|
echo $ISOGZ
|
||||||
RAM=/dev/ram
|
RAM=/dev/ram
|
||||||
BS=4096
|
BS=4096
|
||||||
|
|
||||||
HDEMU=0
|
HDEMU=0
|
||||||
COPY=0
|
COPY=0
|
||||||
QUICK=0
|
|
||||||
|
|
||||||
while getopts "chaq?" c
|
while getopts "chaq?" c
|
||||||
do
|
do
|
||||||
|
@ -79,23 +77,20 @@ do
|
||||||
;;
|
;;
|
||||||
h)
|
h)
|
||||||
echo " * Making HD image"
|
echo " * Making HD image"
|
||||||
|
ISO=${ISO}_bios
|
||||||
HDEMU=1
|
HDEMU=1
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
echo " * Copying, not CVS"
|
echo " * Copying, not CVS"
|
||||||
COPY=1
|
COPY=1
|
||||||
;;
|
;;
|
||||||
q)
|
|
||||||
echo " * Quick option (skip important bits"
|
|
||||||
QUICK=1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $QUICK = 0 ]
|
ISO=${ISO}.iso
|
||||||
then USRMB=380
|
ISOGZ=${ISO}.gz
|
||||||
else USRMB=30
|
|
||||||
fi
|
USRMB=400
|
||||||
|
|
||||||
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
||||||
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
||||||
|
@ -162,49 +157,48 @@ mount $TMPDISK $RELEASEDIR/usr || exit
|
||||||
mkdir -p $RELEASEDIR/tmp
|
mkdir -p $RELEASEDIR/tmp
|
||||||
mkdir -p $RELEASEDIR/usr/tmp
|
mkdir -p $RELEASEDIR/usr/tmp
|
||||||
|
|
||||||
if [ $QUICK = 0 ]
|
echo " * Transfering $COPYITEMS to $RELEASEDIR"
|
||||||
|
( cd / && tar cf - $COPYITEMS ) | ( cd $RELEASEDIR && tar xf - ) || exit 1
|
||||||
|
|
||||||
|
# Make sure compilers and libraries are bin-owned
|
||||||
|
chown -R bin $RELEASEDIR/usr/lib
|
||||||
|
chmod -R u+w $RELEASEDIR/usr/lib
|
||||||
|
|
||||||
|
if [ "$COPY" -ne 1 ]
|
||||||
then
|
then
|
||||||
echo " * Transfering $COPYITEMS to $RELEASEDIR"
|
echo " * Doing new cvs export"
|
||||||
( cd / && tar cf - $COPYITEMS ) | ( cd $RELEASEDIR && tar xf - ) || exit 1
|
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
|
||||||
|
else
|
||||||
# Make sure compilers and libraries are bin-owned
|
( cd .. && make clean )
|
||||||
chown -R bin $RELEASEDIR/usr/lib
|
srcdir=/usr/src
|
||||||
|
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
||||||
if [ "$COPY" -ne 1 ]
|
|
||||||
then
|
|
||||||
echo " * Doing new cvs export"
|
|
||||||
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
|
|
||||||
else
|
|
||||||
( cd .. && make clean )
|
|
||||||
srcdir=/usr/src
|
|
||||||
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo " * Fixups for owners and modes of dirs and files"
|
|
||||||
chown -R bin $RELEASEDIR/usr/src
|
|
||||||
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
|
||||||
find $RELEASEDIR/usr/src -type f | xargs chmod 644
|
|
||||||
find $RELEASEDIR/usr/src -name configure | xargs chmod 755
|
|
||||||
find $RELEASEDIR/usr/src/commands -name build | xargs chmod 755
|
|
||||||
# Bug tracking system not for on cd
|
|
||||||
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
|
||||||
|
|
||||||
# Make sure the CD knows it's a CD
|
|
||||||
date >$RELEASEDIR/CD
|
|
||||||
echo " * Chroot build"
|
|
||||||
chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1
|
|
||||||
echo " * Chroot build done"
|
|
||||||
# The build process leaves some file in src as root.
|
|
||||||
chown -R bin $RELEASEDIR/usr/src*
|
|
||||||
cp issue.install $RELEASEDIR/etc/issue
|
|
||||||
|
|
||||||
if [ "$HDEMU" -ne 0 ]; then hdemu_root_changes; fi
|
|
||||||
|
|
||||||
echo "Temporary filesystems still mounted. Make changes, or press RETURN"
|
|
||||||
echo -n "to continue making the image.."
|
|
||||||
read xyzzy
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo " * Fixups for owners and modes of dirs and files"
|
||||||
|
chown -R bin $RELEASEDIR/usr/src
|
||||||
|
chmod -R u+w $RELEASEDIR/usr/lib
|
||||||
|
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
||||||
|
find $RELEASEDIR/usr/src -type f | xargs chmod 644
|
||||||
|
find $RELEASEDIR/usr/src -name configure | xargs chmod 755
|
||||||
|
find $RELEASEDIR/usr/src/commands -name build | xargs chmod 755
|
||||||
|
# Bug tracking system not for on cd
|
||||||
|
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
||||||
|
|
||||||
|
# Make sure the CD knows it's a CD
|
||||||
|
date >$RELEASEDIR/CD
|
||||||
|
echo " * Chroot build"
|
||||||
|
chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1
|
||||||
|
echo " * Chroot build done"
|
||||||
|
# The build process leaves some file in src as root.
|
||||||
|
chown -R bin $RELEASEDIR/usr/src*
|
||||||
|
cp issue.install $RELEASEDIR/etc/issue
|
||||||
|
|
||||||
|
if [ "$HDEMU" -ne 0 ]; then hdemu_root_changes; fi
|
||||||
|
|
||||||
|
echo "Temporary filesystems still mounted. Make changes, or press RETURN"
|
||||||
|
echo -n "to continue making the image.."
|
||||||
|
read xyzzy
|
||||||
|
|
||||||
echo $version_pretty >$RELEASEDIR/etc/version
|
echo $version_pretty >$RELEASEDIR/etc/version
|
||||||
echo " * Counting files"
|
echo " * Counting files"
|
||||||
df $TMPDISK | tail -1 | awk '{ print $4 }' >$RELEASEDIR/.usrkb
|
df $TMPDISK | tail -1 | awk '{ print $4 }' >$RELEASEDIR/.usrkb
|
||||||
|
|
Loading…
Reference in a new issue