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)
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]))
fi
echo "
-Migrating from floppy to disk...
+Migrating to disk...
"
mkfs /dev/$usr
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.
${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
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."
+