memcpy(&isosize, pvd + 80, sizeof(isosize));
isosize *= CD_SECTOR_SIZE;
-#define ROOT_IMAGE_SECTORS (1440*1024/SECTOR_SIZE)
+#define ROOT_IMAGE_SECTORS (16*1024*1024/SECTOR_SIZE)
table[0].lowsec = 0;
table[0].size = isosize / SECTOR_SIZE;
$(LIBRARY)(popen.o) \
$(LIBRARY)(putenv.o) \
$(LIBRARY)(putw.o) \
- $(LIBRARY)(setcache.o) \
$(LIBRARY)(stderr.o) \
$(LIBRARY)(swab.o) \
$(LIBRARY)(syscall.o) \
$(LIBRARY)(rindex.o): rindex.c
$(CC1) rindex.c
-$(LIBRARY)(setcache.o): setcache.c
- $(CC1) setcache.c
-
$(LIBRARY)(stderr.o): stderr.c
$(CC1) stderr.c
+++ /dev/null
-
-#include <minix/config.h>
-
-#include <lib.h>
-#include <unistd.h>
-#include <minix/type.h>
-#include <minix/com.h>
-
-int
-setcache(int kb)
-{
- message m;
- int r;
-
- m.m1_i1 = kb;
- m.m_type = SETCACHE;
- if ((r=_syscall(FS, SETCACHE, &m)) < 0)
- return(-1);
-
- return(m.m_type);
-}
ROOTIMAGE=rootimage
ISO=minix.iso
RAM=/dev/ram
-if [ `wc -c $RAM | awk '{ print $1 }'` -ne 1474560 ]
-then echo "$RAM should be exactly 1440k."
+rootmb=16
+rootkb=`expr $rootmb \* 1024`
+rootbytes=`expr $rootkb \* 1024`
+if [ `wc -c $RAM | awk '{ print $1 }'` -ne $rootbytes ]
+then echo "$RAM should be exactly ${rootkb}k."
exit 1
fi
echo "Warning: I'm going to mkfs $RAM!"
TMPDISK=/dev/$dev
echo "Temporary (sub)partition to use for storage in /tmp?"
+echo "It will be mkfsed!"
echo -n "Device: /dev/"
read tmpdev || exit 1
TMPTMPDISK=/dev/$tmpdev
mount $RAM $RELEASEDIR || exit
mkdir -m 755 $RELEASEDIR/usr
mkdir -m 1777 $RELEASEDIR/tmp
+umount $TMPTMPDISK
+mkfs $TMPTMPDISK || exit
mount $TMPTMPDISK $RELEASEDIR/tmp || exit 1
-mkfs -B 1024 $TMPDISK
+mkfs -B 1024 $TMPDISK || exit
echo " * mounting $TMPDISK as $RELEASEDIR/usr"
mount $TMPDISK $RELEASEDIR/usr || exit
mkdir -p $RELEASEDIR/tmp