From efa2322895c6e1a5e1062c219e8bea9359ea584c Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 3 May 2005 08:58:18 +0000 Subject: [PATCH] . Moved sysenv to /bin (as well), used to read some boot parameters in /etc/rc before /usr is mounted . fixed ps.c compile breakage (MM_PROC_NR rename) . made setup.sh a little less floppy-centric (cosmetic) . removed ps binary from cvs (whoops!) --- commands/ps/ps | Bin 16540 -> 0 bytes commands/ps/ps.c | 4 ++-- commands/scripts/setup.sh | 22 ++++++++++------------ commands/simple/Makefile | 4 ++++ 4 files changed, 16 insertions(+), 14 deletions(-) delete mode 100755 commands/ps/ps diff --git a/commands/ps/ps b/commands/ps/ps deleted file mode 100755 index db6d79b4c881dca0a667e348dbdf13b84bd6f9a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16540 zcmb_^eRNb+mhVYY36)S#1%wYBn7#_MAfU-elqe`)H+-}}nWPG%O_xPdp$d|!vg+QD z^fQo5k?GubJ2o?8ujjn!^+reRXZLc=b4_b^6b1s?gm&yE+BWi(^`w1q=9ZOSlh!;E z=^F3*?Q`y}RD!+6Kcwe{#Tp%P_5Tp zaPEoWb~9%Dj{?TL#yc*?#$E?+pZ2j|_c_mAcXnNOsBToRoio)L{ouedn=7wX zSG@tMw!03UpIcNsfNIw|rYz4v?lT)b)v{Cd{q>DrINZ6HP1r@RmZftfiJm@n^hd5yN2aV;Gj5S&cuL zZJ;htH|hSxK4u7E{C5tcK6gP)-fAc|)zSoJ%!msuO#|&?XBH z?Sy)J=R>YHJpBX&#NP1gENi0XA_Il09du^bU)dQitcmi<^QPpp6a@H zjap>NPw7-;%Fav`coAymcdyYy^Yv=JrZx}` zQ%X}CsGVV|9unbJ56$O0FpO9Ht`q?RXPtJ|=JViW@5YOE7^jXAmQ{?QV zQ`VYQG%53ycH;U{9@nvwJc*&3>LCdF6fs>%Ooj1Pk+etFXrJb5K)8FDtc&}+*Z5){ zC>nYOl%kryK8E|rF?9CH z&v^aDZ=n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Btsmf+N;#PYM`B3)=x$EHO|f_)s{9zaGao-0m3j^7no1bvNa1Is@bSwu8gM29m3xid#Kjrk12r0Kt!q7Kz z`<%X_`vX{l2XipOXDHJ4SPn)%9kVSM#C*S?ypqS8fH2Sn*l(=ylti>K_}Emq_4rgc zJ}?Dt30<9pBL@z)#*NAOL=GU{J$9STzZuaEHx@ZK5}-Zth2>Vi5>w-G9GPio`SP)>1(9 diff --git a/commands/ps/ps.c b/commands/ps/ps.c index e8a6bd27c..826eddcf6 100644 --- a/commands/ps/ps.c +++ b/commands/ps/ps.c @@ -223,7 +223,7 @@ struct pstat *bufp; if (bufp->ps_state != S_STATE) return task; blkstr = "?"; - if (bufp->ps_recv == MM_PROC_NR) { + if (bufp->ps_recv == PM_PROC_NR) { if (bufp->ps_mflags & PAUSED) blkstr = "pause"; else if (bufp->ps_mflags & WAITING) @@ -318,7 +318,7 @@ char *argv[]; err("Can't get kernel proc table from /dev/kmem"); /* Get mm/fs process tables */ - if (addrread(memfd, ps_proc[nr_tasks + MM_PROC_NR].p_memmap[D].mem_phys, + if (addrread(memfd, ps_proc[nr_tasks + PM_PROC_NR].p_memmap[D].mem_phys, psinfo.mproc, (char *) ps_mproc, nr_procs * sizeof(ps_mproc[0])) != nr_procs * sizeof(ps_mproc[0])) diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 3687c3db1..ed244fb43 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -261,7 +261,7 @@ else fi echo " -Migrating from floppy to disk... +Migrating to disk... " mkfs /dev/$usr @@ -313,17 +313,17 @@ Copying $fdroot to /dev/$root mkfs -B 1024 /dev/$root || exit mount /dev/$root /mnt || exit -if [ $thisroot = /dev/ram ] +if [ -d /boot ] then + # Running from the floppy itself (or installation CD). + cpdir -vx / /mnt || exit + chmod 555 /mnt/usr +else # Running from the RAM disk, root image is on a floppy. mount $fdroot /root || exit cpdir -v /root /mnt || exit umount $fdroot || exit cpdir -f /dev /mnt/dev # Copy any extra MAKEDEV'd devices -else - # Running from the floppy itself. - cpdir -vx / /mnt || exit - chmod 555 /mnt/usr fi # Change /etc/fstab. @@ -334,10 +334,6 @@ root=/dev/$root ${swap:+swap=/dev/$swap} usr=/dev/$usr" - # How to install further? -echo >/mnt/etc/issue "\ -Login as root and run 'setup /usr' to install floppy sets." - # National keyboard map. test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap @@ -359,10 +355,12 @@ echo "Second level file system block cache set to $cache kb." if [ $cache -eq 0 ]; then cache=; else cache="ramsize=$cache"; fi # Make bootable. -installboot -d /dev/$root /usr/mdec/bootblock /boot >/dev/null || exit +installboot -d /dev/$root /usr/mdec/bootblock /boot/boot >/dev/null || exit edparams /dev/$root "rootdev=$root; ramimagedev=$root; $cache; save" || exit +sync echo " -Please insert the installation ROOT floppy and type 'halt' to exit Minix. +Please type 'halt' to exit Minix. You can type 'boot $primary' to try the newly installed Minix system. See \"TESTING\" in the usage manual." + diff --git a/commands/simple/Makefile b/commands/simple/Makefile index 92bb2430a..ea146f260 100755 --- a/commands/simple/Makefile +++ b/commands/simple/Makefile @@ -959,6 +959,7 @@ install: \ /usr/bin/sync \ /usr/bin/synctree \ /usr/bin/sysenv \ + /bin/sysenv \ /usr/bin/tail \ /usr/bin/tar \ /usr/bin/tcpd \ @@ -1409,6 +1410,9 @@ install: \ /usr/bin/synctree: synctree install -cs -o bin $? $@ +/bin/sysenv: sysenv + install -cs -o bin $? $@ + /usr/bin/sysenv: sysenv install -cs -o bin $? $@ -- 2.44.0