# specify the programs that are part of the system image
PROGRAMS= ../kernel/kernel \
- ../servers/mm/mm \
+ ../servers/pm/pm \
../servers/fs/fs \
../servers/is/is \
../drivers/tty/tty \
#!/bin/sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
cd /usr || exit 1
-tar cf - src | compress >src.tar.z || exit 1
cd /usr/src || exit 1
make world install || exit 1
cd tools || exit 1
make hdboot || exit 1
cp ../boot/boot /boot/boot || exit 1
cd /usr || exit 1
-rm -rf /usr/src || exit 1
+cd /usr/src || exit 1
+make clean
exit 0
--- /dev/null
+
+Login as root and run 'setup' to install Minix.
+
"exec mv $rootdir/M $rootdir/boot/image/`uname -r`.`uname -v`"
fi
- ./tell_config OS_RELEASE . OS_VERSION >/tmp/mkb.$$
+ sh tell_config OS_RELEASE . OS_VERSION >/tmp/mkb.$$
version=`sed 's/[" ]//g;/^$/d' </tmp/mkb.$$`
revision=`cat revision 2>/dev/null`
cp -p ../boot/boot /mnt/boot/boot || exit 1
umount $dev || exit 1
installboot -d $dev ../boot/bootblock boot/boot || exit 1
- edparams $dev 'unset bootopts; unset servers; unset image; ramimagedev=c0d2p1; unset rootdev; unset leader; leader() { echo If the system cannot find root, please hit ESC and set your\nramimagedev to the CD device, partition 1. e.g.\nramimagedev=c0d2p1 .. then boot to start.\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
+ edparams $dev 'unset bootopts; unset servers; unset image; ramimagedev=c0d2p1; unset rootdev; unset leader; leader() { echo If the system cannot find root, please hit ESC and set your\nramimagedev to the CD device, partition 1. e.g.\nramimagedev=c0d2p1 .. then boot to start.\n\nOtherwise I will boot with my defaults in 10 seconds.\n\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
# copy image
dd if=$dev of=cdfdimage bs=8192 count=180
mkdir -p $RELEASEDIR/usr/tmp
echo " * Transfering $COPYITEMS to $RELEASEDIR"
( cd / && tar cf - $COPYITEMS ) | ( cd $RELEASEDIR && tar xf - ) || exit 1
+date >$RELEASEDIR/CD
( cd $RELEASEDIR && find . -name CVS | xargs rm -rf )
echo " * Chroot build"
chroot $RELEASEDIR '/bin/sh -x /usr/src/tools/chrootmake.sh' || exit 1
echo " * Chroot build done"
+cp issue.install $RELEASEDIR/etc/issue
umount $TMPDISK || exit
umount $TMPTMPDISK || exit
umount $RAM || exit
make programs image
(cd ../boot && make)
make image || exit 1
-./mkboot cdfdboot
+sh mkboot cdfdboot
writeisofs -l MINIX -b $IMAGE /tmp $ISO || exit 1
echo "Appending Minix root filesystem"
cat >>$ISO $ROOTIMAGE || exit 1