probing = 1;
autopartmode = 1;
- printf("\nWelcome to the autopart process. There are three steps:\n\n"
- "1. Select the drive you want to use.\n"
- "2. Select a region to install MINIX in.\n"
- "3. After confirmation, write new table to disk.\n"
+ printf("\nWelcome to the autopart process. There are three sub-steps:\n\n"
+ "2.1. Select the drive you want to use.\n"
+ "2.2. Select a region to install MINIX in.\n"
+ "2.3. After confirmation, write new table to disk.\n"
"\n"
- "Nothing will happen to your disk before step 3.\n\n"
+ "Nothing will happen to your disk before step 2.3.\n\n"
);
printf("Press ENTER to continue: ");
fflush(stdout);
if(!fgets(sure, sizeof(sure)-1, stdin)) exit(1);
- printf("\n\n+-- STEP 1 -- Select drive ----------------------------------------+\n");
+ printf("\n\n --- Step 2.1 --- Select drive ---------------------------------------\n\n");
do {
curdev = select_disk();
memcpy(orig_table, table, sizeof(table));
do {
- printf("\n\n+-- STEP 2 -- Select region to install in --------------------------+\n");
+ printf("\n\n --- Step 2.2 --- Select region to install in ------------------------\n\n");
/* Show regions. */
r = select_region();
} while(!r); /* Back to step 2. */
- printf("\n\n+-- STEP 3 -- Write table to disk ----------------------------------+\n");
+ printf("\n\n --- Step 2.3 --- Write table to disk --------------------------------\n\n");
/* Write things. */
if(scribble_region(r, &pe)) {
char partbuf[100];
+#if 0
printf("\nThis is your current partition table:\n");
m_dump(orig_table);
printf("\nThis will be your new partition table:\n");
m_dump(table);
+#endif
printf("\nThis is the point of no return. You have selected to install MINIX\n");
printf("into region %d of disk %d. If you agree with this selection, your\n", (int)(r-regions), (int) (curdev-firstdev));
Note 1: If the screen blanks suddenly then hit CTRL+F3 to select \"software
scrolling\".
-
Note 2: If things go wrong then hit DEL and start over.
-
-Note 3: The installation procedure is described in the manual page
- usage(8). It will be hard without it.
-
-Note 4: Some questions have default answers, like this: [y]
+Note 3: Some questions have default answers, like this: [y]
Simply hit RETURN (or ENTER) if you want to choose that answer.
-
-Note 5: If you see a colon (:) then you should hit RETURN to continue.
+Note 4: If you see a colon (:) then you should hit RETURN to continue.
:"
read ret
echo "
+ --- Step 1 --- Select keyboard type. --------------------------------
+
What type of keyboard do you have? You can choose one of:
"
ls -C /usr/lib/keymaps | sed -e 's/\.map//g' -e 's/^/ /'
ok=""
while [ "$ok" = "" ]
do
- echo -n "Welcome to Minix partitioning. Do you want to
+echo "
+ --- Step 2 --- Partitioning -----------------------------------------
+"
+ echo -n "Now is the MINIX 3 partitioning step. Do you want to
follow the (A)utomatic or the e(X)pert mode? [A] "
read ch
case "$ch" in
done
echo $i
}
+echo "
+ --- Step 3 --- Networking -------------------------------------------
+"
# Ask user about networking
echo ""
esac
blockdefault=8
+echo "
+ --- Step 4 --- Block size -------------------------------------------
+"
echo "\
The default block size on the disk is $blockdefault KB. However, sizes of 1 to $blockdefault KB
are also supported. If you have a small disk or small RAM you may want less
than $blockdefault KB, in which case type a block size from 1 to 8 (1, 2, 4 or $blockdefault are
-suggested values). Otherwise hit ENTER for the default of $blockdefault KB blocks, which
+suggested values). Otherwise hit RETURN for the default of $blockdefault KB blocks, which
should be fine in most cases."
while [ -z "$blocksize" ]
done
blocksizebytes="`expr $blocksize '*' 1024`"
+echo "
+ --- Step 5 --- Swap space -------------------------------------------
+"
echo -n "
How much swap space would you like? Swapspace is only needed if this
# Forget about swap.
swap=
fi
+
echo "
-Migrating to disk...
+ --- Step 5 --- Copy files -------------------------------------------
"
mkfs -B $blocksizebytes /dev/$usr
if [ -n "$driver" ]
then echo "eth0 $driver 0 { default; };" >/mnt/etc/inet.conf
echo "$driverargs" >$LOCALRC
+ disable=""
+else disable=inet
fi
umount /dev/$root || exit # Unmount the new root.
# Make bootable.
installboot -d /dev/$root /usr/mdec/bootblock /boot/boot >/dev/null || exit
-edparams /dev/$root "rootdev=$root; ramimagedev=$root; $cache; main() { echo This is the MINIX 3 boot monitor.; echo MINIX will load in 5 seconds, or press ESC.; trap 5000 boot; menu; }; save" || exit
+edparams /dev/$root "rootdev=$root; ramimagedev=$root; disable=$disable; $cache; main() { echo This is the MINIX 3 boot monitor.; echo MINIX will load in 5 seconds, or press ESC.; trap 5000 boot; menu; }; save" || exit
pfile="/usr/src/tools/fdbootparams"
echo "Remembering boot parameters in ${pfile}."
echo "rootdev=$root; ramimagedev=$root; $cache; save" >$pfile || exit