Release process to use and create 16MB root; FS setcache call removed

This commit is contained in:
Ben Gras 2005-05-13 12:47:35 +00:00
parent d422461289
commit 7f52483b9f
4 changed files with 10 additions and 29 deletions

View file

@ -228,7 +228,7 @@ struct part_entry *table; /* four entries */
memcpy(&isosize, pvd + 80, sizeof(isosize)); memcpy(&isosize, pvd + 80, sizeof(isosize));
isosize *= CD_SECTOR_SIZE; 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].lowsec = 0;
table[0].size = isosize / SECTOR_SIZE; table[0].size = isosize / SECTOR_SIZE;

View file

@ -47,7 +47,6 @@ OBJECTS = \
$(LIBRARY)(popen.o) \ $(LIBRARY)(popen.o) \
$(LIBRARY)(putenv.o) \ $(LIBRARY)(putenv.o) \
$(LIBRARY)(putw.o) \ $(LIBRARY)(putw.o) \
$(LIBRARY)(setcache.o) \
$(LIBRARY)(stderr.o) \ $(LIBRARY)(stderr.o) \
$(LIBRARY)(swab.o) \ $(LIBRARY)(swab.o) \
$(LIBRARY)(syscall.o) \ $(LIBRARY)(syscall.o) \
@ -189,9 +188,6 @@ $(LIBRARY)(putw.o): putw.c
$(LIBRARY)(rindex.o): rindex.c $(LIBRARY)(rindex.o): rindex.c
$(CC1) rindex.c $(CC1) rindex.c
$(LIBRARY)(setcache.o): setcache.c
$(CC1) setcache.c
$(LIBRARY)(stderr.o): stderr.c $(LIBRARY)(stderr.o): stderr.c
$(CC1) stderr.c $(CC1) stderr.c

View file

@ -1,21 +0,0 @@
#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);
}

View file

@ -6,8 +6,11 @@ IMAGE=cdfdimage
ROOTIMAGE=rootimage ROOTIMAGE=rootimage
ISO=minix.iso ISO=minix.iso
RAM=/dev/ram RAM=/dev/ram
if [ `wc -c $RAM | awk '{ print $1 }'` -ne 1474560 ] rootmb=16
then echo "$RAM should be exactly 1440k." 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 exit 1
fi fi
echo "Warning: I'm going to mkfs $RAM!" echo "Warning: I'm going to mkfs $RAM!"
@ -19,6 +22,7 @@ read dev || exit 1
TMPDISK=/dev/$dev TMPDISK=/dev/$dev
echo "Temporary (sub)partition to use for storage in /tmp?" echo "Temporary (sub)partition to use for storage in /tmp?"
echo "It will be mkfsed!"
echo -n "Device: /dev/" echo -n "Device: /dev/"
read tmpdev || exit 1 read tmpdev || exit 1
TMPTMPDISK=/dev/$tmpdev TMPTMPDISK=/dev/$tmpdev
@ -47,9 +51,11 @@ echo " * mounting $RAM as $RELEASEDIR"
mount $RAM $RELEASEDIR || exit mount $RAM $RELEASEDIR || exit
mkdir -m 755 $RELEASEDIR/usr mkdir -m 755 $RELEASEDIR/usr
mkdir -m 1777 $RELEASEDIR/tmp mkdir -m 1777 $RELEASEDIR/tmp
umount $TMPTMPDISK
mkfs $TMPTMPDISK || exit
mount $TMPTMPDISK $RELEASEDIR/tmp || exit 1 mount $TMPTMPDISK $RELEASEDIR/tmp || exit 1
mkfs -B 1024 $TMPDISK mkfs -B 1024 $TMPDISK || exit
echo " * mounting $TMPDISK as $RELEASEDIR/usr" echo " * mounting $TMPDISK as $RELEASEDIR/usr"
mount $TMPDISK $RELEASEDIR/usr || exit mount $TMPDISK $RELEASEDIR/usr || exit
mkdir -p $RELEASEDIR/tmp mkdir -p $RELEASEDIR/tmp